For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingGuidesChangelog
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
    • Data Models
    • API Conventions
  • Data Models
      • GETRetrieve Organization
      • PUTUpdate Organization
        • GETList Organization API Keys
        • GETGet Organization API Key
        • POSTCreate Organization API Key
        • PUTUpdate Organization API Key
        • DELRevoke Organization API Key
  • Evals
  • Legacy
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
Data ModelsOrganizationAPI Keys

Create Organization API Key

POST
https://api.confident-ai.com/v1/organization/api-keys
POST
/v1/organization/api-keys
$curl -X POST https://api.confident-ai.com/v1/organization/api-keys \
> -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "CI/CD key"
>}'
200Successful
1{
2 "success": true,
3 "data": {
4 "apiKey": {
5 "id": 12,
6 "valid": true,
7 "value": "confident_org_a3f1c9e2b7d84f06a1c2e3d4f5a6b7c8",
8 "created_at": "2024-12-04T23:00:00.000Z",
9 "name": "CI/CD key",
10 "lastUsed": null
11 }
12 }
13}

Mints a new organization-scoped API key. The raw value is returned exactly once in this response and can never be retrieved again — store it securely.

Was this page helpful?
Previous

Update Organization API Key

Next
Built with

Headers

CONFIDENT_API_KEYstringRequired
The organization API key for your Confident AI organization.

Request

This endpoint expects an object.
namestringRequired

Human-readable label for the API key

Response

successboolean
Indicates if the request was successful
dataobject