Skip to content

Get API Key

GET/web/v1/workspaces/{workspaceId}/api-keys/{keyId} JWT

Retrieves the details of a single API key by its business ID. The secret value is never included in the response.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-Workspace-IdTarget workspace ID

Request Parameters

NameTypeRequiredInDescription
workspaceIdstringRequiredpathWorkspace business ID
keyIdstringRequiredpathAPI key business ID

Success Response

Success 200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "apiKeyId": "sk_live_abc123",
    "name": "Production Key",
    "status": "ACTIVE",
    "mode": "LIVE",
    "permissions": [
      "payment:read",
      "payment:write"
    ],
    "ipWhitelist": [
      "192.168.1.0/24"
    ],
    "createdAt": "2026-03-21T00:00:00Z",
    "lastUsedAt": "2026-03-21T12:00:00Z",
    "createdBy": "acc_owner123"
  }
}

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}
Not Found 404
{
  "success": false,
  "code": "4040",
  "message": "API key not found"
}

Notes

  • The API key secret is never returned after initial creation.
  • Only workspace OWNERs can retrieve API key details.

SlaunchX Internal Documentation