POST
/
api_keys
/
create
curl --request POST \
  --url https://api.openmind.org/api/core/api_keys/create \
  --header 'Authorization: Bearer <token>'
{
  "message": "API key created successfully.",
  "api_key": "<string>",
  "api_key_info": {
    "id": "<string>",
    "user_id": "<string>",
    "name": "<string>",
    "hashed_key": "<string>",
    "prefix": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "revoked_at": "2023-11-07T05:31:56Z",
    "deleted": true
  }
}

OpenMind provides a secure way to create API keys for accessing various services. This endpoint allows you to generate new API keys that can be used for authentication and authorization in your applications.

The JWT token is generated with Clerk and is used to authenticate your requests. Ensure you have the necessary permissions to access this endpoint.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

API key created successfully

The response is of type object.