Admin/ Auth
Admin login, refresh, and logout endpoints.
Header Parameters
Environment override (use "test" to bypass payload encryption)
"test"Client timezone
"UTC"Client device type/details
"ios"Client language/locale preference
"en"Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/admin/auth/v1/login" \ -H "env: test" \ -H "timezone: UTC" \ -H "device: ios" \ -H "Accept-Language: en" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "password": "stringst" }'{ "code": "string", "response": { "accessToken": "string", "refreshToken": "string", "sessionId": "string", "admin": { "_id": "string", "email": "string", "name": "string" } }}Authorization
admin-refresh-token Admin refresh token. In Apidog use token value {{admin_refresh_token}}.
In: header
Header Parameters
Environment override (use "test" to bypass payload encryption)
"test"Client timezone
"UTC"Client device type/details
"ios"Client language/locale preference
"en"Response Body
application/json
application/json
curl -X POST "https://example.com/api/admin/auth/v1/refresh_token" \ -H "env: test" \ -H "timezone: UTC" \ -H "device: ios" \ -H "Accept-Language: en" \ -H "Authorization: Bearer {{admin_refresh_token}}"{ "code": "string", "response": { "accessToken": "string", "refreshToken": "string", "sessionId": "string", "admin": { "_id": "string", "email": "string", "name": "string" } }}Authorization
admin-access-token Admin access token. In Apidog use token value {{admin_access_token}}.
In: header
Header Parameters
Environment override (use "test" to bypass payload encryption)
"test"Client timezone
"UTC"Client device type/details
"ios"Client language/locale preference
"en"Response Body
application/json
application/json
curl -X POST "https://example.com/api/admin/auth/v1/logout" \ -H "env: test" \ -H "timezone: UTC" \ -H "device: ios" \ -H "Accept-Language: en" \ -H "Authorization: Bearer {{admin_access_token}}"{ "code": "string", "message": "string"}