# Generate Access Token

## Generate Auth Token

> Generate an access token using API keys (client ID and API key).

OpenAPI:

```json
{"openapi":"3.0.3","info":{"title":"ZekoAI Interview APIs","version":"1.0.0"},"servers":[{"url":"https://interview-api.zeko.ai","description":"Production Server"}],"paths":{"/api/v1/auth/token":{"post":{"tags":["Auth"],"summary":"Generate Auth Token","description":"Generate an access token using API keys (client ID and API key).","operationId":"generateAuthToken","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["clientId","apiKey"],"properties":{"clientId":{"type":"string"},"apiKey":{"type":"string"},"expiresIn":{"type":"integer"}}}}}},"responses":{"201":{"description":"Token created successfully","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"},"data":{"type":"object","description":"Actual response data object"}}},{"type":"object","properties":{"data":{"type":"object","properties":{"accessToken":{"type":"string"},"tokenType":{"type":"string"},"expiresIn":{"type":"integer"}}}}}]}}}},"401":{"description":"Missing or invalid Authorization header","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"},"error":{"nullable":true,"description":"Error details: Error Message"}},"required":["message","success","error"]}}}},"422":{"description":"Input Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"success":{"type":"boolean"},"error":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}}}},"required":["message","success","error"]}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"$ref":"#/paths/~1api~1v1~1auth~1token/post/responses/401/content/application~1json/schema/properties"},"required":["message","success","error"]}}}}}}}}}
```
