GET
/
{resourceSlug}
/
models.json
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/models.json
[
  {
    "_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>"
    }
  }
]

Path Parameters

resourceSlug
string
required

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

Response

200
models.json
JSON object containing an array of all the models associated with that teamId. Will return an empty array if the request is successful but there are no associated models.
_id
string
required

Unique identifier for the model.

orgId
string
required

Identifier of the organization to which the model belongs.

teamId
string
required

Identifier of the team to which the model belongs.

name
string
required

The name of the model.

model
string
required

The specific AI model used.

embeddingLength
integer
required

The length of the embeddings generated by the model.

modelType
string
required

The type of the model.

type
string
required

The general type of the model (e.g., embedding, language model).

config
object
required

Configuration settings for the model.