REST API v1
The API runs the same 76 tools as the Claude connector, with the same permissions. It needs no plan: you add credit, and each call takes its price from it.
Keys
An Owner or Admin makes a key in this console. Send it as Authorization: Bearer glv_live_…. A key belongs to one workspace and acts as the person who made it. Keep it on your server, never in a web page.
- Live or Test. A
glv_test_…key reads for real. For a change it checks the inputs and the permission, then does nothing. - Read. Sees posts, ads, the library and reports.
- Change. Also makes drafts, pictures and library changes.
- Publish. Also schedules posts and changes live ads.
Calls
| Call | Key needs | What it does |
|---|---|---|
| GET/v1/me | Any key | The workspace, its API credit, the areas that are on and what this key may do |
| GET/v1/tools | Any key | Every tool this workspace has, with its inputs and the permission it needs |
| GET/v1/tools/{name} | Any key | One tool and its inputs |
| POST/v1/tools/{name} | Read, Change or Publish | Run a tool. The JSON body is its inputs |
Every tool in the list above is a call: its name goes in the address and its inputs in the body. The answer is { "result": …, "request_id": "req_…" }.
curl https://api.odomarketing.com/v1/tools/list_posts \
-H "Authorization: Bearer $GLIVYX_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "scheduled", "limit": 10 }'curl https://api.odomarketing.com/v1/tools/create_post \
-H "Authorization: Bearer $GLIVYX_KEY" \
-H "Idempotency-Key: 6f1c2a52-launch-post" \
-H "Content-Type: application/json" \
-d '{
"content": "Our spring range is here.",
"social_account_ids": ["<account id from list_social_accounts>"],
"media_id": "<library item id from list_media>",
"schedule": "2026-11-20T09:00:00+11:00"
}'Safe to retry
Send an Idempotency-Key header with a call that changes something. Sending the same key again within 24 hours returns the first answer, so a retried call never posts twice.
Limits
- 120 calls a minute for each key.
- 10 keys for each workspace.
- The call log in this console keeps 30 days, and the newest 100,000 calls at most.
- No monthly counts: a call runs while the workspace has credit for it.
Prices
In US dollars, taken from the workspace's API credit. A call that fails or is refused costs nothing. A Test key's changes cost nothing, because they are checked and not made.
| Price | Call |
|---|---|
| US$0.001 | Read anything |
| US$0.01 | Change something: a draft, the library, the brand profile |
| US$0.02 | Make a post, for each account. An X account adds US$0.40 |
| US$1.00 | Make a picture |
| US$1.00 | Make a video, for each 5 seconds. Sharper and Pro video cost up to US$4.00 |
| US$1.00 | Make a new ad from an example |
| US$0.30 | Voice-over |
| US$0.50 | Music |
| US$0.25 | Put a video together |
| US$0.50 | Audit a website |
| US$0.05 | Write a campaign, draw an ad, make a preview |
| US$0.10 | Budget advice before a campaign |
| US$0.25 | Publish a campaign |
| US$0.05 | Pause, resume or change a live ad or budget |
Credit
- Add credit in Billing in this console: US$5 to US$500 at a time, paid on Stripe's page.
- Credit does not expire.
- Auto recharge adds an amount you choose when the credit falls below a level you choose. It runs at most three times a day.
- Every answer says what the call cost (
cost_usd) and what is left (credit_left_usd).
Errors
Every error has the same shape, with a request id to quote to support.
{
"error": {
"code": "permission_missing",
"message": "This key can't do that. It needs the Publish permission: make a key with it in this console.",
"request_id": "req_3f9a1c2b7d4e5f60"
}
}| Status | Code | What happened |
|---|---|---|
| 401 | invalid_key | The key is missing, mistyped or removed |
| 402 | insufficient_credit | The workspace has too little API credit for this call |
| 403 | permission_missing | The key may not do that: it needs Change or Publish |
| 403 | key_stopped | The person who made the key left the workspace |
| 404 | unknown_tool | No such tool here |
| 400 | invalid_inputs | The inputs do not fit the tool. The message names the field |
| 422 | tool_refused | The tool said no, in plain words: a missing connection, a limit, a platform refusal |
| 409 | still_running | The first call with this Idempotency-Key has not finished |
| 409 | idempotency_mismatch | This Idempotency-Key was used for a different call |
| 429 | rate_limited | More than 120 calls in a minute with one key |
| 504 | timeout | The call ran longer than five minutes |
| 500 | internal | Our fault. Safe to try again |