Auth
Auth Token Request
This endpoint is used to authenticate and obtain a token to access protected resources. The request should be made using the HTTP POST method.
Request
Method: POST
Endpoint:
https://api.creatopy.com/v1/auth/token
Body:
clientId
(text) - The client ID for authentication.clientSecret
(text) - The client's secret for authentication.
Response
Upon successful authentication, the server responds with a status code of 200 and a JSON object containing the authentication token.
Example response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR....5cCI6IkpXVCJ9"
}
Example payload:
{
"clientId": "6a38ea97-129d-4171-859c-5535c9f3e4e1",
"clientSecret": "27eb6a90-1938-474c-8353-1ce4514b4dcd"
}
curl --location 'https://api.creatopy.com/v1/auth/token' \
--header 'Content-Type: application/json' \
--data '{
"clientId": "6a38ea97-129d-4171-859c-5535c9f3e4e1",
"clientSecret": "27eb6a90-1938-474c-8353-1ce4514b4dcd"
}'
Last updated