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.

The response is of type object[].