Operations

Every operation of the Indrava REST API with its scope, MCP tool name and inputs.

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/operations"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/aba264cf-1477-47e7-b07b-71e01ddc00c2/social-card.svg?v=3e7ae33eec8b" alt="Operations" width="600" height="315"></a>

<!-- Generated by scripts/api-docs.ts from the API's OpenAPI document. Do not edit by hand. -->

The API has 239 operations. Each one is a REST route under /api/v1, and an MCP tool with the name shown. The scope is what an API key or OAuth token must carry to call it; a write scope also covers the matching read scope. The MCP server itself always asks for a token. Response shapes, and a form to try each call, are in the API reference in this space.

In the examples, http://localhost:4000 stands for the address of your Indrava API, and body.json for a file with the JSON body.

Queue

Where publishing is paused

GET /api/v1/publishing/pause

Each active pause: the whole workspace (clientId null) or one client, who paused it, when and why.

  • Scope: publishing:read

  • MCP tool: pause_get

No parameters.

curl http://localhost:4000/api/v1/publishing/pause \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Pause all publishing for the workspace or one client

POST /api/v1/publishing/pause

Every scheduled, queued and automation-made post is held, and stays scheduled, until publishing is resumed.

  • Scope: publishing:write

  • MCP tool: pause_pause

Name

In

Type

Required

clientId

body

string or null

no

reason

body

string (at most 500 characters)

no

curl -X POST http://localhost:4000/api/v1/publishing/pause \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Resume publishing, and say what happens to posts whose time passed

POST /api/v1/publishing/resume

overdue: publish_now (one minute apart, oldest first), next_slots (the channel's next free times) or drafts.

  • Scope: publishing:write

  • MCP tool: pause_resume

Name

In

Type

Required

clientId

body

string or null

no

overdue

body

"publish_now" or "next_slots" or "drafts"

yes

curl -X POST http://localhost:4000/api/v1/publishing/resume \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Best times to post on a channel

GET /api/v1/slots/best-times

Up to seven ranked times per weekday in the channel's zone, from its own posts of the last 16 weeks (ranked by goal), follower-online hours where the platform reports them, else general default times (source: default).

  • Scope: slots:read

  • MCP tool: queue_bestTimes

Name

In

Type

Required

channelId

query

string

yes

goal

query

"engagement" or "reach" or "clicks"

no

days

query

array of integer (min 1, max 7)

no

perDay

query

integer (min 1, max 24)

no

curl http://localhost:4000/api/v1/slots/best-times \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Queue status: goals, streaks and queue length per channel

GET /api/v1/slots/queue

  • Scope: slots:read

  • MCP tool: queue_status

Name

In

Type

Required

channelIds

query

array of string

no

curl http://localhost:4000/api/v1/slots/queue \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The queued posts of a channel in order

GET /api/v1/slots/{channelId}/queue

  • Scope: slots:read

  • MCP tool: queue_order

Name

In

Type

Required

channelId

path

string

yes

tagId

query

string

no

curl http://localhost:4000/api/v1/slots/{channelId}/queue \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Set a channel's weekly posting goal

POST /api/v1/slots/goals

perWeek 0 removes the goal. The answer says how many posting times the channel is missing to reach it.

  • Scope: slots:write

  • MCP tool: queue_setGoal

Name

In

Type

Required

channelId

body

string

yes

perWeek

body

integer (min 0, max 70)

yes

curl -X POST http://localhost:4000/api/v1/slots/goals \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Shuffle a channel's queued posts across their existing times

POST /api/v1/slots/{channelId}/shuffle

  • Scope: slots:write

  • MCP tool: queue_shuffle

Name

In

Type

Required

channelId

path

string

yes

curl -X POST http://localhost:4000/api/v1/slots/{channelId}/shuffle \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Move a queued post to the top or the bottom of its channel's queue

POST /api/v1/slots/{channelId}/move

  • Scope: slots:write

  • MCP tool: queue_move

Name

In

Type

Required

channelId

path

string

yes

postId

body

string

yes

to

body

"top" or "bottom"

yes

curl -X POST http://localhost:4000/api/v1/slots/{channelId}/move \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Copy a posting time to other weekdays

POST /api/v1/slots/{channelId}/duplicate

  • Scope: slots:write

  • MCP tool: queue_duplicate

Name

In

Type

Required

channelId

path

string

yes

weekday

body

integer (min 1, max 7)

yes

time

body

string

yes

toWeekdays

body

array of integer (min 1, max 7)

yes

curl -X POST http://localhost:4000/api/v1/slots/{channelId}/duplicate \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

POST /api/v1/slots/{channelId}/recommended

replace swaps all its posting times, add keeps them and adds the recommended ones (raise perDay for more).

  • Scope: slots:write

  • MCP tool: queue_recommend

Name

In

Type

Required

channelId

path

string

yes

mode

body

"replace" or "add"

no

perDay

body

integer (min 1, max 7)

no

goal

body

"engagement" or "reach" or "clicks"

no

curl -X POST http://localhost:4000/api/v1/slots/{channelId}/recommended \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Set the timezone a channel's posting times are read in

PUT /api/v1/slots/{channelId}/timezone

null goes back to the workspace timezone.

  • Scope: slots:write

  • MCP tool: queue_setZone

Name

In

Type

Required

channelId

path

string

yes

timezone

body

string or null

yes

curl -X PUT http://localhost:4000/api/v1/slots/{channelId}/timezone \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Categories (tags) used by posting times, with their pause state

GET /api/v1/slots/categories

  • Scope: slots:read

  • MCP tool: queue_categories

No parameters.

curl http://localhost:4000/api/v1/slots/categories \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Pause or resume a category: its posting times are skipped while paused

POST /api/v1/slots/categories/pause

  • Scope: slots:write

  • MCP tool: queue_pauseCategory

Name

In

Type

Required

tagId

body

string

yes

paused

body

boolean

yes

curl -X POST http://localhost:4000/api/v1/slots/categories/pause \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List posting slots

GET /api/v1/slots

  • Scope: slots:read

  • MCP tool: slots_list

No parameters.

curl http://localhost:4000/api/v1/slots \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Replace the posting slots of a channel

PUT /api/v1/slots/{channelId}

  • Scope: slots:write

  • MCP tool: slots_set

Name

In

Type

Required

channelId

path

string

yes

slots

body

array of object

yes

curl -X PUT http://localhost:4000/api/v1/slots/{channelId} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Preview the next free slots per channel

GET /api/v1/slots/preview

  • Scope: slots:read

  • MCP tool: slots_preview

Name

In

Type

Required

channelIds

query

array of string

no

count

query

integer (min 1, max 50)

no

curl http://localhost:4000/api/v1/slots/preview \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Schedule a post at the next free slot of each of its channels

POST /api/v1/posts/{postId}/enqueue

  • Scope: posts:write

  • MCP tool: slots_enqueue

Name

In

Type

Required

postId

path

string

yes

position

body

"top" or "bottom"

no

tagId

body

string

no

from

body

ISO 8601 time

no

to

body

ISO 8601 time

no

natural

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/{postId}/enqueue \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Media

List the image and video generators and the credits left

GET /api/v1/media/generate/options

images and videos are empty when the server has no generator configured; credits are per calendar month (UTC).

  • Scope: media:read

  • MCP tool: ai_generation

No parameters.

curl http://localhost:4000/api/v1/media/generate/options \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Generate an image into the media library

POST /api/v1/media/generate/image

Answers the new file like GET /media/{id}. 503 AI_NOT_CONFIGURED when the server has no image generator.

  • Scope: media:write

  • MCP tool: ai_image

Name

In

Type

Required

prompt

body

string (at most 4000 characters)

yes

aspect

body

"1:1" or "4:5" or "16:9" or "9:16"

no

style

body

string (at most 60 characters)

no

generator

body

string

no

clientId

body

string

no

curl -X POST http://localhost:4000/api/v1/media/generate/image \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Start generating a video into the media library

POST /api/v1/media/generate/video

Pick generator from GET /media/generate/options (the first one when left out). 503 AI_NOT_CONFIGURED when the server has none.

  • Scope: media:write

  • MCP tool: ai_videoStart

Name

In

Type

Required

generator

body

string

no

prompt

body

string (at most 10000 characters)

yes

orientation

body

"vertical" or "horizontal"

no

voiceId

body

string

no

mediaIds

body

array of string

no

clientId

body

string

no

curl -X POST http://localhost:4000/api/v1/media/generate/video \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get the state of a video generation

GET /api/v1/media/generate/video/{id}

status is queued, running, done (with media) or failed (with error).

  • Scope: media:read

  • MCP tool: ai_videoStatus

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/generate/video/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the media library

GET /api/v1/media

Newest first, each with a short-lived download url. Page with cursor (the id of the last file of the previous page).

  • Scope: media:read

  • MCP tool: media_list

Name

In

Type

Required

search

query

string (at most 200 characters)

no

kind

query

"image" or "video" or "audio" or "document"

no

cursor

query

string

no

limit

query

integer (min 1, max 100)

no

folderId

query

string

no

labelId

query

string

no

starred

query

boolean

no

used

query

boolean

no

clientId

query

string

no

submitted

query

boolean

no

curl http://localhost:4000/api/v1/media \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get one file of the media library

GET /api/v1/media/{id}

Type, size, dimensions and a fresh short-lived download url. A file that answers here is stored and ready to attach to a post.

  • Scope: media:read

  • MCP tool: media_get

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Rename a file or set its alt text

PATCH /api/v1/media/{id}

  • Scope: media:write

  • MCP tool: media_update

Name

In

Type

Required

id

path

string

yes

name

body

string (at most 255 characters)

no

alt

body

string (at most 1500 characters) or null

no

clientId

body

string or null

no

curl -X PATCH http://localhost:4000/api/v1/media/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a file

DELETE /api/v1/media/{id}

Answers 409 while a post or a running series uses the file; force: true deletes it anyway and those posts publish without it.

  • Scope: media:write

  • MCP tool: media_remove

Name

In

Type

Required

id

path

string

yes

force

body

boolean

no

curl -X DELETE http://localhost:4000/api/v1/media/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Add a file to the media library from a public URL

POST /api/v1/media/import

The answer's id goes into a post part's mediaIds. To send the bytes yourself, POST multipart/form-data with one file to /media/upload on the API's origin (same bearer, media:write).

  • Scope: media:write

  • MCP tool: media_importUrl

Name

In

Type

Required

url

body

string (at most 2000 characters)

yes

clientId

body

string

no

folderId

body

string

no

credit

body

string (at most 500 characters)

no

sourceUrl

body

string (at most 2000 characters)

no

alt

body

string (at most 1500 characters)

no

note

body

string (at most 5000 characters)

no

curl -X POST http://localhost:4000/api/v1/media/import \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get the processing state of a file

GET /api/v1/media/{id}/status

ready, processing, failed (with error) or unavailable (the server cannot process media). A file nothing was asked of is ready.

  • Scope: media:read

  • MCP tool: mediaJobs_status

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/{id}/status \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Convert a file to fit a platform's media limits

POST /api/v1/media/{id}/adjust

Answers ready when the file already fits, else processing: poll GET /media/{id}/status.

  • Scope: media:write

  • MCP tool: mediaJobs_adjust

Name

In

Type

Required

id

path

string

yes

provider

body

string

yes

replace

body

boolean

no

curl -X POST http://localhost:4000/api/v1/media/{id}/adjust \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Choose a video's preview picture

POST /api/v1/media/{id}/thumbnail

Send atMs (a moment of the video) or mediaId (a library image).

  • Scope: media:write

  • MCP tool: mediaJobs_setThumbnail

Name

In

Type

Required

id

path

string

yes

atMs

body

integer (min 0, max 9007199254740991)

no

mediaId

body

string

no

curl -X POST http://localhost:4000/api/v1/media/{id}/thumbnail \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Cut short clips out of a video

POST /api/v1/media/{id}/clips

Answers the job; list a video's jobs and their clips with GET /media/{id}/clips. findMoments lets the model choose the clips from the transcript (the job's segments are empty until it has, then carry a title and reason); captions burns the spoken words into the picture; language (ISO 639-1, such as en) tells the transcription service what is spoken, auto lets it detect the language, and left out it is the language you chose for the interface, if any. Both need AI switched on for the workspace (403 otherwise) and a transcription service on the server: without one the job ends as unavailable and says why.

  • Scope: media:write

  • MCP tool: mediaJobs_clip

