DeepFellow DOCS

Create a new organization api key

POST
/v1/organization/admin_api_keys

Create a new organization api key.

Authorization

headerAuthorizationBearer <token>

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

Model for creating a new organization api key.

name*string

Response Body

Successful Response

application/json
  1. response

Response after creating a new organization api key.

id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
object*string
name*string
redacted_value*string

The organization API key.

owner*
created_at*integer
last_used_at*integer
value*string

The organization API key.

Example Request
curl -X POST 'https://deepfellow-server-host/v1/organization/admin_api_keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "id": "5eb7cf5a86d9755df3a6c593",  "object": "organization.admin_api_key",  "name": "string",  "redacted_value": "dforg...xyz",  "owner": {    "created_at": 0,    "id": "5eb7cf5a86d9755df3a6c593",    "name": "Simplito",    "object": "organization.user",    "role": "owner",    "type": "user"  },  "created_at": 0,  "last_used_at": 0,  "value": "dforg_1234-abcd"}

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.