---
title: "Create a bot"
method: POST
path: "/api/v4/bots"
tags: ["bots"]
---

# Create a bot

`POST /api/v4/bots`

Create a new bot account on the system. Username is required.
##### Permissions
Must have `create_bot` permission.

## Request body

- object
  - `username` string, required
  - `display_name` string
  - `description` string

## Response `201`

Bot creation successful

- 38cb7293Bot — A bot account
  - `user_id` string — The user id of the associated user entry.
  - `create_at` integer — The time in milliseconds a bot was created
  - `update_at` integer — The time in milliseconds a bot was last updated
  - `delete_at` integer — The time in milliseconds a bot was deleted
  - `username` string
  - `display_name` string
  - `description` string
  - `owner_id` string — The user id of the user that currently owns this bot.

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
