Generate Access Token
Generate an access token using API keys (client ID and API key).
Body
clientIdstringRequiredExample:
649eadcb44d6b041cb085b53
apiKeystringRequiredExample:
123abc456xyz
expiresInintegerOptionalExample:
3600
Responses
201
Token created successfully
application/json
Responseall of
401
Missing or invalid Authorization header
application/json
422
Input Validation failed
application/json
500
Internal Server Error
application/json
post
POST /api/v1/auth/token HTTP/1.1
Host: interview-api.zeko.ai
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"clientId": "649eadcb44d6b041cb085b53",
"apiKey": "123abc456xyz",
"expiresIn": 3600
}
{
"message": "Interview created successfully",
"success": true,
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"tokenType": "bearer",
"expiresIn": 3600
}
}
Last updated