Name

In

Type

Required

id

path

string

yes

segments

body

array of object

no

seconds

body

integer (min 5, max 180)

no

max

body

integer (min 1, max 20)

no

vertical

body

boolean

no

findMoments

body

boolean

no

captions

body

boolean

no

language

body

string

no

curl -X POST http://localhost:4000/api/v1/media/{id}/clips \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List the clip jobs of a video

GET /api/v1/media/{id}/clips

Newest first. status is queued, running, done, failed or unavailable; clipIds are the library files made so far.

  • Scope: media:read

  • MCP tool: mediaJobs_clips

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/{id}/clips \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Edit videos into a new video

POST /api/v1/media/edit

clips is the list of pieces in playing order (the same video may appear several times, trimmed differently): trimming, splitting, reordering and merging are all that list. Optional: mute or audioMediaId (a library audio file replacing the sound), ratio (centred crop), rotate, flip, speed (0.25 to 4), timed texts and coverMs. Answers the job: poll GET /media/jobs/{id}; the new file is its resultMediaId. The original files stay as they are.

  • Scope: media:write

  • MCP tool: mediaJobs_editVideo

Name

In

Type

Required

clips

body

array of object

yes

mute

body

boolean

no

audioMediaId

body

string

no

ratio

body

"1:1" or "4:5" or "9:16" or "16:9" or "4:3"

no

rotate

body

0 or 90 or 180 or 270

no

flip

body

"h" or "v" or "both"

no

speed

body

number (min 0.25, max 4)

no

texts

body

array of object

no

coverMs

body

integer (min 0, max 9007199254740991)

no

curl -X POST http://localhost:4000/api/v1/media/edit \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Make a video of several pictures

POST /api/v1/media/slideshow

secondsPerImage 1 to 30, transition none, fade or slide, ratio 1:1, 9:16, 16:9 or 4:5, optional audioMediaId. Answers the job: poll GET /media/jobs/{id}.

  • Scope: media:write

  • MCP tool: mediaJobs_slideshow

Name

In

Type

Required

mediaIds

body

array of string

yes

secondsPerImage

body

number (min 1, max 30)

yes

transition

body

"none" or "fade" or "slide"

yes

ratio

body

"1:1" or "9:16" or "16:9" or "4:5"

yes

audioMediaId

body

string

no

curl -X POST http://localhost:4000/api/v1/media/slideshow \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get an editing job

GET /api/v1/media/jobs/{id}

status is queued, running, done, failed or unavailable (the server cannot process media). When done, resultMediaId is the new library file.

  • Scope: media:read

  • MCP tool: mediaJobs_job

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/jobs/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

POST /api/v1/media/clips-from-url

url must be the address of the video file itself; a page that plays a video (YouTube, Vimeo, TikTok) is refused with 400. The options are those of POST /media/{id}/clips. draftChannelIds also makes a draft post of each clip for those channels once the job is done. Answers the clip job; the imported video is mediaId.

  • Scope: media:write

  • MCP tool: mediaJobs_clipsFromUrl

Name

In

Type

Required

url

body

string (at most 2000 characters)

yes

clientId

body

string

no

draftChannelIds

body

array of string

no

segments

body

array of object

no

seconds

body

integer (min 5, max 180)

no

max

body

integer (min 1, max 20)

no

vertical

body

boolean

no

findMoments

body

boolean

no

captions

body

boolean

no

language

body

string

no

curl -X POST http://localhost:4000/api/v1/media/clips-from-url \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List the media library's folders

GET /api/v1/media/folders

Nested through parentId; each with the number of files directly in it.

  • Scope: media:read

  • MCP tool: mediaOrganise_folders_list

No parameters.

curl http://localhost:4000/api/v1/media/folders \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create a media folder

POST /api/v1/media/folders

  • Scope: media:write

  • MCP tool: mediaOrganise_folders_create

Name

In

Type

Required

name

body

string (at most 100 characters)

yes

parentId

body

string or null

no

clientId

body

string or null

no

curl -X POST http://localhost:4000/api/v1/media/folders \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Rename a media folder or move it under another

PATCH /api/v1/media/folders/{id}

parentId: null moves it to the top.

  • Scope: media:write

  • MCP tool: mediaOrganise_folders_update

Name

In

Type

Required

id

path

string

yes

name

body

string (at most 100 characters)

no

parentId

body

string or null

no

curl -X PATCH http://localhost:4000/api/v1/media/folders/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a media folder

DELETE /api/v1/media/folders/{id}

The files in it stay in the library, out of any folder; sub-folders move up one level.

  • Scope: media:write

  • MCP tool: mediaOrganise_folders_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/media/folders/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the media library's labels

GET /api/v1/media/labels

  • Scope: media:read

  • MCP tool: mediaOrganise_labels_list

No parameters.

curl http://localhost:4000/api/v1/media/labels \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a media label

POST /api/v1/media/labels

  • Scope: media:write

  • MCP tool: mediaOrganise_labels_save

Name

In

Type

Required

id

body

string

no

name

body

string (at most 50 characters)

yes

color

body

string

yes

curl -X POST http://localhost:4000/api/v1/media/labels \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a media label

DELETE /api/v1/media/labels/{id}

  • Scope: media:write

  • MCP tool: mediaOrganise_labels_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/media/labels/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Add or remove a label on several files

POST /api/v1/media/labels/apply

  • Scope: media:write

  • MCP tool: mediaOrganise_labels_apply

Name

In

Type

Required

labelId

body

string

yes

mediaIds

body

array of string

yes

remove

body

boolean

no

curl -X POST http://localhost:4000/api/v1/media/labels/apply \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Move files into a folder

POST /api/v1/media/move

folderId: null takes them out of any folder.

  • Scope: media:write

  • MCP tool: mediaOrganise_files_move

Name

In

Type

Required

mediaIds

body

array of string

yes

folderId

body

string or null

yes

curl -X POST http://localhost:4000/api/v1/media/move \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List what uses a media file

GET /api/v1/media/{id}/usage

The posts (with status and time) and the number of running series.

  • Scope: media:read

  • MCP tool: mediaOrganise_files_usedBy

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/media/{id}/usage \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the saved watermarks

GET /api/v1/media/watermarks

Each has its logo (mediaId), position (fx, fy: 0 to 1 of the free space), sizePct, opacityPct and marginPct. channels lists the channels that stamp every photo or video they publish.

  • Scope: media:read

  • MCP tool: watermarks_list

No parameters.

curl http://localhost:4000/api/v1/media/watermarks \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Make a watermarked copy of a picture or video

POST /api/v1/media/{id}/watermark

Answers the job: poll GET /media/jobs/{id}; the copy is its resultMediaId. The original is not changed.

  • Scope: media:write

  • MCP tool: watermarks_apply

Name

In

Type

Required

id

path

string

yes

watermarkId

body

string

yes

curl -X POST http://localhost:4000/api/v1/media/{id}/watermark \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

AI

Write a post from a brief, a text or a web page

POST /api/v1/ai/draft

Without channelIds one generic post is written. With autoHashtag hashtags are added at hashtagPosition (hashtagCount 1 to 10). The result is not saved: use POST /posts with action: draft.

  • Scope: ai:write

  • MCP tool: aiTools_draft

Name

In

Type

Required

brief

body

string (at most 10000 characters)

no

text

body

string (at most 200000 characters)

no

url

body

string

no

channelIds

body

array of string

no

thread

body

boolean

no

autoHashtag

body

boolean

no

hashtagCount

body

integer (min 1, max 10)

no

hashtagPosition

body

"end" or "start"

no

curl -X POST http://localhost:4000/api/v1/ai/draft \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Change a post, or a passage of it, by any instruction

POST /api/v1/ai/rewrite

instruction is free text ('make it funnier'). With selection only that passage changes and the rest comes back as it was. command also applies the member's standing instruction for that built-in command.

  • Scope: ai:write

  • MCP tool: aiTools_rewrite

Name

In

Type

Required

text

body

string (at most 100000 characters)

yes

selection

body

string (at most 100000 characters)

no

instruction

body

string (at most 2000 characters)

yes

command

body

"rewrite" or "shorten" or "expand" or "tone" or "grammar" or "translate" or "continue" or "spintax" or "hook" or "hashtags" or "draft"

no

channelId

body

string

no

curl -X POST http://localhost:4000/api/v1/ai/rewrite \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Translate a post into one or more languages

POST /api/v1/ai/translate

Tone, links and mentions are kept; with channelId each result fits that channel's limit.

  • Scope: ai:write

  • MCP tool: aiTools_translate

Name

In

Type

Required

text

body

string (at most 100000 characters)

yes

languages

body

array of string (at most 60 characters)

yes

channelId

body

string

no

curl -X POST http://localhost:4000/api/v1/ai/translate \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Suggest hashtags for a post

POST /api/v1/ai/hashtags

max 1 to 10. position says where text would carry them (end or start); withHashtags is the text with them placed. With mediaIds and a vision-capable model the pictures are read too.

  • Scope: ai:write

  • MCP tool: aiTools_hashtags

Name

In

Type

Required

text

body

string (at most 100000 characters)

yes

max

body

integer (min 1, max 10)

no

position

body

"end" or "start"

no

mediaIds

body

array of string

no

curl -X POST http://localhost:4000/api/v1/ai/hashtags \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Write alt text for pictures in the media library

POST /api/v1/ai/alt-text

One entry per picture; files that are not pictures the model reads are left out.

  • Scope: ai:write

  • MCP tool: aiTools_altText

Name

In

Type

Required

mediaIds

body

array of string

yes

postText

body

string (at most 5000 characters)

no

curl -X POST http://localhost:4000/api/v1/ai/alt-text \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Transcribe an audio or video file

POST /api/v1/ai/transcribe

data is the file in base64 (25 MB at most). Needs a transcription service on the server.

  • Scope: ai:write

  • MCP tool: aiTools_transcribe

Name

In

Type

Required

name

body

string (at most 300 characters)

yes

mime

body

string (at most 200 characters)

yes

data

body

string (at most 33333342 characters)

yes

language

body

string (at most 10 characters)

no

curl -X POST http://localhost:4000/api/v1/ai/transcribe \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Check a text for harmful content

POST /api/v1/ai/check

Flags hate, harassment, sexual, violence and self-harm, each with a reason when flagged. The workspace's rule checks are part of POST /posts/validate.

  • Scope: ai:write

  • MCP tool: aiTools_check

Name

In

Type

Required

text

body

string (at most 100000 characters)

yes

curl -X POST http://localhost:4000/api/v1/ai/check \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Predict how a draft will engage on a channel

POST /api/v1/ai/score

score is 0 to 100 (50 = an average post of that channel). basis is history when the channel's own past posts were enough, else ai with lowData. reasons are the two main ones.

  • Scope: ai:write

  • MCP tool: aiTools_score

Name

In

Type

Required

text

body

string (at most 100000 characters)

yes

channelId

body

string

yes

at

body

ISO 8601 time

no

mediaIds

body

array of string

no

curl -X POST http://localhost:4000/api/v1/ai/score \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Analytics

Totals for a period, with change against the period before

GET /api/v1/analytics/overview

  • Scope: analytics:read

  • MCP tool: analytics_overview

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

curl http://localhost:4000/api/v1/analytics/overview \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Daily numbers per channel for a period

