curl --request POST \
--url http://localhost:8080/api/v1/agents/{id}/api-key \
--header 'Authorization: Basic <encoded-value>'
{
"status": "success",
"data": {
"api_key": "ak_1234567890abcdef",
"api_secret": "as_abcdef1234567890"
}
}
curl --request POST \
--url http://localhost:8080/api/v1/agents/{id}/api-key \
--header 'Authorization: Basic <encoded-value>'
{
"status": "success",
"data": {
"api_key": "ak_1234567890abcdef",
"api_secret": "as_abcdef1234567890"
}
}
Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>
API key generated successfully
The response is of type object
.
Was this page helpful?