Skip to main content

Endpoint

POST https://api.ugc.inc/org/api-key

Overview

Retrieve a list of all API keys associated with your organization. This endpoint returns metadata about each API key including the ID, name, and creation date. For security reasons, the actual key values are not returned.

Request Body

No request body parameters required.

Response

data
ApiKey[]
Array of API key objects
The actual API key values are not included in the response for security reasons. Key values are only shown when initially created.
curl -X POST https://api.ugc.inc/org/api-key \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "ok": true,
  "code": 200,
  "message": "Success",
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Production API Key",
      "created_at": "2024-01-15T10:30:00.000Z"
    },
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "name": "Development API Key",
      "created_at": "2024-02-20T14:45:00.000Z"
    }
  ]
}