Create Project
POSThttps://api.confident-ai.com/v1/projects
Creates a new project within your organization. A default project-scoped API key is provisioned with the project — its full value is returned once in this response. Optionally pass email to assign an existing organization member (by email) as the project's Owner.
curl -X POST "https://api.confident-ai.com/v1/projects" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "New Project",
"description": "This is a new project for testing"
}'{
"success": true,
"data": {
"project": {
"id": "PROJECT-ID",
"name": "New Project",
"description": "This is a new project for testing",
"organizationId": "ORGANIZATION-ID",
"created_at": "2024-12-04T23:00:00.000Z"
},
"apiKey": {
"id": 12,
"name": "Default Key",
"valid": true,
"value": "confident_proj_9b8a7c6d5e4f3a2b1c0d9e8f7a6b5c4d",
"created_at": "2024-12-04T23:00:00.000Z",
"lastUsed": null
}
}
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Request body
namestringRequiredName of the project (must be unique within the organization)
descriptionstringOptional description of the project
emailstringOptional email of an existing organization member to assign as the project's Owner. If omitted, the project has no member and is accessible via its API key and to organization admins.
Response
successbooleanIndicates if the request was successful
dataobjectShow 2 propertiesHide 2 properties
projectobjectShow 6 propertiesHide 6 properties
idstringUnique identifier for the project
namestringName of the project
descriptionstringOptional description of the project
organizationIdstringID of the organization this project belongs to
created_atstringISO 8601 timestamp of when the project was created
governancePolicyobjectThe governance policy the project is enrolled in, or null if it is not enrolled.
Show 2 propertiesHide 2 properties
idstringThe unique identifier of the governance policy.
namestringThe name of the governance policy.
apiKeyobjectA default project-scoped API key provisioned with the project. Its full
valueis returned only once, in this response.Show 9 propertiesHide 9 properties
idintegerUnique identifier for the API key
namestringHuman-readable label for the API key
validbooleanWhether the key is active. A deactivated key is rejected on authentication.
valuestringThe API key value. This is redacted (only the last 6 characters are shown, prefixed with asterisks) on every response except the create response — and the rotate response when rotating without a grace period — where the full value is returned exactly once.
shadowValuestringThe replacement value while a rotation's grace period is running, or
nullwhen no rotation is pending. Redacted on every response except the rotate response that issued it, where the full value is returned exactly once.rotatesAtstringISO 8601 timestamp of when a pending rotation completes and
shadowValuereplacesvalue, ornullwhen no rotation is pendingexpiresAtstringISO 8601 timestamp of when the key expires, or
nullif it never expirescreated_atstringISO 8601 timestamp of when the key was created
lastUsedstringISO 8601 timestamp of when the key was last used to authenticate, or
nullif never used