GET /api/v1/analytics/channels

  • Scope: analytics:read

  • MCP tool: analytics_channels

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

curl http://localhost:4000/api/v1/analytics/channels \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The best-performing posts of a period

GET /api/v1/analytics/posts

  • Scope: analytics:read

  • MCP tool: analytics_topPosts

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

limit

query

integer (min 1, max 100)

no

curl http://localhost:4000/api/v1/analytics/posts \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

One channel's own platform numbers for its last 7, 30 or 90 days

GET /api/v1/analytics/channels/{id}

series holds each number the platform reports, with the total of the span before it (previous), the change as a fraction, and the average and peak of its days when the platform gives days. breakdowns split a number by kind. problem says why numbers are missing or old; optIn is set for a platform that bills each read.

  • Scope: analytics:read

  • MCP tool: analytics_channel

Name

In

Type

Required

id

path

string

yes

days

query

number

no

curl http://localhost:4000/api/v1/analytics/channels/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The weekdays and hours whose posts did best in a period

GET /api/v1/analytics/best-time

  • Scope: analytics:read

  • MCP tool: analytics_bestTime

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

curl http://localhost:4000/api/v1/analytics/best-time \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Performance per tag in a period

GET /api/v1/analytics/tags

  • Scope: analytics:read

  • MCP tool: analytics_tags

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

curl http://localhost:4000/api/v1/analytics/tags \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Export one analytics table as CSV, Markdown or an Excel workbook

GET /api/v1/analytics/export

  • Scope: analytics:read

  • MCP tool: analytics_export

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

table

query

"overview" or "channels" or "posts" or "bestTime" or "tags" or "insights" or "hashtags" or "audience"

yes

format

query

"csv" or "md" or "xlsx"

no

channelId

query

string

no

days

query

number

no

curl http://localhost:4000/api/v1/analytics/export \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Hashtags, post types, lengths, hooks, authors, frequency and rates of a period

GET /api/v1/analytics/breakdowns

Over every post of the period (source: indrava, external or all). Each group has its posts, average engagement and average reach; refs are the posts behind it. rate is engagements over impressions, over followers where the platform reports no impressions. followers are the gained and lost from the daily counts.

  • Scope: analytics:read

  • MCP tool: analytics_breakdowns

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

timezone

query

string

no

channelIds

query

array of string

no

source

query

"indrava" or "external" or "all"

no

curl http://localhost:4000/api/v1/analytics/breakdowns \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

A channel's audience by age, gender, country, city and language

GET /api/v1/analytics/channels/{id}/audience

As the platform last reported it (read once a day). needsFollowers is the audience size below which platforms hide the split.

  • Scope: analytics:read

  • MCP tool: analytics_audience

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/analytics/channels/{id}/audience \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The numbers of one post, found by its link

GET /api/v1/analytics/posts/lookup

Works for a post published through Indrava and for one found on the platform. 404 when no post of this workspace matches.

  • Scope: analytics:read

  • MCP tool: analytics_lookup

Name

In

Type

Required

url

query

string (at most 2000 characters)

yes

curl http://localhost:4000/api/v1/analytics/posts/lookup \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Read posts made outside Indrava and the audience split now

POST /api/v1/analytics/sync-external

  • Scope: analytics:write

  • MCP tool: analytics_syncExternal

No parameters.

curl -X POST http://localhost:4000/api/v1/analytics/sync-external \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The weekly score and suggestions of each channel

GET /api/v1/analytics/takeaways

score is 0 to 100 from consistency, engagement rate against the channel's own history and growth (parts). ai is false when the sentences are rule-based.

  • Scope: analytics:read

  • MCP tool: analyticsPrefs_takeaways

No parameters.

curl http://localhost:4000/api/v1/analytics/takeaways \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Inbox numbers: volume, reply times, SLA breaches, sentiment, comment score

GET /api/v1/analytics/inbox

  • Scope: analytics:read

  • MCP tool: inboxIntel_stats

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

channelId

query

string

no

clientId

query

string

no

timezone

query

string

no

curl http://localhost:4000/api/v1/analytics/inbox \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

One post's numbers over time

GET /api/v1/analytics/posts/{postId}/history

Every stored reading of each of the post's channels in the last days (7, 30 or 90), oldest first. Readings are lifetime totals.

  • Scope: analytics:read

  • MCP tool: postStats_get

Name

In

Type

Required

postId

path

string

yes

days

query

7 or 30 or 90

no

curl http://localhost:4000/api/v1/analytics/posts/{postId}/history \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The latest numbers of one post, per channel

GET /api/v1/analytics/posts/{id}

One entry per channel the post went to. metrics is null until the first reading after publishing; inside it impressions and clicks are null when the platform does not report them.

  • Scope: analytics:read

  • MCP tool: info_postAnalytics

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/analytics/posts/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Channels

List the platforms Indrava can post to

GET /api/v1/channels/providers

  • Scope: none (public, no token needed)

  • MCP tool: channels_providers

No parameters.

curl http://localhost:4000/api/v1/channels/providers

List connected channels

GET /api/v1/channels

  • Scope: channels:read

  • MCP tool: channels_list

Name

In

Type

Required

clientId

query

string

no

curl http://localhost:4000/api/v1/channels \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get one channel with its platform's rules

GET /api/v1/channels/{id}

The channel, and what its platform accepts: text limit, media rules, post settings, and what parts after the first become.

  • Scope: channels:read

  • MCP tool: channels_get

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/channels/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Give a channel a display name of your own

PATCH /api/v1/channels/{id}

name: null goes back to the platform's name.

  • Scope: channels:write

  • MCP tool: channels_rename

Name

In

Type

Required

id

path

string

yes

name

body

string (at most 100 characters) or null

yes

curl -X PATCH http://localhost:4000/api/v1/channels/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Remove a channel

DELETE /api/v1/channels/{id}

Also revokes Indrava's access at the platform where the platform allows it.

  • Scope: channels:write

  • MCP tool: channels_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/channels/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the choices of a live settings field

GET /api/v1/channels/{channelId}/options

For settings fields marked live (boards, playlists, communities): the values the platform offers this channel. Send query for fields marked search, and the form's other values as settings when the field has dependsOn.

  • Scope: channels:read

  • MCP tool: channels_fieldOptions

Name

In

Type

Required

channelId

path

string

yes

field

query

string (at most 100 characters)

yes

query

query

string (at most 200 characters)

no

settings

query

object

no

curl http://localhost:4000/api/v1/channels/{channelId}/options \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Connect a channel with credential fields

POST /api/v1/channels/connect

For platforms whose connect is fields in GET /channels/providers: send the connectFields as credentials. Connecting the same account again replaces its credentials. Other platforms sign in: use POST /channels/oauth/start.

  • Scope: channels:write

  • MCP tool: channels_connect

Name

In

Type

Required

provider

body

string

yes

credentials

body

object

yes

curl -X POST http://localhost:4000/api/v1/channels/connect \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Replace the credentials of a channel that connects with fields

PUT /api/v1/channels/{id}/credentials

For a rotated token or a changed password. The channel keeps its posts and settings; credentials of another account are refused.

  • Scope: channels:write

  • MCP tool: channels_updateCredentials

Name

In

Type

Required

id

path

string

yes

credentials

body

object

yes

curl -X PUT http://localhost:4000/api/v1/channels/{id}/credentials \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Pause a channel

POST /api/v1/channels/{id}/disable

It keeps its posts and settings; posts that come due skip it.

  • Scope: channels:write

  • MCP tool: channels_disable

Name

In

Type

Required

id

path

string

yes

reason

body

string (at most 300 characters)

no

curl -X POST http://localhost:4000/api/v1/channels/{id}/disable \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Resume a paused channel

POST /api/v1/channels/{id}/enable

Answers 402 when the plan already runs as many channels as it allows.

  • Scope: channels:write

  • MCP tool: channels_enable

Name

In

Type

Required

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/channels/{id}/enable \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

What removing or pausing a channel touches

GET /api/v1/channels/{id}/impact

scheduled posts are waiting to go to it; alone of them go nowhere else. Ask before DELETE /channels/{id}.

  • Scope: channels:read

  • MCP tool: channels_impact

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/channels/{id}/impact \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Save a channel's own preferences

PUT /api/v1/channels/{id}/preferences

The channelFields of its platform, from GET /channels/{id}.

  • Scope: channels:write

  • MCP tool: channels_setPreferences

Name

In

Type

Required

id

path

string

yes

settings

body

object

yes

curl -X PUT http://localhost:4000/api/v1/channels/{id}/preferences \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get the sign-in URL that connects a channel on an OAuth platform

POST /api/v1/channels/oauth/start

Open url in a browser. After consent the browser lands on the app's Channels screen, which finishes the connection for a signed-in admin; or call POST /channels/oauth/complete with connectionId yourself.

  • Scope: channels:write

  • MCP tool: connections_start

Name

In

Type

Required

provider

body

string

yes

fields

body

object

no

curl -X POST http://localhost:4000/api/v1/channels/oauth/start \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Finish an OAuth connection after the sign-in

POST /api/v1/channels/oauth/complete

Saves the channel when the sign-in covers one account. With several (pages, organisations) the answer lists them: call again with the chosen remoteIds.

  • Scope: channels:write

  • MCP tool: connections_complete

Name

In

Type

Required

connectionId

body

string

yes

remoteIds

body

array of string

no

curl -X POST http://localhost:4000/api/v1/channels/oauth/complete \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Live state of a channel's connection

GET /api/v1/channels/{channelId}/status

  • Scope: channels:read

  • MCP tool: connections_status

Name

In

Type

Required

channelId

path

string

yes

curl http://localhost:4000/api/v1/channels/{channelId}/status \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

POST /api/v1/channels/{channelId}/reconnect

Safe to send to the person who owns the account: it needs no Indrava login.

  • Scope: channels:write

  • MCP tool: connections_reconnect

Name

In

Type

Required

channelId

path

string

yes

curl -X POST http://localhost:4000/api/v1/channels/{channelId}/reconnect \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

POST /api/v1/channels/invites

Send url to the person who owns the account. They see who is asking, sign in at the platform, and the channel appears in this workspace (under clientId when given). Sign-in platforms only. url is in this answer only; the link works for any number of sign-ins until expiresAt. With redirectUrl their browser goes there afterwards, with status=connected&channels=<ids> or status=error&error=<message> in the query.

  • Scope: channels:write

  • MCP tool: connections_inviteLink_create

Name

In

Type

Required

provider

body

string

yes

clientId

body

string

no

redirectUrl

body

string (at most 2000 characters)

no

curl -X POST http://localhost:4000/api/v1/channels/invites \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

GET /api/v1/channels/invites

  • Scope: channels:read

  • MCP tool: connections_inviteLink_list

No parameters.

curl http://localhost:4000/api/v1/channels/invites \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

DELETE /api/v1/channels/invites/{id}

  • Scope: channels:write

  • MCP tool: connections_inviteLink_revoke

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/channels/invites/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Search accounts to mention from a channel

GET /api/v1/channels/{channelId}/mentions

Put a result's token in the post text: it is published as a real mention on this channel's platform and as the plain label on every other. Platforms without mention search answer an empty list.

  • Scope: channels:read

  • MCP tool: mentions_search

Name

In

Type

Required

channelId

path

string

yes

query

query

string (at most 100 characters)

yes

curl http://localhost:4000/api/v1/channels/{channelId}/mentions \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

What a channel's platform allows and how much is used

GET /api/v1/channels/{id}/limits

A list of { used, limit, windowHours, source }: platform is the platform's own report where it gives one, indrava the allowance Indrava keeps to when publishing. Empty for a platform that states no limit.

  • Scope: channels:read

  • MCP tool: limits_channel

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/channels/{id}/limits \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Posts

List posts

GET /api/v1/posts

Newest first. Page with cursor (the id of the last post of the previous page). GET /posts/count answers how many posts the same filter matches.

  • Scope: posts:read

  • MCP tool: posts_list

