# Build with Claude and other AI assistants

[Orbito Ads · English · HTML](https://orbitoads.pro/docs/api/ai-assistants/)

Sources checked · 2026-11-27

### Browse documentation



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[Orbito Ads](/en/) [Documentation](/docs/) [API](/docs/api/)



Read the OpenAPI schema for request fields and the Markdown reference for behaviour. Keep real keys in the server environment. Check a read-only operation before enabling campaign changes.


[Markdown](/docs/api/ai-assistants.md)



These docs are written to be read by coding agents as well as people. Every page exists as plain Markdown, the whole set is available as one file, and the API is described by an OpenAPI spec. Point your assistant at them and it has everything it needs.



## Files for agents


| File | What it is | When to use it |
| --- | --- | --- |
| [`/docs/llms.txt`](/docs/llms.txt) | Index of every page, with one-line summaries ([llms.txt format](https://llmstxt.org/)) | Let the agent pick the pages it needs |
| [`/docs/llms-full.txt`](/docs/llms-full.txt) | All pages in one Markdown file (about 80 KB) | Tools that load a large file whole; web-fetch tools may cut it short, so prefer `llms.txt` + pages there |
| [`/docs/api/openapi.yaml`](/docs/api/openapi.yaml) | OpenAPI 3.1 spec: endpoints, parameters, schemas, error codes | Typed clients, request validation, Postman |
| `<any page>.md` | The page as Markdown, e.g. [`/docs/api/create-campaigns.md`](/docs/api/create-campaigns.md) | A single topic |


Every page also has **Copy page as Markdown**  at the top — paste it straight into a chat.



## Prompt: integrate the API (Claude Code)



Paste this into Claude Code (or another coding agent) in the project that should talk to Orbito Ads. Edit the last paragraph to say what you’re building.


Example

```
Integrate the Orbito Ads API into this project.

Before writing code, read https://orbitoads.pro/docs/llms.txt and the relevant Markdown pages it lists. The complete documentation is at https://orbitoads.pro/docs/llms-full.txt. The machine-readable contract is at https://orbitoads.pro/docs/api/openapi.yaml.

- Use https://orbitoads.pro/api/v1 and the X-API-Key header. Load ORBITO_API_KEY from the environment. Never store it in source or logs.
- Identify campaigns by (account_id, ad_id). The same ad_id can occur in several accounts.
- Send a fresh UUID in Idempotency-Key for every POST to /campaigns, /campaigns/bulk, /campaigns/{id}/copy or /campaigns/{id}/budget. Reuse that UUID when retrying the same operation.
- Creation, copy and bulk operations return 202 and a task. Poll GET /tasks/{id} using Retry-After until the task is completed or failed.
- Money values are decimal strings. Parse them with decimal precision before comparing them.
- After 429, wait for Retry-After. After a 5xx during a write, read the campaign with GET before retrying with a new Idempotency-Key.
- Use the code field for program logic and the error field for the user-facing message.
- Provide a small typed API client and tests that mock HTTP responses.

Feature to implement: <for example, every hour, pause campaigns in account 53 whose CPA over the last 24 hours exceeds 4 EUR>.
```



## Prompt: one-off task in a chat



For a question rather than a codebase change (Claude.ai, ChatGPT or any chat with web access):


Example

```
Read https://orbitoads.pro/docs/llms.txt and its campaigns and statistics pages. Write a Python script using Orbito Ads that lists every Active campaign in my accounts with its spend over the last 7 days. Sort by spend. Read the API key from ORBITO_API_KEY.
```



## Rules for your project’s CLAUDE.md



If your project has a `CLAUDE.md` (Claude Code reads it at the start of every session), add this block so every future change to the integration follows the same rules:


Example

```
## Orbito Ads API integration
- Consult https://orbitoads.pro/docs/llms.txt and the relevant .md page, plus https://orbitoads.pro/docs/api/openapi.yaml, before changing an API call. Read endpoints and fields from the specification.
- Load ORBITO_API_KEY from the environment and keep it out of commits, terminal output and logs.
- Use (account_id, ad_id) as campaign identity. Send Idempotency-Key for every POST that creates a campaign or moves money, one UUID per operation reused on retry.
- For create, copy and bulk operations poll GET /v1/tasks/{id}. Route live budget, pause and delete operations through one tested module. Ask for approval before running an ad-hoc script against production.
```



## Working safely with an agent



- **Develop with a read-only key.**  The agent can explore real data and nothing can change. Switch to a key with **Manage campaigns**  only when the write code is reviewed.
- **Create campaigns with `"active": false` and `"budget": 0` while testing.**  Nothing runs and nothing is spent; delete them afterwards.
- **Narrow the key’s scope**  to a test cabinet while the integration is new.
- **Let the agent read errors.**  Every error says what to fix (`error`) and carries a stable `code` and the `param` that was wrong — agents fix their own requests from these without guessing.
- Everything the API changes shows in the panel’s campaign history marked **🔌 API** , so you can review what the agent did.



## API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

Example · cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```



## Implementation notes

## Keys and cabinet permissions

Keep X-API-Key on the server. A reporting key has read access. Changes require Manage campaigns, owner or manager access to the selected account, and the corresponding active plan and feature rights.



## A reproducible integration brief

Provide the local OpenAPI contract, a fictional account id, the required operation, expected response and a test for retries. Let the server read the real key from its secret store. Read-only reporting starts with accounts and campaign listing.



## Operations and fields

/docs/api/openapi.yaml /docs/llms.txt /docs/llms-full.txt /docs/api.md



- /docs/api/openapi.yaml
- /docs/llms.txt
- /docs/llms-full.txt
- /docs/api.md



## Request example

GET /docs/api/openapi.yaml



## Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.



## Protocol reference

| Method | Route | Parameters | Request content | Response codes |
| --- | --- | --- | --- | --- |
| GET | /api/v1/account/info | — | — | 200, 401, 429 |
| GET | /api/v1/targeting | — | — | 200, 401 |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Schema fields and limits · Using the API reference with an assistant

| Field | Documented value |
| --- | --- |
| /docs/llms.txt | index |
| /docs/llms-full.txt | Markdown |
| /docs/api/openapi.yaml | OpenAPI 3.1 |
| /docs/api/create-campaigns.md | Markdown |


Source · [Data source](https://adsly.pro/docs/api/ai-assistants/)



[llmstxt.org](https://llmstxt.org/)

## Related reading

[Developer documentation](/docs/)[API quickstart](/docs/api/)[Keys and cabinet permissions](/docs/api/authentication/)



Reference revision 2026-10-08



[Previous topic**Keys and cabinet permissions**](/docs/api/authentication/)[Next topic**Reading API errors**](/docs/api/errors/)

## Sources and data

- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
