Axelered AI
API Config

Create Embedder Configuration

POST
/w/{workspace_id}/config/embedders

Create a new embedder configuration (e.g., OpenAI, Mistral) for the workspace.

Path Parameters

workspace_id*Workspace Id
Formatuuid

Request Body

application/json

Response Body

application/json

application/json

{  "data": {    "config": {      "apiKey": "sk-...",      "model": "text-embedding-3-large",      "provider": "openai"    },    "createdAt": "2026-05-20T10:14:00.000Z",    "id": "018f8e02-4b2a-7c9d-8d4e-123456789abc",    "modifiedAt": "2026-05-20T10:14:00.000Z",    "name": "OpenAI Embedding",    "workspaceId": "018f8e02-4b2a-7c9d-8d4e-987654321abc"  },  "status": "ok"}
{  "detail": [    {      "loc": [        "body",        "name"      ],      "msg": "Field required",      "type": "missing"    },    {      "loc": [        "body",        "config",        "provider"      ],      "msg": "Input should be 'bm25', 'local', 'openai' or 'mistral'",      "type": "enum",      "input": "invalid-provider"    }  ]}