Skip to main content
GET
https://api.gates2b.com
/
api-key
/
validate
Validate API Key
curl --request GET \
  --url https://api.gates2b.com/api-key/validate \
  --header 'Authorization: <authorization>'
{
  "status": 200,
  "code": "API_KEY_VALID",
  "response": {
    "valid": true,
    "message": "API key is valid",
    "expires_at": null
  }
}
Authorization
string
required
The Bearer authentication token is required to access this endpoint.

Response

status
number
HTTP response code. Expected: 200 for a valid API key, 401 for invalid.
code
string
Internal operation code.
response
object
{
  "status": 200,
  "code": "API_KEY_VALID",
  "response": {
    "valid": true,
    "message": "API key is valid",
    "expires_at": null
  }
}