Launch Week 02 wrapped — explore all five launches

Get Organization API Key

GEThttps://api.confident-ai.com/v1/organization/api-keys/{apiKeyId}

Retrieves a single organization-scoped API key by id. The value is redacted — the full value is only ever returned once, at creation.

GET/v1/organization/api-keys/{apiKeyId}
curl -X GET "https://api.confident-ai.com/v1/organization/api-keys/{apiKeyId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"
200
{
  "success": true,
  "data": {
    "apiKey": {
      "id": 12,
      "name": "CI/CD key",
      "valid": true,
      "value": "***************a1b2c3",
      "created_at": "2024-12-04T23:00:00.000Z",
      "lastUsed": "2024-12-05T10:15:00.000Z"
    }
  }
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • apiKeyIdintegerRequired

    The unique identifier of the API key.

Response

  • successboolean

    Indicates if the request was successful

  • dataobject

    Show 1 propertyHide 1 property
    • apiKeyobject

      Show 6 propertiesHide 6 properties
      • idinteger

        Unique identifier for the API key

      • namestring

        Human-readable label for the API key

      • validboolean

        Whether the key is active. A deactivated key is rejected on authentication.

      • valuestring

        The API key value. This is redacted (only the last 6 characters are shown, prefixed with asterisks) on every response except the create response, where the full value is returned exactly once.

      • created_atstring

        ISO 8601 timestamp of when the key was created

      • lastUsedstring

        ISO 8601 timestamp of when the key was last used to authenticate, or null if never used

Built byConfident AI