Verify API key
POST
/api/v1/auth/verify-key
const url = 'https://app.ayna.com/api/v1/auth/verify-key';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"api_key":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.ayna.com/api/v1/auth/verify-key \ --header 'Content-Type: application/json' \ --data '{ "api_key": "example" }'Exchange an API key for JWT access and refresh tokens.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
APIKeyVerifyRequest
object
api_key
required
Api Key
API key to verify
string
Example generated
{ "api_key": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}