DeepFellow DOCS

Add API key to project

POST
/v1/organization/projects/{project_id}/api_keys

Create a new API key in the project.

Authorization

headerAuthorizationBearer <token>

Path Parameters

project_id*string

The ID of the project.

Match^[0-9a-fA-F]{24}$

Header Parameters

OpenAI-Organization?|

Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.

Request Body

application/json
  1. body
name*string

The name of the API key.

Response Body

Successful Response

application/json
  1. response
id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
object*string
value*string
redacted_value*string
name*string
created_at*integer
last_used_at*integer
Example Request
curl -X POST 'https://deepfellow-server-host/v1/organization/projects/5eb7cf5a86d9755df3a6c593/api_keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "MyApiKey"}'
Example Response
{  "id": "5eb7cf5a86d9755df3a6c593",  "object": "organization.project.api_key",  "value": "string",  "redacted_value": "string",  "name": "string",  "created_at": 0,  "last_used_at": 0}

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.