Skip to main content
GET
/
api
/
tenant
/
api-keys
List all API keys for your tenant
curl --request GET \
  --url https://api.g-tateth.com/api/tenant/api-keys \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "keys": [
      {
        "_id": "<string>",
        "name": "<string>",
        "keyPrefix": "sk_live_",
        "environment": "production",
        "permissions": [
          "<string>"
        ],
        "isActive": true,
        "expiresAt": "2023-11-07T05:31:56Z",
        "lastUsedAt": "2023-11-07T05:31:56Z",
        "usageCount": 123,
        "currentMonthRequests": 123,
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ],
    "total": 123,
    "page": 123,
    "limit": 123,
    "totalPages": 123
  }
}

Authorizations

Authorization
string
header
required

JWT token authentication (for user sessions)

Query Parameters

environment
enum<string>

Filter by environment

Available options:
production,
staging
isActive
boolean

Filter by active status

page
integer
default:1

Page number

limit
integer
default:20

Items per page

Required range: x <= 100

Response

200 - application/json

List of API keys

success
boolean
data
object