Name

In

Type

Required

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

status

query

array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed"

no

channelId

query

string

no

channelIds

query

array of string

no

tagId

query

string

no

clientId

query

string

no

type

query

"post" or "reel" or "story" or "short" or "poll" or "article"

no

authorId

query

string

no

campaignId

query

string

no

awaitingApproverId

query

string

no

hasComments

query

boolean

no

fieldId

query

string

no

fieldValue

query

string (at most 500 characters)

no

cursor

query

string

no

limit

query

integer (min 1, max 500)

no

curl http://localhost:4000/api/v1/posts \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a post

POST /api/v1/posts

action decides what happens: draft saves, schedule publishes at scheduledAt, now publishes right away (both need the posts:publish scope). Send id to update a draft or scheduled post. When creating, send idempotencyKey to make a retry safe: the same key returns the first post. A part may name files by address in mediaUrls: each is added to the media library first (needs media:write; an address named twice in one call is fetched once). Scheduling the same text and files to a channel that already has them within 24 hours answers 409 with existingPostId; send allowDuplicate: true to schedule it anyway. A workspace's own rules (banned words, required tags) refuse scheduling with 400. For keys and tokens the answer carries previewUrl, a view-only link to the post as it will publish.

  • Scope: posts:write

  • MCP tool: posts_save

Name

In

Type

Required

id

body

string

no

parts

body

array of object

yes

targets

body

array of object

yes

action

body

"draft" or "schedule" or "now"

yes

scheduledAt

body

ISO 8601 time

no

tagIds

body

array of string

no

clientId

body

string or null

no

aiGenerated

body

boolean

no

idempotencyKey

body

string (at most 200 characters)

no

allowDuplicate

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Count the posts a list filter matches

GET /api/v1/posts/count

  • Scope: posts:read

  • MCP tool: posts_count

Name

In

Type

Required

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

status

query

array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed"

no

channelId

query

string

no

channelIds

query

array of string

no

tagId

query

string

no

clientId

query

string

no

type

query

"post" or "reel" or "story" or "short" or "poll" or "article"

no

authorId

query

string

no

campaignId

query

string

no

awaitingApproverId

query

string

no

hasComments

query

boolean

no

fieldId

query

string

no

fieldValue

query

string (at most 500 characters)

no

curl http://localhost:4000/api/v1/posts/count \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get one post

GET /api/v1/posts/{id}

  • Scope: posts:read

  • MCP tool: posts_get

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/posts/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Move a post to the trash, or remove it from some of its channels

DELETE /api/v1/posts/{id}

