API Reference / Integrations
GET/integrations/api-keys

List 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.

FieldTypeDescription
data[]arrayList of keys
data[].idnumberKey id
data[].namestringLabel
data[].keyPrefixstringPrefix for identification
data[].activebooleanWhether 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"
}