Validate Key
The Validate API Key endpoint allows you to confirm whether an API Key is valid and retrieve basic information about the authenticated user.
GET/v1/auth/token/validate- Response
Properties
| Name | Type | Description |
|---|---|---|
| user_id | string | Unique identifier of the authenticated user |
| user_email | string | Email address of the authenticated user |
Example
{
"response": {
"user_id": "Ak2o2WP6xrU8EqSLpmtwO4fEwlC3",
"user_email": "leonardo@snackprompt.com"
}
}
CURL Example
curl -X GET "https://api-integrations.snackprompt.com/v1/auth/token/validate" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"