---
title: "Read a bot profile, including archived history"
---

> Documentation Index
> Fetch the complete documentation index at: https://tryshiba.dev/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Shiba public API

`GET /org-agents/{agentId}`

## Authentication

Requires one of the following:

- `bearerAuth`, http, header `Authorization`, format `API key`
- `cookieAuth`, apiKey, in cookie

## Path parameters

- `agentId` (`get/org-agents/agentId.path.agentId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/org-agents/<agentId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/org-agents/<agentId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/org-agents/<agentId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Versioned bot profile

#### Example

```json
{
  "ok": true,
  "agent": {
    "id": "string",
    "orgId": "string",
    "slug": "string",
    "version": 1,
    "config": {
      "name": "string",
      "emoji": "string",
      "mascotPreset": "hero",
      "look": {
        "shape": "round",
        "color": "string",
        "eyes": "pill",
        "acc": "none"
      },
      "instructions": "string",
      "model": "string",
      "harness": "string",
      "codingModel": "string",
      "connectionId": "string",
      "sandboxProvider": "cloudflare",
      "defaultRepoUrl": "string",
      "expectedDeliverables": [
        "string"
      ],
      "approvalPolicy": "standard",
      "toolScopes": [
        "string"
      ]
    },
    "createdAt": 0,
    "updatedAt": 0,
    "archivedAt": 0
  }
}
```

- `ok` (`get/org-agents/agentId.response.200.ok`; boolean, optional)
- `agent` (`get/org-agents/agentId.response.200.agent`; object, optional)
  - `id` (`get/org-agents/agentId.response.200.agent.id`; string, required)
  - `orgId` (`get/org-agents/agentId.response.200.agent.orgId`; string, required)
  - `slug` (`get/org-agents/agentId.response.200.agent.slug`; string, required)
  - `version` (`get/org-agents/agentId.response.200.agent.version`; integer, required)
    - min 1
  - `config` (`get/org-agents/agentId.response.200.agent.config`; object, required)
    - `name` (`get/org-agents/agentId.response.200.agent.config.name`; string, required)
      - minLength 1; maxLength 120
    - `instructions` (`get/org-agents/agentId.response.200.agent.config.instructions`; string, required)
      - minLength 1; maxLength 32000
    - `emoji` (`get/org-agents/agentId.response.200.agent.config.emoji`; string, optional)
      - minLength 1; maxLength 16
    - `mascotPreset` (`get/org-agents/agentId.response.200.agent.config.mascotPreset`; string, optional)
      - one of `"hero"`, `"climbing"`, `"riding"`, `"sleeping"`, `"sunglasses"`
    - `look` (`get/org-agents/agentId.response.200.agent.config.look`; object, optional) — Visor mascot parts. When present, this wins over mascotPreset.
      - `shape` (`get/org-agents/agentId.response.200.agent.config.look.shape`; string, required)
        - one of `"round"`, `"bean"`, `"pointed"`, `"cloud"`, `"hex"`, `"squircle"`, `"pebble"`, `"egg"`, `"capsule"`
      - `color` (`get/org-agents/agentId.response.200.agent.config.look.color`; string, required)
        - pattern `^#[0-9A-Fa-f]{6}$`
      - `eyes` (`get/org-agents/agentId.response.200.agent.config.look.eyes`; string, required)
        - one of `"pill"`, `"big"`, `"happy"`, `"wink"`, `"surprised"`, `"squint"`, `"sleepy"`, `"heart"`, `"star"`, `"code"`
      - `acc` (`get/org-agents/agentId.response.200.agent.config.look.acc`; string, required)
        - one of `"none"`, `"pen"`, `"wrench"`, `"coffee"`, `"loupe"`, `"megaphone"`, `"clipboard"`, `"compass"`, `"headset"`, `"chart"`
    - `model` (`get/org-agents/agentId.response.200.agent.config.model`; string, optional) — Optional provider-independent conversational model. Coding execution uses codingModel instead.
      - minLength 1; maxLength 200
    - `harness` (`get/org-agents/agentId.response.200.agent.config.harness`; string, optional)
      - minLength 1; maxLength 64
    - `codingModel` (`get/org-agents/agentId.response.200.agent.config.codingModel`; string, optional)
      - minLength 1; maxLength 200
    - `connectionId` (`get/org-agents/agentId.response.200.agent.config.connectionId`; string, optional)
      - minLength 1; maxLength 120
    - `sandboxProvider` (`get/org-agents/agentId.response.200.agent.config.sandboxProvider`; string, optional)
      - one of `"cloudflare"`, `"docker-local"`, `"computesdk"`, `"e2b"`
    - `defaultRepoUrl` (`get/org-agents/agentId.response.200.agent.config.defaultRepoUrl`; string, optional)
      - minLength 1; maxLength 500
    - `expectedDeliverables` (`get/org-agents/agentId.response.200.agent.config.expectedDeliverables`; array<string>, optional) — Optional approval-frozen output paths, in delivery order. Paths are unique ignoring case, relative and non-hidden. Formats: MD, TXT, JSON, CSV (16 KiB each, 64 KiB combined); HTML (512 KiB) and PDF (10 MiB), with a 10.5 MiB combined budget; XLSX, DOCX, PPTX, PNG, JPG/JPEG, WebP, GIF (5 MiB each) and MP4 (12 MiB), with a 16 MiB combined budget. Binary formats must match their file signature. Collection checks do not assess semantic quality.
      - minLength 1; maxLength 240; pattern `^(?!.* (?:/|$))(?:[A-Za-z0-9][A-Za-z0-9._ -]*/)*[A-Za-z0-9][A-Za-z0-9._ -]*\.(?:[mM][dD]|[tT][xX][tT]|[jJ][sS][oO][nN]|[cC][sS][vV]|[hH][tT][mM][lL]|[pP][dD][fF]|[xX][lL][sS][xX]|[dD][oO][cC][xX]|[pP][pP][tT][xX]|[pP][nN][gG]|[jJ][pP][eE]?[gG]|[wW][eE][bB][pP]|[gG][iI][fF]|[mM][pP]4)$`
    - `approvalPolicy` (`get/org-agents/agentId.response.200.agent.config.approvalPolicy`; string, optional) — Legacy auto_approve configuration does not bypass human run approval.
      - one of `"standard"`, `"auto_approve"`
    - `toolScopes` (`get/org-agents/agentId.response.200.agent.config.toolScopes`; array<string>, optional) — Legacy values are readable; create/update reject nonempty scopes until execution enforces them.
      - maxLength 64
  - `createdAt` (`get/org-agents/agentId.response.200.agent.createdAt`; number, required)
  - `updatedAt` (`get/org-agents/agentId.response.200.agent.updatedAt`; number, required)
  - `archivedAt` (`get/org-agents/agentId.response.200.agent.archivedAt`; number, optional)

### 404

Bot not found


Source: https://tryshiba.dev/reference/api/get/org-agents/agentId/index.md
