Domínios de marca

Observação
Nível Expert
A chave API deve ser enviada como um token do portador no cabeçalho de autorização da solicitação. Obtenha sua chave de API.
Lista

API endpoint:

GET
https://sht.gd/api/v1/domains

Request example:

curl --location --request GET 'https://sht.gd/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tipo
Descrição
search
opcional string
A consulta de pesquisa.
search_by
opcional string
Pesquisar por. Os valores possíveis são: name for Nome. Padrões para: name.
sort_by
opcional string
Ordenar por. Os valores possíveis são: id for Data criada, name for Nome. Padrões para: id.
sort
opcional string
Ordenar por. Os valores possíveis são: desc for Descendente, asc for Ascendente. Padrões para: desc.
per_page
opcional integer
Resultados por página. Os valores possíveis são: 10, 25, 50, 100. Padrões para: 10.
Mostrar

API endpoint:

GET
https://sht.gd/api/v1/domains/{id}

Request example:

curl --location --request GET 'https://sht.gd/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://sht.gd/api/v1/domains

Request example:

curl --location --request POST 'https://sht.gd/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parameter
Tipo
Descrição
name
requerido string
The space name.
index_page
opcional string
The index page to redirect to.
not_found_page
opcional string
The 404 page to redirect to.
Atualizar

API endpoint:

PUT PATCH
https://sht.gd/api/v1/domains/{id}

Request example:

curl --location --request PUT 'https://sht.gd/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tipo
Descrição
index_page
opcional string
The index page to redirect to.
not_found_page
opcional string
The 404 page to redirect to.
Excluir

API endpoint:

DELETE
https://sht.gd/api/v1/domains/{id}

Request example:

curl --location --request DELETE 'https://sht.gd/api/v1/domains/{id}' \
--header 'Authorization: Bearer {api_key}'