---
title: "Get all custom codes"
method: GET
path: "/custom_codes/bots/{bot_id}"
tags: ["Custom code"]
---

# Get all custom codes

`GET /custom_codes/bots/{bot_id}`

Get the custom code list ( id + name ) of a bot

## Path parameters

- `bot_id` string, required

## Query parameters

- `lang` string, required
- `search` string
- `search_in` string

## Response `200`

successful

- GetAllCodes
  - `result` object[]
    - `_id` string
    - `name` string
    - `updatedAt` string
    - `createdAt` string

## Other responses

- `400` — Invalid ID supplied
- `404` — not found

---

[API](https://skmtc.net/smartly/apis/smartly-ai-apis.md) · [All operations](https://skmtc.net/smartly/apis/smartly-ai-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartly/smartly-ai-apis/revisions/1e26909d86c9/schema)
