POST
/
{resourceSlug}
/
forms
/
model
/
add
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/model/add \
  --header 'Content-Type: model.json' \
  --data '{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "model": "<string>",
  "embeddingLength": 123,
  "modelType": "<string>",
  "type": "<string>",
  "config": {
    "model": "<string>",
    "api_key": "<string>",
    "base_url": "<string>",
    "cohere_api_key": "<string>",
    "groq_api_key": "<string>"
  }
}'
{
  "_id": "<string>",
  "redirect": "<string>"
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a URL parameter of the teamId associated with the user.

Body

model.json

JSON body containing the model object to be added. Do not include an '_id', as this will be automatically generated.

Represents an AI model used within a team or organization.

Response

302
dynamicResponse

Successful operation, redirect to '/{resourceSlug}/models'.

Server response after successsfully adding a new object