The post leaves the calendar and stays in the trash for 45 days (GET /posts/trash, POST /posts/trash/{id}/restore). Nothing is removed at the platforms. With targetIds (ids of the post's targets) only those channels are taken off the post; naming all of them deletes the post.

  • Scope: posts:write

  • MCP tool: posts_remove

Name

In

Type

Required

id

path

string

yes

targetIds

body

array of string

no

curl -X DELETE http://localhost:4000/api/v1/posts/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Change a post's time, status, settings or attachments

PATCH /api/v1/posts/{id}

Send only what changes. scheduledAt moves the post; action is as in POST /posts (draft takes it off the schedule, schedule and now need the posts:publish scope) and defaults to what the post is now; targets[].settings replaces the settings of that channel; mediaIds replaces the attachments of the first part and text its text. With targetIds (ids of the post's targets), text and mediaIds change only those channels' copies: each gets a text of its own and the others keep theirs. The channels, tags and client stay as they are. Every check of POST /posts applies, and only drafts and scheduled posts can be changed.

  • Scope: posts:write

  • MCP tool: posts_patch

Name

In

Type

Required

id

path

string

yes

action

body

"draft" or "schedule" or "now"

no

scheduledAt

body

ISO 8601 time

no

targets

body

array of object

no

mediaIds

body

array of string

no

text

body

string (at most 100000 characters)

no

targetIds

body

array of string

no

curl -X PATCH http://localhost:4000/api/v1/posts/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Move a draft, scheduled or waiting post to another time

POST /api/v1/posts/{id}/reschedule

Only the time changes. A scheduled post stays scheduled, also where posts need approval: the approval it has is kept. When the workspace asks to approve moved posts again, the answer's status is pending_approval and the post waits for its approvers. A post already waiting for approval goes on waiting and its approvers see the new time (where moved posts are approved again, approvals it already has are dropped). Moving a scheduled or waiting post needs the posts:publish scope.

  • Scope: posts:write

  • MCP tool: posts_reschedule

Name

In

Type

Required

id

path

string

yes

scheduledAt

body

ISO 8601 time

yes

curl -X POST http://localhost:4000/api/v1/posts/{id}/reschedule \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Check a post against each channel's rules without saving it

POST /api/v1/posts/validate

Returns every reason the post could not be scheduled as it is (length, media, follow-up parts, required settings, a disabled channel), per channel and part. An empty list means POST /posts would accept it.

  • Scope: posts:write

  • MCP tool: posts_validate

Name

In

Type

Required

parts

body

array of object

yes

targets

body

array of object

yes

curl -X POST http://localhost:4000/api/v1/posts/validate \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Retry the failed channels of a post

POST /api/v1/posts/{id}/retry

  • Scope: posts:write

  • MCP tool: posts_retry

Name

In

Type

Required

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/posts/{id}/retry \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Record the link of a published post the platform returned none for

PUT /api/v1/posts/{id}/remote

targetId is the id of one of the post's targets, part the index of the part (0 for the post itself, 1 and up for thread entries). remoteUrl becomes the part's link; remoteId, when you know the platform's own id, replaces the stored one so analytics and replies can find the post.

  • Scope: posts:write

  • MCP tool: posts_setRemote

Name

In

Type

Required

id

path

string

yes

targetId

body

string

yes

part

body

integer (min 0, max 49)

no

remoteId

body

string (at most 500 characters)

no

remoteUrl

body

string (at most 2000 characters)

yes

curl -X PUT http://localhost:4000/api/v1/posts/{id}/remote \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Create or update up to 100 posts in one call

POST /api/v1/posts/bulk

Every entry of posts is what POST /posts takes and passes the same checks (channel rules, plan limit, approval, the workspace's rules, duplicates). The answer has one result per entry, in order: ok: true with the post's id, or ok: false with the error that POST /posts would have answered. The call itself answers 200 whenever its shape is valid.

  • Scope: posts:write

  • MCP tool: posts_bulk

Name

In

Type

Required

posts

body

array of object

yes

curl -X POST http://localhost:4000/api/v1/posts/bulk \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Export the posts a list filter matches as CSV

GET /api/v1/posts/export

Takes the filters of GET /posts. The answer's csv has one row per post: scheduled time, status, text, channels, tags, author, published links and the team's internal comments (who, when, what). At most 5000 posts, newest first; narrow the filter for more.

  • Scope: posts:read

  • MCP tool: posts_export

Name

In

Type

Required

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

status

query

array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed"

no

channelId

query

string

no

channelIds

query

array of string

no

tagId

query

string

no

clientId

query

string

no

type

query

"post" or "reel" or "story" or "short" or "poll" or "article"

no

authorId

query

string

no

campaignId

query

string

no

awaitingApproverId

query

string

no

hasComments

query

boolean

no

fieldId

query

string

no

fieldValue

query

string (at most 500 characters)

no

curl http://localhost:4000/api/v1/posts/export \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Copy a post to other clients as drafts

POST /api/v1/posts/{id}/copy

For each entry of clients a draft is made for that client, with scheduledAt as its planned time when given. A channel of the post is replaced by the client's first channel on the same platform; platforms the client has no channel on are named in skipped, and a client with none of them gets no copy. The text, media, settings and tags are copied.

  • Scope: posts:write

  • MCP tool: posts_copy

Name

In

Type

Required

id

path

string

yes

clients

body

array of object

yes

curl -X POST http://localhost:4000/api/v1/posts/{id}/copy \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

GET /api/v1/posts/review-links

Never the URL itself: that is shown once, when the link is made.

  • Scope: posts:read

  • MCP tool: reviewLinks_list

No parameters.

curl http://localhost:4000/api/v1/posts/review-links \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create a share link for a post, or for a client's posts awaiting approval

POST /api/v1/posts/review-links

The answer's url shows the post as it will look, to someone without an account, who can also comment. The URL is returned once. A link made with a key cannot approve.

  • Scope: posts:write

  • MCP tool: reviewLinks_create

Name

In

Type

Required

postId

body

string

no

clientId

body

string

no

label

body

string (at most 200 characters)

no

email

body

string

no

message

body

string (at most 2000 characters)

no

expiresInDays

body

integer (min 1, max 90)

no

kind

body

"review" or "calendar" or "preview"

no

periodDays

body

integer (min 1, max 365)

no

showDrafts

body

boolean

no

verifyReviewer

body

boolean

no

redirectToLive

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/review-links \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

DELETE /api/v1/posts/review-links/{id}

  • Scope: posts:write

  • MCP tool: reviewLinks_revoke

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/posts/review-links/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Delete a published post at the platform (the post stays in Indrava)

DELETE /api/v1/posts/{id}/published

  • Scope: posts:write

  • MCP tool: automations_deletePublished

Name

In

Type

Required

id

path

string

yes

channelId

body

string

no

curl -X DELETE http://localhost:4000/api/v1/posts/{id}/published \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Edit the text of a published post at the platform

PATCH /api/v1/posts/{id}/published

  • Scope: posts:write

  • MCP tool: automations_editPublished

Name

In

Type

Required

id

path

string

yes

channelId

body

string

no

text

body

string (at most 10000 characters)

yes

curl -X PATCH http://localhost:4000/api/v1/posts/{id}/published \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Ask Indrava's assistant to draft or plan posts

POST /api/v1/posts/assistant

One message in, the assistant's answer out. It reads channels, posts, slots and analytics and saves drafts by itself; anything that schedules, publishes, edits or deletes is returned in pending and runs only after a member approves it in the app (Assistant, the conversation threadId). Send threadId to continue a conversation. Counts one AI call.

  • Scope: posts:write

  • MCP tool: agent_ask

Name

In

Type

Required

threadId

body

string

no

text

body

string (at most 20000 characters)

yes

channelIds

body

array of string

no

curl -X POST http://localhost:4000/api/v1/posts/assistant \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get a post's title, private notes and UTM values

GET /api/v1/posts/{id}/notes

  • Scope: posts:read

  • MCP tool: postNotes_get

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/posts/{id}/notes \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Set a post's title, private notes and UTM values

PUT /api/v1/posts/{id}/notes

Nothing here is published. notes is Markdown; lines that start with - [ ] or - [x] are to-dos. utm holds the post's own source, medium, campaign, term and content, which win over the workspace's when its links go out. A field left out keeps its value; null or an empty text clears it.

  • Scope: posts:write

  • MCP tool: postNotes_save

Name

In

Type

Required

id

path

string

yes

title

body

string (at most 200 characters) or null

no

notes

body

string (at most 20000 characters) or null

no

utm

body

object or null

no

curl -X PUT http://localhost:4000/api/v1/posts/{id}/notes \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List the deleted posts still in the trash

GET /api/v1/posts/trash

Newest deletion first. A post stays for 45 days (purgeAt), then it is gone for good. status and scheduledAt are what the post had when it was deleted.

  • Scope: posts:read

  • MCP tool: postHistory_trash_list

No parameters.

curl http://localhost:4000/api/v1/posts/trash \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Restore a post from the trash

POST /api/v1/posts/trash/{id}/restore

to: "draft" (the default) restores it as a draft that keeps its planned time. to: "original" schedules it again at the time it had (needs posts:publish, and passes the approval, plan and rule checks of POST /posts); a time that has passed restores as a draft. A post that was already published or failed comes back as that record, whatever to says. Channels and tags deleted meanwhile are left out.

  • Scope: posts:write

  • MCP tool: postHistory_trash_restore

Name

In

Type

Required

id

path

string

yes

to

body

"draft" or "original"

no

curl -X POST http://localhost:4000/api/v1/posts/trash/{id}/restore \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a post from the trash for good

DELETE /api/v1/posts/trash/{id}

  • Scope: posts:write

  • MCP tool: postHistory_trash_purge

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/posts/trash/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the earlier versions of a post

GET /api/v1/posts/{postId}/versions

Newest first, at most 50. Each is the content a save replaced: changedBy, fields (what that save changed: text, media, settings, channels), the content itself, and diff, the words that save removed (del) and added (add).

  • Scope: posts:read

  • MCP tool: postHistory_versions_list

Name

In

Type

Required

postId

path

string

yes

curl http://localhost:4000/api/v1/posts/{postId}/versions \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Restore an earlier version of a post

POST /api/v1/posts/{postId}/versions/{id}/restore

The version's text, media and channel settings replace the post's; its time and status stay. What it replaces becomes a version itself. Only drafts and scheduled posts can be changed, and every check of POST /posts applies. Channels removed from the workspace since are left out.

  • Scope: posts:write

  • MCP tool: postHistory_versions_restore

Name

In

Type

Required

postId

path

string

yes

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/posts/{postId}/versions/{id}/restore \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List what happened to a post

GET /api/v1/posts/{postId}/activity

Newest first: created, edited (detail.fields), scheduled, rescheduled, unscheduled, review_requested, approved, rejected, published, failed, retried, restored, copied and more. actorId is the member, null when no person did it; source is how the caller arrived (web, api, mcp, cli, feed, recurring, evergreen, list, drip, automation) where known. A copied line carries detail.copyId and detail.copyStatus, what became of the copy.

  • Scope: posts:read

  • MCP tool: postHistory_activity

Name

In

Type

Required

postId

path

string

yes

curl http://localhost:4000/api/v1/posts/{postId}/activity \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get the workspace's post rules and custom fields

GET /api/v1/posts/rules

minTags is how many tags a post needs before it can be scheduled; banned the words and phrases that refuse scheduling (whole words, any case); fields the custom fields a post can carry (PUT /posts/{postId}/fields).

  • Scope: posts:read

  • MCP tool: postRules_get

No parameters.

curl http://localhost:4000/api/v1/posts/rules \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Set the custom fields of a post

PUT /api/v1/posts/{postId}/fields

values maps a field id (GET /posts/rules) to its value; null or an empty string clears it. Fields not named keep what they hold. A select field takes one of its options.

  • Scope: posts:write

  • MCP tool: postRules_setValues

Name

In

Type

Required

postId

path

string

yes

values

body

object

yes

curl -X PUT http://localhost:4000/api/v1/posts/{postId}/fields \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Download the CSV template for bulk import

GET /api/v1/posts/import/template

A CSV with one column per fixed field, one TRUE/FALSE column per connected channel and one <platform>.<setting> column per setting of the platforms in the workspace. Parts of a thread are separated by a line of ---.

  • Scope: posts:read

  • MCP tool: bulk_template

Name

In

Type

Required

format

query

"YYYY-MM-DD HH:mm" or "DD/MM/YYYY" or "MM/DD/YYYY" or "ISO"

no

curl http://localhost:4000/api/v1/posts/import/template \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Import many posts from a CSV or a list of rows

POST /api/v1/posts/import

Send csv (the template's columns; GET /posts/import/template) or rows (the same fields as JSON, at most 500). format is how dates are written (YYYY-MM-DD HH:mm, DD/MM/YYYY, MM/DD/YYYY or ISO), read in timezone or the workspace's. mode: draft saves everything as drafts, schedule publishes at each row's time (a row without one takes the next queue slot), queue puts every row at the next free slot. A row with an id updates that post. With dryRun: true nothing is created and the answer holds each row's errors and warnings, rejected rows grouped by cause. Otherwise the valid rows are created (allOrNothing: true creates none when any row is rejected) and each row's result is returned. Send batchKey to make a retry safe. Scheduling needs the posts:publish scope.

  • Scope: posts:write

  • MCP tool: bulk_import

Name

In

Type

Required

csv

body

string (at most 5000000 characters)

no

rows

body

array of object

no

format

body

"YYYY-MM-DD HH:mm" or "DD/MM/YYYY" or "MM/DD/YYYY" or "ISO"

no

mode

body

"draft" or "schedule" or "queue"

no

timezone

body

string (at most 60 characters)

no

dryRun

body

boolean

no

allOrNothing

body

boolean

no

batchKey

body

string (at most 150 characters)

no

curl -X POST http://localhost:4000/api/v1/posts/import \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Export the plan as a CSV

GET /api/v1/posts/export/plan

Scheduled posts and drafts (status narrows it) in the import's columns: edit the file and import it again, rows with an id update that post. Dates are written in format on the clocks of timezone or the workspace's.

  • Scope: posts:read

  • MCP tool: bulk_export

Name

In

Type

Required

format

query

"YYYY-MM-DD HH:mm" or "DD/MM/YYYY" or "MM/DD/YYYY" or "ISO"

no

timezone

query

string (at most 60 characters)

no

status

query

array of "draft" or "scheduled" or "pending_approval"

no

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

channelIds

query

array of string

no

clientId

query

string

no

tagId

query

string

no

curl http://localhost:4000/api/v1/posts/export/plan \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Channel sets

List channel sets

GET /api/v1/sets

A set is a named group of channels to post to together.

  • Scope: sets:read

  • MCP tool: channelSets_list

No parameters.

curl http://localhost:4000/api/v1/sets \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a channel set

POST /api/v1/sets

  • Scope: sets:write

  • MCP tool: channelSets_save

Name

In

Type

Required

id

body

string

no

name

body

string (at most 80 characters)

yes

channelIds

body

array of string

yes

curl -X POST http://localhost:4000/api/v1/sets \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a channel set

DELETE /api/v1/sets/{id}

  • Scope: sets:write

  • MCP tool: channelSets_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/sets/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the content each channel set starts a new post with

GET /api/v1/sets/templates

  • Scope: sets:read

  • MCP tool: setTemplates_list

No parameters.

curl http://localhost:4000/api/v1/sets/templates \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Store or replace the starting content of a channel set

POST /api/v1/sets/templates

  • Scope: sets:write

  • MCP tool: setTemplates_save

Name

In

Type

Required

setId

body

string

yes

description

body

string (at most 300 characters) or null

no

parts

body

array of object or null

no

targets

body

object

no

curl -X POST http://localhost:4000/api/v1/sets/templates \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Recurring

List recurring series

GET /api/v1/posts/series

A series makes its next post when the one before is due.

  • Scope: posts:read

  • MCP tool: recurring_list

No parameters.

curl http://localhost:4000/api/v1/posts/series \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Start a recurring series

POST /api/v1/posts/series

rule says how often, startAt is the first occurrence. Needs posts:publish as well: what this sets up can publish without a person looking.

  • Scope: posts:write

  • MCP tool: recurring_create

Name

In

Type

Required

parts

body

array of object

yes

targets

body

array of object

yes

rule

body

object

yes

tagIds

body

array of string

no

startAt

body

ISO 8601 time

yes

curl -X POST http://localhost:4000/api/v1/posts/series \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Change a series' rule and content

PUT /api/v1/posts/series/{id}

scope: "all" changes the series in place; "following" ends it and starts a new one from the pending occurrence. One occurrence alone is POST /posts on that post. Needs posts:publish as well: what this sets up can publish without a person looking.

  • Scope: posts:write

  • MCP tool: recurring_update

Name

In

Type

Required

id

path

string

yes

parts

body

array of object

yes

targets

body

array of object

yes

rule

body

object

yes

tagIds

body

array of string

no

startAt

body

ISO 8601 time

no

scope

body

"following" or "all"

yes

curl -X PUT http://localhost:4000/api/v1/posts/series/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Skip the next occurrence, end a series, or delete it

DELETE /api/v1/posts/series/{id}

scope: this skips the pending occurrence, following ends the series, all also deletes it. Published occurrences stay as posts.

  • Scope: posts:write

  • MCP tool: recurring_remove

Name

In

Type

Required

id

path

string

yes

scope

body

"this" or "following" or "all"

yes

curl -X DELETE http://localhost:4000/api/v1/posts/series/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Signatures

List signatures

GET /api/v1/signatures

  • Scope: signatures:read

  • MCP tool: signatures_list

No parameters.

curl http://localhost:4000/api/v1/signatures \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a signature

POST /api/v1/signatures

A signature is text appended to posts; autoChannelIds are the channels that get it without being asked.

  • Scope: signatures:write

  • MCP tool: signatures_save

Name

In

Type

Required

id

body

string

no

name

body

string (at most 80 characters)

yes

text

body

string (at most 2000 characters)

yes

autoChannelIds

body

array of string

no

curl -X POST http://localhost:4000/api/v1/signatures \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a signature

DELETE /api/v1/signatures/{id}

  • Scope: signatures:write

  • MCP tool: signatures_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/signatures/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List snippets

GET /api/v1/signatures/snippets

Saved captions, hashtag groups, mention groups, shortcodes ([[name]] in a post) and templates. Filter with kind.

  • Scope: signatures:read

  • MCP tool: snippets_list

Name

In

Type

Required

kind

query

"caption" or "hashtags" or "mentions" or "shortcode" or "template"

no

curl http://localhost:4000/api/v1/signatures/snippets \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a snippet

POST /api/v1/signatures/snippets

Send id to change one. A hashtags snippet holds at most 30 hashtags; a shortcode is used in a post as [[name]].

  • Scope: signatures:write

  • MCP tool: snippets_save

Name

In

Type

Required

id

body

string

no

kind

body

"caption" or "hashtags" or "mentions" or "shortcode" or "template"

yes

name

body

string (at most 80 characters)

yes

text

body

string (at most 20000 characters)

yes

tags

body

array of string (at most 40 characters)

no

clientId

body

string or null

no

curl -X POST http://localhost:4000/api/v1/signatures/snippets \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a snippet

DELETE /api/v1/signatures/snippets/{id}

  • Scope: signatures:write

  • MCP tool: snippets_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/signatures/snippets/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Tags

List tags

GET /api/v1/tags

  • Scope: tags:read

  • MCP tool: tags_list

No parameters.

curl http://localhost:4000/api/v1/tags \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a tag

POST /api/v1/tags

  • Scope: tags:write

  • MCP tool: tags_save

Name

In

Type

Required

id

body

string

no

name

body

string (at most 50 characters)

yes

color

body

string

yes

curl -X POST http://localhost:4000/api/v1/tags \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a tag

DELETE /api/v1/tags/{id}

  • Scope: tags:write

  • MCP tool: tags_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/tags/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Add a tag to many posts, whatever their status

POST /api/v1/tags/{tagId}/posts

  • Scope: tags:write

  • MCP tool: postTags_add

Name

In

Type

Required

tagId

path

string

yes

postIds

body

array of string

yes

curl -X POST http://localhost:4000/api/v1/tags/{tagId}/posts \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Feeds

List feeds

GET /api/v1/feeds

  • Scope: feeds:read

  • MCP tool: feeds_list

No parameters.

curl http://localhost:4000/api/v1/feeds \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update a feed that turns new items into posts

POST /api/v1/feeds

mode: draft saves each item as a draft, queue puts it in the next free slot, publish sends it at once. Needs posts:publish as well: what this sets up can publish without a person looking.

  • Scope: feeds:write

  • MCP tool: feeds_save

Name

In

Type

Required

id

body

string

no

name

body

string (at most 120 characters)

yes

url

body

string (at most 2000 characters)

yes

channelIds

body

array of string

yes

template

body

string (at most 2000 characters)

no

mode

body

"draft" or "queue" or "publish"

no

includeImage

body

boolean

no

intervalMinutes

body

integer (min 15, max 10080)

no

enabled

body

boolean

no

postLatest

body

boolean

no

shortenToFit

body

boolean

no

aiWrite

body

boolean

no

allChannels

body

boolean

no

tagId

body

string or null

no

dripTemplateId

body

string or null

no

generateImage

body

boolean

no

targetSettings

body

object

no

curl -X POST http://localhost:4000/api/v1/feeds \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Read the newest items of a feed address without saving anything

GET /api/v1/feeds/preview

  • Scope: feeds:read

  • MCP tool: feeds_preview

Name

In

Type

Required

url

query

string (at most 2000 characters)

yes

template

query

string (at most 2000 characters)

no

curl http://localhost:4000/api/v1/feeds/preview \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Delete a feed

DELETE /api/v1/feeds/{id}

  • Scope: feeds:write

  • MCP tool: feeds_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/feeds/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the articles a feed has listed

GET /api/v1/feeds/{id}/articles

  • Scope: feeds:read

  • MCP tool: feeds_articles

Name

In

Type

Required

id

path

string

yes

search

query

string (at most 200 characters)

no

posted

query

"all" or "posted" or "unposted"

no

limit

query

integer (min 1, max 100)

no

offset

query

integer (min 0, max 9007199254740991)

no

curl http://localhost:4000/api/v1/feeds/{id}/articles \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Read a feed now

POST /api/v1/feeds/{id}/sync

  • Scope: feeds:write

  • MCP tool: feeds_sync

Name

In

Type

Required

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/feeds/{id}/sync \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

GET /api/v1/links

Page with limit and offset.

  • Scope: links:read

  • MCP tool: links_list

Name

In

Type

Required

postId

query

string

no

limit

query

integer (min 1, max 200)

no

offset

query

integer (min 0, max 9007199254740991)

no

curl http://localhost:4000/api/v1/links \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create a short link that is not tied to a post

POST /api/v1/links

  • Scope: links:write

  • MCP tool: links_create

Name

In

Type

Required

url

body

string (at most 2000 characters)

yes

slug

body

string

no

utm

body

object

no

curl -X POST http://localhost:4000/api/v1/links \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

DELETE /api/v1/links/{id}

  • Scope: links:write

  • MCP tool: links_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/links/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

GET /api/v1/links/stats

  • Scope: links:read

  • MCP tool: links_stats

Name

In

Type

Required

id

query

string

no

from

query

string

yes

to

query

string

yes

curl http://localhost:4000/api/v1/links/stats \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Approvals

Submit a draft: for approval, or straight to the calendar when none is needed

POST /api/v1/posts/{postId}/submit

With several workflows, workflowId picks one. Where approval is optional, requestApproval: true asks for it; without it the post is scheduled directly.

  • Scope: posts:write

  • MCP tool: approvals_submit

Name

In

Type

Required

postId

path

string

yes

assigneeIds

body

array of string

no

workflowId

body

string

no

requestApproval

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/{postId}/submit \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Submit up to 100 drafts for approval in one call

POST /api/v1/posts/submissions

Each entry of the answer is ok: true with the post's new status, or ok: false with the error POST /posts/{postId}/submit would have answered.

  • Scope: posts:write

  • MCP tool: approvals_requestMany

Name

In

Type

Required

postIds

body

array of string

yes

workflowId

body

string

no

requestApproval

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/submissions \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Approve or reject a post that is awaiting approval

POST /api/v1/approvals/{postId}/decision

  • Scope: approvals:write

  • MCP tool: approvals_decide

Name

In

Type

Required

postId

path

string

yes

decision

body

"approved" or "rejected"

yes

comment

body

string (at most 5000 characters)

no

curl -X POST http://localhost:4000/api/v1/approvals/{postId}/decision \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Approve or reject up to 100 posts at once

POST /api/v1/approvals/decisions

comment is the one note for all of them and is required when rejecting. The answer has one result per post, in order: ok: true with the outcome, or ok: false with the error POST /approvals/{postId}/decision would have answered.

  • Scope: approvals:write

  • MCP tool: approvals_decideMany

Name

In

Type

Required

postIds

body

array of string

yes

decision

body

"approved" or "rejected"

yes

comment

body

string (at most 5000 characters)

no

curl -X POST http://localhost:4000/api/v1/approvals/decisions \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Take a post back from approval: it becomes a draft again

POST /api/v1/posts/{postId}/withdraw

  • Scope: posts:write

  • MCP tool: approvals_withdraw

Name

In

Type

Required

postId

path

string

yes

curl -X POST http://localhost:4000/api/v1/posts/{postId}/withdraw \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List approval requests (pending ones unless status says otherwise)

GET /api/v1/approvals

  • Scope: approvals:read

  • MCP tool: approvals_list

Name

In

Type

Required

status

query

"pending" or "approved" or "rejected" or "withdrawn"

no

postId

query

string

no

approverId

query

string

no

clientId

query

string

no

step

query

integer (min 0, max 9007199254740991)

no

curl http://localhost:4000/api/v1/approvals \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Clients

List clients

GET /api/v1/clients

  • Scope: clients:read

  • MCP tool: clients_list

No parameters.

curl http://localhost:4000/api/v1/clients \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Comments

List a post's comments

GET /api/v1/posts/{postId}/comments

Oldest first. A reply has parentId; a comment on a passage has quote, and a suggested edit also suggestion with its suggestionState. mentions are Atlas user ids.

  • Scope: posts:read

  • MCP tool: comments_list

Name

In

Type

Required

postId

path

string

yes

curl http://localhost:4000/api/v1/posts/{postId}/comments \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Comment on a post, or on a passage of it, or suggest an edit

POST /api/v1/posts/{postId}/comments

With quote the comment is about that passage; with suggestion as well it proposes replacing the passage with that text (accept it with POST /posts/comments/{id}/suggestion). mentionIds tells those teammates.

  • Scope: posts:write

  • MCP tool: comments_add

Name

In

Type

Required

postId

path

string

yes

body

body

string (at most 5000 characters)

yes

parentId

body

string

no

quote

body

string (at most 500 characters)

no

suggestion

body

string (at most 5000 characters)

no

mentionIds

body

array of string

no

internal

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/{postId}/comments \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Reply to a comment

POST /api/v1/posts/comments/{id}/replies

  • Scope: posts:write

  • MCP tool: comments_reply

Name

In

Type

Required

id

path

string

yes

body

body

string (at most 5000 characters)

yes

mentionIds

body

array of string

no

internal

body

boolean

no

curl -X POST http://localhost:4000/api/v1/posts/comments/{id}/replies \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Edit your own comment

PATCH /api/v1/posts/comments/{id}

  • Scope: posts:write

  • MCP tool: comments_edit

Name

In

Type

Required

id

path

string

yes

body

body

string (at most 5000 characters)

yes

mentionIds

body

array of string

no

curl -X PATCH http://localhost:4000/api/v1/posts/comments/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete your own comment (or any, for those who manage the workspace)

DELETE /api/v1/posts/comments/{id}

  • Scope: posts:write

  • MCP tool: comments_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/posts/comments/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Settle or reopen a comment thread

POST /api/v1/posts/comments/{id}/resolve

  • Scope: posts:write

  • MCP tool: comments_resolve

Name

In

Type

Required

id

path

string

yes

resolved

body

boolean

yes

curl -X POST http://localhost:4000/api/v1/posts/comments/{id}/resolve \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Accept or reject a suggested edit

POST /api/v1/posts/comments/{id}/suggestion

  • Scope: posts:write

  • MCP tool: comments_suggestion

Name

In

Type

Required

id

path

string

yes

accept

body

boolean

yes

curl -X POST http://localhost:4000/api/v1/posts/comments/{id}/suggestion \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Notifications

List notifications

GET /api/v1/notifications

Newest first: posts published and failed, channels to reconnect, approvals, comments, automation failures and plan events. unread counts the rows newer than the caller's read marker. Rows are kept for 90 days. Page back with before set to the createdAt of the last row.

  • Scope: notifications:read

  • MCP tool: notifications_feed

Name

In

Type

Required

limit

query

integer (min 1, max 100)

no

before

query

ISO 8601 time

no

category

query

"publishing" or "approvals" or "team" or "inbox" or "account" or "growth"

no

severity

query

"urgent" or "important" or "routine"

no

read

query

"all" or "unread" or "read"

no

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

curl http://localhost:4000/api/v1/notifications \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Mark every notification as read

POST /api/v1/notifications/read

Moves the caller's own read marker to now; nobody else's changes.

  • Scope: notifications:write

  • MCP tool: notifications_markRead

No parameters.

curl -X POST http://localhost:4000/api/v1/notifications/read \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Clear every notification

POST /api/v1/notifications/clear

Hides what is listed now from the caller's own list and marks it read; other members keep theirs.

  • Scope: notifications:write

  • MCP tool: notifications_clear

No parameters.

curl -X POST http://localhost:4000/api/v1/notifications/clear \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Automations

List automation rules

GET /api/v1/automations

  • Scope: automations:read

  • MCP tool: automations_list

No parameters.

curl http://localhost:4000/api/v1/automations \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create an automation rule, or with id change one

POST /api/v1/automations

  • Scope: automations:write

  • MCP tool: automations_save

Name

In

Type

Required

name

body

string (at most 120 characters)

yes

channelId

body

string

no

trigger

body

object

yes

conditions

body

object

yes

action

body

object

yes

quietHours

body

object or null

no

enabled

body

boolean

no

id

body

string

no

curl -X POST http://localhost:4000/api/v1/automations \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete an automation rule and its run history

DELETE /api/v1/automations/{id}

  • Scope: automations:write

  • MCP tool: automations_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/automations/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

A rule's 50 newest runs: what it did, or why it could not

GET /api/v1/automations/{ruleId}/runs

  • Scope: automations:read

  • MCP tool: automations_runs

Name

In

Type

Required

ruleId

path

string

yes

curl http://localhost:4000/api/v1/automations/{ruleId}/runs \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

GET /api/v1/automations/numbers

  • Scope: automations:read

  • MCP tool: automations_numbers

No parameters.

curl http://localhost:4000/api/v1/automations/numbers \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Posts ranked by how many automation runs they brought

GET /api/v1/automations/posts

  • Scope: automations:read

  • MCP tool: automations_postRanking

Name

In

Type

Required

ruleId

query

string

no

limit

query

integer (min 1, max 50)

no

curl http://localhost:4000/api/v1/automations/posts \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Automation run history across rules, filtered by rule, status and dates

GET /api/v1/automations/history

  • Scope: automations:read

  • MCP tool: automations_history

Name

In

Type

Required

ruleId

query

string

no

status

query

"pending" or "done" or "failed" or "skipped"

no

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

limit

query

integer (min 1, max 200)

no

before

query

ISO 8601 time

no

curl http://localhost:4000/api/v1/automations/history \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

People who gave an address in an automation flow

GET /api/v1/automations/contacts

  • Scope: automations:read

  • MCP tool: automations_contacts

Name

In

Type

Required

q

query

string (at most 100 characters)

no

ruleId

query

string

no

limit

query

integer (min 1, max 500)

no

curl http://localhost:4000/api/v1/automations/contacts \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Quotes, reposts and plugs still to go out in a time range

GET /api/v1/automations/follow-ups

  • Scope: automations:read

  • MCP tool: automations_followUps

Name

In

Type

Required

from

query

ISO 8601 time

yes

to

query

ISO 8601 time

yes

curl http://localhost:4000/api/v1/automations/follow-ups \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Inbox

List inbox conversations, latest activity first

GET /api/v1/inbox

  • Scope: inbox:read

  • MCP tool: inbox_list

Name

In

Type

Required

state

query

"open" or "done" or "snoozed" or "all"

no

channelId

query

string

no

clientId

query

string

no

postId

query

string

no

assignee

query

string

no

q

query

string (at most 200 characters)

no

match

query

"all" or "any"

no

filters

query

array of object

no

sort

query

"newest" or "oldest"

no

cursor

query

string (at most 100 characters)

no

limit

query

integer (min 1, max 200)

no

curl http://localhost:4000/api/v1/inbox \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

One conversation with its messages

GET /api/v1/inbox/{id}

  • Scope: inbox:read

  • MCP tool: inbox_thread

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/inbox/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Reply to the person's latest message, as the channel: in public, as a private message, or as the answer to a review

POST /api/v1/inbox/{id}/reply

  • Scope: inbox:write

  • MCP tool: inbox_reply

Name

In

Type

Required

id

path

string

yes

text

body

string (at most 10000 characters)

yes

done

body

boolean

no

curl -X POST http://localhost:4000/api/v1/inbox/{id}/reply \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Hand conversations to a member, or to nobody

POST /api/v1/inbox/assign

  • Scope: inbox:write

  • MCP tool: inbox_assign

Name

In

Type

Required

ids

body

array of string

yes

assigneeId

body

string or null

yes

curl -X POST http://localhost:4000/api/v1/inbox/assign \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Mark conversations done, reopen them, or snooze them until a time

POST /api/v1/inbox/state

  • Scope: inbox:write

  • MCP tool: inbox_setState

No parameters.

curl -X POST http://localhost:4000/api/v1/inbox/state \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List reviews, newest first

GET /api/v1/inbox/reviews

  • Scope: inbox:read

  • MCP tool: inbox_reviews

Name

In

Type

Required

rating

query

array of integer (min 1, max 5)

no

answered

query

boolean

no

cursor

query

string (at most 100 characters)

no

limit

query

integer (min 1, max 200)

no

curl http://localhost:4000/api/v1/inbox/reviews \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Edit or delete (text null) our answer to a review

PUT /api/v1/inbox/{id}/answer

  • Scope: inbox:write

  • MCP tool: inbox_answer

Name

In

Type

Required

id

path

string

yes

text

body

string (at most 10000 characters) or null

yes

curl -X PUT http://localhost:4000/api/v1/inbox/{id}/answer \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Hide, unhide, delete, like or block the author of comments, at the platform

POST /api/v1/inbox/moderate

Only the actions the channel's platform offers (moderation of the thread). One failing comment does not stop the others: failed lists them with the reason.

  • Scope: inbox:write

  • MCP tool: inbox_moderate

Name

In

Type

Required

messageIds

body

array of string

no

conversationIds

body

array of string

no

action

body

"hide" or "unhide" or "delete" or "like" or "unlike" or "block"

yes

curl -X POST http://localhost:4000/api/v1/inbox/moderate \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Put a label on conversations, or take it off

POST /api/v1/inbox/labels/apply

  • Scope: inbox:write

  • MCP tool: inbox_labelMany

Name

In

Type

Required

ids

body

array of string

yes

labelId

body

string

yes

remove

body

boolean

no

curl -X POST http://localhost:4000/api/v1/inbox/labels/apply \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List the inbox labels, with how many conversations each holds

GET /api/v1/inbox/labels

  • Scope: inbox:read

  • MCP tool: inbox_labels_list

No parameters.

curl http://localhost:4000/api/v1/inbox/labels \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the workspace's saved replies

GET /api/v1/inbox/saved-replies

  • Scope: inbox:read

  • MCP tool: inbox_savedReplies_list

Name

In

Type

Required

q

query

string (at most 200 characters)

no

collection

query

string (at most 60 characters)

no

tag

query

string (at most 40 characters)

no

clientId

query

string

no

curl http://localhost:4000/api/v1/inbox/saved-replies \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

GET /api/v1/links/bio

  • Scope: links:read

  • MCP tool: bio_list

No parameters.

curl http://localhost:4000/api/v1/links/bio \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Views, clicks and click-through of a bio page

GET /api/v1/links/bio/{id}/stats

  • Scope: links:read

  • MCP tool: bio_stats

Name

In

Type

Required

id

path

string

yes

from

query

string

yes

to

query

string

yes

curl http://localhost:4000/api/v1/links/bio/{id}/stats \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Reports

List client reports

GET /api/v1/reports

  • Scope: reports:read

  • MCP tool: reports_list

No parameters.

curl http://localhost:4000/api/v1/reports \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Generate a report now

POST /api/v1/reports/{id}/generate

send: true also mails it to the report's recipients.

  • Scope: reports:write

  • MCP tool: reports_generate

Name

In

Type

Required

id

path

string

yes

send

body

boolean

no

curl -X POST http://localhost:4000/api/v1/reports/{id}/generate \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List generated reports, newest first

GET /api/v1/reports/runs

  • Scope: reports:read

  • MCP tool: reports_runs

Name

In

Type

Required

reportId

query

string

no

curl http://localhost:4000/api/v1/reports/runs \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Account

Who this key or token is: workspace, scopes, plan and timezone

GET /api/v1/me

Works with any valid key or token, whatever its scopes: use it to check a credential. mayPublish is false for a key without posts:publish: it can only save drafts and submit them. Times without an offset are read in timezone.

  • Scope: none (any valid key or token)

  • MCP tool: info_me

No parameters.

curl http://localhost:4000/api/v1/me \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Embedding

Create (or update) a workspace for one of your customers

POST /api/v1/embed/tenants

Idempotent on externalId, your own id for the customer. The first call returns apiKey: the tenant workspace's own key for the rest of this API (posts, media, analytics), shown once. Later calls return apiKey: null, rename the workspace and put it on your current plan. Tenants count against your plan's client limit; each tenant gets your plan's limits. With webhookUrl, every event of the tenant workspace (see Events) is sent there, signed with the returned webhookSecret.

  • Scope: embed:write

  • MCP tool: embed_tenants_create

Name

In

Type

Required

externalId

body

string (at most 200 characters)

yes

name

body

string (at most 100 characters)

yes

webhookUrl

body

string (at most 2000 characters)

no

curl -X POST http://localhost:4000/api/v1/embed/tenants \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List the workspaces you created for your customers

GET /api/v1/embed/tenants

  • Scope: embed:read

  • MCP tool: embed_tenants_list

No parameters.

curl http://localhost:4000/api/v1/embed/tenants \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Replace a tenant workspace's API key

POST /api/v1/embed/tenants/{externalId}/key

Every earlier key of the tenant stops working. apiKey is shown once.

  • Scope: embed:write

  • MCP tool: embed_tenants_rotateKey

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl -X POST http://localhost:4000/api/v1/embed/tenants/{externalId}/key \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Delete a tenant workspace and everything in it

DELETE /api/v1/embed/tenants/{externalId}

Channels are disconnected at their platforms, scheduled posts never publish, files are deleted and the tenant's keys stop working. Not reversible.

  • Scope: embed:write

  • MCP tool: embed_tenants_remove

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl -X DELETE http://localhost:4000/api/v1/embed/tenants/{externalId} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

POST /api/v1/embed/tenants/{externalId}/connect

Send your customer's browser to url. They sign in at the platform and the channel is saved in their tenant workspace. With redirectUrl the browser then returns there with status=connected&channels=<ids> or status=error&error=<message> in the query; the tenant's channel.connected event fires either way. Sign-in platforms only.

  • Scope: embed:write

  • MCP tool: embed_tenants_connectUrl

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

provider

body

string

yes

redirectUrl

body

string (at most 2000 characters)

no

curl -X POST http://localhost:4000/api/v1/embed/tenants/{externalId}/connect \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

List a tenant workspace's channels

GET /api/v1/embed/tenants/{externalId}/channels

  • Scope: embed:read

  • MCP tool: embed_tenants_channels

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl http://localhost:4000/api/v1/embed/tenants/{externalId}/channels \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Disconnect one of a tenant workspace's channels

DELETE /api/v1/embed/tenants/{externalId}/channels/{channelId}

The same as DELETE /channels/{id} with the tenant's key: access is revoked at the platform, and a scheduled post left with no channel goes back to draft.

  • Scope: embed:write

  • MCP tool: embed_tenants_removeChannel

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

channelId

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/embed/tenants/{externalId}/channels/{channelId} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get the plan a tenant workspace runs

GET /api/v1/embed/tenants/{externalId}/plan

plan is what the tenant runs now; followsPartner is false when you chose a plan for it with PUT /embed/tenants/{externalId}/plan. limits use -1 for unlimited.

  • Scope: embed:read

  • MCP tool: embed_tenants_plan

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl http://localhost:4000/api/v1/embed/tenants/{externalId}/plan \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Choose the plan of one tenant workspace

PUT /api/v1/embed/tenants/{externalId}/plan

Any plan up to your own: a tenant never runs above the plan you pay for, and drops with you when yours goes down. plan: null makes the tenant follow your plan again. A tenant holding an operator's grant keeps it.

  • Scope: embed:write

  • MCP tool: embed_tenants_setPlan

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

plan

body

"free" or "solo" or "team" or "agency" or null

yes

curl -X PUT http://localhost:4000/api/v1/embed/tenants/{externalId}/plan \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Read a tenant workspace's AI credit balance

GET /api/v1/embed/tenants/{externalId}/credits

This month's limit and used for each kind. limit -1 = unlimited.

  • Scope: embed:read

  • MCP tool: embed_tenants_credits

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl http://localhost:4000/api/v1/embed/tenants/{externalId}/credits \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

List the members of a tenant workspace

GET /api/v1/embed/tenants/{externalId}/members

  • Scope: embed:read

  • MCP tool: embed_tenants_members

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl http://localhost:4000/api/v1/embed/tenants/{externalId}/members \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Add a member to a tenant workspace

POST /api/v1/embed/tenants/{externalId}/members

Name the person by userExternalId, your own id for them: they join the tenant workspace as role when they sign in with that id, or at once when they already have. Roles: org:admin, org:member, org:editor, org:approver, org:client_reviewer.

  • Scope: embed:write

  • MCP tool: embed_tenants_addMember

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

userExternalId

body

string (at most 200 characters)

yes

role

body

"org:admin" or "org:member" or "org:editor" or "org:approver" or "org:client_reviewer"

yes

curl -X POST http://localhost:4000/api/v1/embed/tenants/{externalId}/members \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Change a member's role in a tenant workspace

PATCH /api/v1/embed/tenants/{externalId}/members/{userId}

  • Scope: embed:write

  • MCP tool: embed_tenants_setMemberRole

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

userId

path

string

yes

role

body

"org:admin" or "org:member" or "org:editor" or "org:approver" or "org:client_reviewer"

yes

curl -X PATCH http://localhost:4000/api/v1/embed/tenants/{externalId}/members/{userId} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Remove a member from a tenant workspace

DELETE /api/v1/embed/tenants/{externalId}/members/{userId}

userId is the Atlas user id from the members list, or a userExternalId that has not signed in yet (its pending invitation is cancelled).

  • Scope: embed:write

  • MCP tool: embed_tenants_removeMember

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

userId

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/embed/tenants/{externalId}/members/{userId} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Get a tenant workspace's branding and connect-page options

GET /api/v1/embed/tenants/{externalId}/branding

  • Scope: embed:read

  • MCP tool: embed_tenants_branding

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

curl http://localhost:4000/api/v1/embed/tenants/{externalId}/branding \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Set a tenant workspace's branding and connect-page options

PUT /api/v1/embed/tenants/{externalId}/branding

logoUrl and faviconUrl are https URLs; accent colours are #rrggbb. connectProviders limits the networks the tenant's connect page offers (platform ids from GET /channels/providers; null = all). hideIndrava needs the Agency plan on the tenant. The connect page and the app show the brand to the tenant's members and visitors.

  • Scope: embed:write

  • MCP tool: embed_tenants_setBranding

Name

In

Type

Required

externalId

path

string (at most 200 characters)

yes

name

body

string (at most 80 characters) or null

yes

logoUrl

body

string (at most 2000 characters) or null

yes

faviconUrl

body

string (at most 2000 characters) or null

yes

accentLight

body

string or null

yes

accentDark

body

string or null

yes

supportEmail

body

string (at most 200 characters) or null

yes

connectProviders

body

array of string (at most 50 characters) or null

yes

hideIndrava

body

boolean

yes

curl -X PUT http://localhost:4000/api/v1/embed/tenants/{externalId}/branding \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Members

List the workspace's members

GET /api/v1/members

Id, name and role of each member (up to 500). email is included only for a key or token that also holds members:emails, and for a workspace manager.

  • Scope: members:read

  • MCP tool: members_list

No parameters.

curl http://localhost:4000/api/v1/members \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Ideas

List the ideas library

GET /api/v1/ideas

Newest first. Page with cursor (the id of the last idea of the previous page). used: false lists the ones not yet turned into a post.

  • Scope: ideas:read

  • MCP tool: ideas_list

Name

In

Type

Required

groupId

query

string

no

search

query

string (at most 200 characters)

no

used

query

boolean

no

tag

query

string (at most 40 characters)

no

cursor

query

string

no

limit

query

integer (min 1, max 200)

no

curl http://localhost:4000/api/v1/ideas \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Save an idea

POST /api/v1/ideas

Text, media and tags kept without a date, to turn into a post later. The browser extension and the phone's share sheet use this.

  • Scope: ideas:write

  • MCP tool: ideas_create

Name

In

Type

Required

title

body

string (at most 200 characters) or null

no

text

body

string (at most 20000 characters)

no

notes

body

string (at most 5000 characters) or null

no

mediaIds

body

array of string

no

tags

body

array of string (at most 40 characters)

no

groupId

body

string or null

no

clientId

body

string or null

no

sourceUrl

body

string (at most 2000 characters) or null

no

curl -X POST http://localhost:4000/api/v1/ideas \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Tasks

List the tasks on a post

GET /api/v1/posts/{postId}/tasks

  • Scope: posts:read

  • MCP tool: tasks_forPost

Name

In

Type

Required

postId

path

string

yes

curl http://localhost:4000/api/v1/posts/{postId}/tasks \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Give a teammate a task on a post

POST /api/v1/posts/{postId}/tasks

Needs text and assigneeId (an Atlas user id); dueAt is optional. The assignee is told.

  • Scope: posts:write

  • MCP tool: tasks_create

Name

In

Type

Required

postId

path

string

yes

assigneeId

body

string

yes

text

body

string (at most 500 characters)

yes

dueAt

body

ISO 8601 time

no

curl -X POST http://localhost:4000/api/v1/posts/{postId}/tasks \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Give a teammate the same task on up to 100 posts

POST /api/v1/posts/tasks

  • Scope: posts:write

  • MCP tool: tasks_assignMany

Name

In

Type

Required

assigneeId

body

string

yes

text

body

string (at most 500 characters)

yes

dueAt

body

ISO 8601 time

no

postIds

body

array of string

yes

curl -X POST http://localhost:4000/api/v1/posts/tasks \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Change a task, or mark it done

PATCH /api/v1/posts/tasks/{id}

  • Scope: posts:write

  • MCP tool: tasks_update

Name

In

Type

Required

id

path

string

yes

text

body

string (at most 500 characters)

no

dueAt

body

ISO 8601 time or null

no

assigneeId

body

string

no

done

body

boolean

no

curl -X PATCH http://localhost:4000/api/v1/posts/tasks/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a task

DELETE /api/v1/posts/tasks/{id}

  • Scope: posts:write

  • MCP tool: tasks_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/posts/tasks/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Competitors

List the followed competitors with their numbers

GET /api/v1/competitors

One row per followed public account: followers, 30-day growth, posts per week, average likes, comments and shares per post, and engagement over followers. own has the workspace's channels in the same shape; benchmark is the mean of the competitors.

  • Scope: competitors:read

  • MCP tool: competitors_list

No parameters.

curl http://localhost:4000/api/v1/competitors \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Follow a public account as a competitor

POST /api/v1/competitors

handle is a name or a profile link. The account is read through one of the workspace's connected channels of the same network, so one must be connected. The number of accounts is limited by the plan.

  • Scope: competitors:write

  • MCP tool: competitors_add

Name

In

Type

Required

network

body

string (at most 40 characters)

yes

handle

body

string (at most 300 characters)

yes

clientId

body

string or null

no

curl -X POST http://localhost:4000/api/v1/competitors \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Lookup

Look up the public profile of any account

GET /api/v1/lookup/profile

Name, follower and post counts and recent public posts of an account that is not yours, read through a connected channel of the same network. handle is a name or a profile link.

  • Scope: lookup:read

  • MCP tool: lookup_profile

Name

In

Type

Required

network

query

string (at most 40 characters)

yes

handle

query

string (at most 300 characters)

yes

clientId

query

string

no

curl http://localhost:4000/api/v1/lookup/profile \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Designs

List design templates

GET /api/v1/designs/templates

Built-in and workspace templates. slots are what POST /designs/render accepts in inputs: a text slot takes text, an image slot takes a media library file id.

  • Scope: designs:read

  • MCP tool: designs_templates_list

No parameters.

curl http://localhost:4000/api/v1/designs/templates \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Render a template into library images

POST /api/v1/designs/render

Fills a template with the brand kit and inputs, draws it and files each page in the media library. Answers at once with a job: poll GET /designs/render/{id} until status is done, then use mediaIds in a post.

  • Scope: designs:write

  • MCP tool: designs_render

Name

In

Type

Required

templateId

body

string

yes

inputs

body

object

no

format

body

"png" or "jpeg"

no

clientId

body

string

no

curl -X POST http://localhost:4000/api/v1/designs/render \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get the state of a render

GET /api/v1/designs/render/{id}

queued, running, done (with mediaIds, one per page) or failed (with error).

  • Scope: designs:read

  • MCP tool: designs_renderStatus

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/designs/render/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Webhooks

List the workspace's webhook endpoints

GET /api/v1/webhooks

Up to 50 endpoints. health is healthy, failing or disabled (Atlas switches off an endpoint that keeps failing).

  • Scope: webhooks:read

  • MCP tool: webhooks_list

No parameters.

curl http://localhost:4000/api/v1/webhooks \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Add a webhook endpoint

POST /api/v1/webhooks

url must be https and public. events are names from the event catalogue, or * for all. channelIds / clientIds send only events about those channels or clients (an event about neither is not sent). headers are sent on every delivery and never returned. The signing secret (Standard Webhooks) is in this answer only; POST /webhooks/{id}/rotate-secret makes a new one. At most 50 per workspace.

  • Scope: webhooks:write

  • MCP tool: webhooks_create

Name

In

Type

Required

name

body

string (at most 120 characters)

yes

url

body

string (at most 2000 characters)

yes

events

body

array of string

no

channelIds

body

array of string (at most 200 characters)

no

clientIds

body

array of string (at most 200 characters)

no

headers

body

object

no

active

body

boolean

no

curl -X POST http://localhost:4000/api/v1/webhooks \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Get one webhook endpoint

GET /api/v1/webhooks/{id}

  • Scope: webhooks:read

  • MCP tool: webhooks_get

Name

In

Type

Required

id

path

string

yes

curl http://localhost:4000/api/v1/webhooks/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Change a webhook endpoint

PATCH /api/v1/webhooks/{id}

Send only what changes. channelIds / clientIds replace the filter (an empty list removes it); headers replace all headers (an empty object removes them). The URL cannot change: make a new endpoint.

  • Scope: webhooks:write

  • MCP tool: webhooks_update

Name

In

Type

Required

id

path

string

yes

name

body

string (at most 120 characters)

no

events

body

array of string

no

active

body

boolean

no

channelIds

body

array of string (at most 200 characters)

no

clientIds

body

array of string (at most 200 characters)

no

headers

body

object

no

curl -X PATCH http://localhost:4000/api/v1/webhooks/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Delete a webhook endpoint

DELETE /api/v1/webhooks/{id}

  • Scope: webhooks:write

  • MCP tool: webhooks_remove

Name

In

Type

Required

id

path

string

yes

curl -X DELETE http://localhost:4000/api/v1/webhooks/{id} \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Make a new signing secret

POST /api/v1/webhooks/{id}/rotate-secret

The new secret is in this answer only. The old one keeps signing for 24 hours (previousSecretExpiresAt), so a receiver can switch without dropping events.

  • Scope: webhooks:write

  • MCP tool: webhooks_rotateSecret

Name

In

Type

Required

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/webhooks/{id}/rotate-secret \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Send a test event to a webhook endpoint

POST /api/v1/webhooks/{id}/test

Sends a signed test event now and answers what the endpoint replied (status, time, the start of its answer).

  • Scope: webhooks:write

  • MCP tool: webhooks_test

Name

In

Type

Required

id

path

string

yes

curl -X POST http://localhost:4000/api/v1/webhooks/{id}/test \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

The delivery log of a webhook endpoint

GET /api/v1/webhooks/{id}/deliveries

Newest first, 90 days: every attempt with its number, status, HTTP status and the start of the endpoint's answer. Page with cursor (the id of the last item).

  • Scope: webhooks:read

  • MCP tool: webhooks_deliveries

Name

In

Type

Required

id

path

string

yes

status

query

"pending" or "success" or "failed"

no

limit

query

integer (min 1, max 200)

no

cursor

query

string

no

curl http://localhost:4000/api/v1/webhooks/{id}/deliveries \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Send a delivery again

POST /api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver

  • Scope: webhooks:write

  • MCP tool: webhooks_redeliver

Name

In

Type

Required

id

path

string

yes

deliveryId

path

string

yes

curl -X POST http://localhost:4000/api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Usage

The workspace's plan and what it has used of each limit

GET /api/v1/usage

usage: channels, clients, automations, scheduled posts and AI credits against the plan (limit null = unlimited). generation: this month's generated images, videos and clipped minutes. requests: public API requests per day (UTC) for the last 30 days, today's count appears within seconds.

  • Scope: usage:read

  • MCP tool: usage_get

No parameters.

curl http://localhost:4000/api/v1/usage \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Advocacy

List advocacy stories

GET /api/v1/advocacy/stories

  • Scope: advocacy:read

  • MCP tool: advocacy_stories

Name

In

Type

Required

programId

query

string (at most 80 characters)

yes

status

query

"draft" or "published" or "archived"

no

curl http://localhost:4000/api/v1/advocacy/stories \
  -H "Authorization: Bearer $INDRAVA_API_KEY"

Create or update an advocacy story (a draft until published)

POST /api/v1/advocacy/stories

  • Scope: advocacy:write

  • MCP tool: advocacy_storySave

Name

In

Type

Required

id

body

string (at most 80 characters)

no

programId

body

string (at most 80 characters)

yes

topicId

body

string (at most 80 characters) or null

no

title

body

string (at most 200 characters)

yes

url

body

string (at most 2000 characters) or null

no

mediaId

body

string (at most 80 characters) or null

no

note

body

string (at most 2000 characters)

no

segments

body

array of string (at most 60 characters)

no

shareFrom

body

ISO 8601 time or null

no

shareUntil

body

ISO 8601 time or null

no

disclosure

body

string (at most 200 characters) or null

no

lockText

body

boolean

no

texts

body

array of object

no

curl -X POST http://localhost:4000/api/v1/advocacy/stories \
  -H "Authorization: Bearer $INDRAVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d @body.json

Advocacy leaderboard: points, shares and clicks per advocate

GET /api/v1/advocacy/leaderboard

  • Scope: advocacy:read

  • MCP tool: advocacy_leaderboard

Name

In

Type

Required

programId

query

string (at most 80 characters)

yes

from

query

ISO 8601 time

no

to

query

ISO 8601 time

no

curl http://localhost:4000/api/v1/advocacy/leaderboard \
  -H "Authorization: Bearer $INDRAVA_API_KEY"
Updated