API Reference / Integrations
GET
/integrations/api-keysList API keys
List your API keys. Only prefixes are returned — full keys are shown once at creation.
🔒 JWT BearerTry in Console →
Purpose
View which partner keys exist (by prefix + label) for audit or to decide which to revoke. The secret portion is never returned after creation.
Authentication
Send your access token as a Bearer header: Authorization: Bearer <token>. Obtain it from Authenticate a user.
Request samples
bash
curl -X GET https://tourapi.nirajp.com.np/api/v1/integrations/api-keys \ -H "Content-Type: application/json"
Success response
Returns 200 OK with the shape below.
| Field | Type | Description |
|---|---|---|
| data[] | array | List of keys |
| data[].id | number | Key id |
| data[].name | string | Label |
| data[].keyPrefix | string | Prefix for identification |
| data[].active | boolean | Whether the key is live |
json
{
"success": true,
"message": "Request successful.",
"data": [
{
"id": 6,
"name": "Server-to-server integration",
"keyPrefix": "tk_live_9a5e",
"active": true
}
]
}Errors
All errors share the envelope { "success": false, "message": "..." }.
401No or invalid authentication token supplied.
json
{
"success": false,
"message": "Unauthorized"
}500An unexpected error occurred on our side. Retry; if it persists, contact support.
json
{
"success": false,
"message": "Internal server error"
}