Call Imports
POST
/api/v1/call-import-schemas

Create a new schema + parameters in the active workspace.

Pydantic validates the cross-parameter invariants (single conversation_id, unique names) before the body reaches this handler; we still rely on the DB-level unique index to catch the name-collision race.

Authorization

AuthorizationBearer <token>

JWT access token. Use: Authorization: Bearer .

In: header

Header Parameters

Authorization?string|null
X-API-Key?string|null
X-EFFICIENTAI-API-KEY?string|null
X-Workspace-Id?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Create body for a new call-import schema.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/call-import-schemas" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "parameters": [      {        "name": "string",        "type": "conversation_id"      }    ]  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",  "name": "string",  "description": "string",  "parameters": [    {      "name": "string",      "type": "conversation_id",      "description": "string",      "is_required": false,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "ordering": 0    }  ],  "usage_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}

Community & contact

  1. Found a bug or have a feature request? Open a GitHub issue.
  2. Join our Discord for faster replies!