Skip to main content
GET
/
{resourceSlug}
/
app
/
{appId}
.json
Get App
curl --request GET \
  --url https://app.agentcloud.dev/{resourceSlug}/app/{appId}.json \
  --header 'Authorization: Bearer <token>'
{
  "csrf": "<string>",
  "app": {
    "_id": "<string>",
    "name": "<string>",
    "role": "<string>",
    "goal": "<string>",
    "backstory": "<string>",
    "modelId": "<string>",
    "verbose": true,
    "allowDelegation": true,
    "orgId": "<string>",
    "teamId": "<string>",
    "functionModelId": "<string>",
    "toolIds": [
      "<string>"
    ],
    "icon": {}
  },
  "tasks": [
    {
      "name": "<string>",
      "description": "<string>",
      "_id": "<string>",
      "orgId": "<string>",
      "teamId": "<string>",
      "agentId": "<string>",
      "expectedOutput": "<string>",
      "toolIds": [
        "<string>"
      ],
      "asyncExecution": true,
      "context": [
        "<string>"
      ],
      "outputJson": {},
      "outputPydantic": {},
      "outputFile": "<string>",
      "icon": {
        "id": {},
        "filename": "<string>"
      },
      "requiresHumanInput": true,
      "displayOnlyFinalOutput": true,
      "hidden": true,
      "formFields": [
        {
          "position": "<string>",
          "type": "string",
          "name": "<string>",
          "label": "<string>",
          "description": "<string>",
          "required": true,
          "options": [
            "<string>"
          ],
          "tooltip": "<string>"
        }
      ],
      "isStructuredOutput": true
    }
  ],
  "tools": [
    {
      "name": "<string>",
      "description": "<string>",
      "type": "function",
      "data": {
        "name": "<string>",
        "runtime": "<string>",
        "builtin": true,
        "description": "<string>",
        "apiKey": "<string>",
        "environmentVariables": {},
        "parameters": {
          "properties": {},
          "required": [
            "<string>"
          ]
        },
        "code": "<string>",
        "requirements": "<string>",
        "openAPIMatchKey": "<string>"
      },
      "_id": "<string>",
      "orgId": "<string>",
      "teamId": "<string>",
      "asdf": "<string>",
      "retriever_type": "raw",
      "retriever_config": {
        "metadata_field_info": [
          {
            "name": "<string>",
            "description": "<string>",
            "type": "string"
          }
        ],
        "k": 123
      },
      "datasourceId": "<string>",
      "state": "pending",
      "icon": {
        "id": {},
        "filename": "<string>"
      },
      "hidden": true,
      "functionId": "<string>",
      "revisionId": "<string>",
      "functionLogs": "<string>"
    }
  ],
  "agents": [
    {
      "_id": "<string>",
      "name": "<string>",
      "role": "<string>",
      "goal": "<string>",
      "backstory": "<string>",
      "modelId": "<string>",
      "verbose": true,
      "allowDelegation": true,
      "orgId": "<string>",
      "teamId": "<string>",
      "functionModelId": "<string>",
      "toolIds": [
        "<string>"
      ],
      "icon": {}
    }
  ],
  "models": [
    {
      "_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>"
      }
    }
  ],
  "datasources": [
    {
      "name": "<string>",
      "originalName": "<string>",
      "sourceType": "<string>",
      "sourceId": "<string>",
      "destinationId": "<string>",
      "workspaceId": "<string>",
      "connectionId": "<string>",
      "createdDate": "2023-11-07T05:31:56Z",
      "_id": "<string>",
      "orgId": "<string>",
      "teamId": "<string>",
      "description": "<string>",
      "filename": "<string>",
      "recordCount": {
        "total": 123,
        "success": 123,
        "failure": 123
      },
      "connectionSettings": {
        "prefix": "<string>",
        "name": "<string>",
        "sourceId": "<string>",
        "destinationId": "<string>",
        "status": "<string>",
        "configurations": {},
        "nonBreakingSchemaUpdatesBehavior": "<string>",
        "schedule": {
          "scheduleType": "cron",
          "cronExpression": "<string>"
        },
        "dataResidency": "<string>",
        "namespaceDefinition": "<string>",
        "namespaceFormat": "<string>"
      },
      "lastSyncedDate": "2023-11-07T05:31:56Z",
      "status": "draft",
      "discoveredSchema": {},
      "chunkingConfig": {
        "partitioning": "auto",
        "strategy": "basic",
        "max_characters": 123,
        "new_after_n_chars": 123,
        "overlap": 123,
        "similarity_threshold": 0.5,
        "overlap_all": true
      },
      "embeddingField": "<string>",
      "timeWeightField": "<string>",
      "modelId": "<string>",
      "hidden": true,
      "streamConfig": {},
      "timeUnit": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user. Anywhere the resourceSlug is used can be interpreted as a teamId Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

appId
string
required

The appId of the app to be retrieved Mongodb Object id, unique identifier, length of 24 characters fitting the following regex; [a-f0-9]{24}

Response

JSON object containing the app with that teamId, will return an empty array if the request is successful but there are no associated agents.

csrf
string

cross site token

app
object

An agent object used for tasks or apps

tasks
object[]
tools
object[]
agents
object[]
models
object[]
datasources
object[]