REST API v1

In testing, not live yet. It is built and being tested.

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

CallKey needsWhat it does
GET/v1/meAny keyThe workspace, its API credit, the areas that are on and what this key may do
GET/v1/toolsAny keyEvery tool this workspace has, with its inputs and the permission it needs
GET/v1/tools/{name}Any keyOne tool and its inputs
POST/v1/tools/{name}Read, Change or PublishRun 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_…" }.

Read the next posts
curl https://api.odomarketing.com/v1/tools/list_posts \
  -H "Authorization: Bearer $GLIVYX_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "status": "scheduled", "limit": 10 }'
Schedule a post (needs Publish)
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.

PriceCall
US$0.001Read anything
US$0.01Change something: a draft, the library, the brand profile
US$0.02Make a post, for each account. An X account adds US$0.40
US$1.00Make a picture
US$1.00Make a video, for each 5 seconds. Sharper and Pro video cost up to US$4.00
US$1.00Make a new ad from an example
US$0.30Voice-over
US$0.50Music
US$0.25Put a video together
US$0.50Audit a website
US$0.05Write a campaign, draw an ad, make a preview
US$0.10Budget advice before a campaign
US$0.25Publish a campaign
US$0.05Pause, 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
{
  "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"
  }
}
StatusCodeWhat happened
401invalid_keyThe key is missing, mistyped or removed
402insufficient_creditThe workspace has too little API credit for this call
403permission_missingThe key may not do that: it needs Change or Publish
403key_stoppedThe person who made the key left the workspace
404unknown_toolNo such tool here
400invalid_inputsThe inputs do not fit the tool. The message names the field
422tool_refusedThe tool said no, in plain words: a missing connection, a limit, a platform refusal
409still_runningThe first call with this Idempotency-Key has not finished
409idempotency_mismatchThis Idempotency-Key was used for a different call
429rate_limitedMore than 120 calls in a minute with one key
504timeoutThe call ran longer than five minutes
500internalOur fault. Safe to try again