Skip to main content

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

Properties

NameTypeDescription
user_idstringUnique identifier of the authenticated user
user_emailstringEmail 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"