Domínios

Notes
Especialista
A chave de API deve ser enviada como um token de portador no cabeçalho de autorização da solicitação. Obtenha sua chave de API.
List

API endpoint:

GET
https://boky.in/api/v1/domains

Exemplo de solicitação:

curl --location --request GET 'https://boky.in/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parâmetro
Tipo
Descrição
search
optional string
The search query.
search_by
optional string
Procurar por. Possible values are: name for Nome. Defaults to: name.
sort_by
optional string
Ordenar por. Possible values are: id for Data Criada, name for Nome. Defaults to: id.
sort
optional string
Ordenar. Possible values are: desc for Descendente, asc for Ascendente. Defaults to: desc.
per_page
optional int
Resultados por página. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Show

API endpoint:

GET
https://boky.in/api/v1/domains/{id}

Exemplo de solicitação:

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

API endpoint:

POST
https://boky.in/api/v1/domains

Exemplo de solicitação:

curl --location --request POST 'https://boky.in/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parâmetro
Tipo
Descrição
name
required string
The domain name.
index_page
optional string
The index page to redirect to.
not_found_page
optional string
The 404 page to redirect to.
Update

API endpoint:

PUT PATCH
https://boky.in/api/v1/domains/{id}

Exemplo de solicitação:

curl --location --request PUT 'https://boky.in/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parâmetro
Tipo
Descrição
index_page
optional string
The index page to redirect to.
not_found_page
optional string
The 404 page to redirect to.
Deletar

API endpoint:

DELETE
https://boky.in/api/v1/domains/{id}

Exemplo de solicitação:

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