Validate API Key

Validate API Key

POST https://api.ocamba.com/v2/ocamba/personal-api-keys/validate

Validates API Key.

Header parameters

parameters

Response schemas

POST https://api.ocamba.com/v2/ocamba/personal-api-keys/validate HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X POST "https://api.ocamba.com/v2/ocamba/personal-api-keys/validate" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/ocamba/personal-api-keys/validate", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/ocamba/personal-api-keys/validate");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

204 No Content

HTTP/1.1 204 No Content
Content-Type: application/json

401 Unauthorized

HTTP/1.1 401 Unauthorized
Content-Type: application/json

{
  "code": 401,
  "title": "Unauthorized.",
  "message": "Unauthorized.",
  "trace_id": "{}"
}

500 Internal Server Error

HTTP/1.1 500 Internal Server Error
Content-Type: application/json

{
  "code": 500,
  "title": "Internal server error.",
  "message": "Internal server error."
}
Responses
Tip
1
When executing the verify request, you must provide the api key as a bearer token in the authorization for the http request.