Operations
Every operation of the Indrava REST API with its scope, MCP tool name and inputs.
<!-- 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:readMCP 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:writeMCP tool:
pause_pause
Name | In | Type | Required |
|---|---|---|---|
| body | string or null | no |
| 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.jsonResume 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:writeMCP tool:
pause_resume
Name | In | Type | Required |
|---|---|---|---|
| body | string or null | no |
| 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.jsonBest 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:readMCP tool:
queue_bestTimes
Name | In | Type | Required |
|---|---|---|---|
| query | string | yes |
| query | "engagement" or "reach" or "clicks" | no |
| query | array of integer (min 1, max 7) | no |
| 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:readMCP tool:
queue_status
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
queue_order
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:writeMCP tool:
queue_setGoal
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| 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.jsonShuffle a channel's queued posts across their existing times
POST /api/v1/slots/{channelId}/shuffle
Scope:
slots:writeMCP tool:
queue_shuffle
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
queue_move
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string | yes |
| 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.jsonCopy a posting time to other weekdays
POST /api/v1/slots/{channelId}/duplicate
Scope:
slots:writeMCP tool:
queue_duplicate
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | integer (min 1, max 7) | yes |
| body | string | yes |
| 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.jsonUse the recommended times as a channel's posting times
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:writeMCP tool:
queue_recommend
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | "replace" or "add" | no |
| body | integer (min 1, max 7) | no |
| 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.jsonSet 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:writeMCP tool:
queue_setZone
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonCategories (tags) used by posting times, with their pause state
GET /api/v1/slots/categories
Scope:
slots:readMCP 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:writeMCP tool:
queue_pauseCategory
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| 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.jsonList posting slots
GET /api/v1/slots
Scope:
slots:readMCP 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:writeMCP tool:
slots_set
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonPreview the next free slots per channel
GET /api/v1/slots/preview
Scope:
slots:readMCP tool:
slots_preview
Name | In | Type | Required |
|---|---|---|---|
| query | array of string | no |
| 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:writeMCP tool:
slots_enqueue
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | "top" or "bottom" | no |
| body | string | no |
| body | ISO 8601 time | no |
| body | ISO 8601 time | no |
| 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.jsonMedia
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:readMCP 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:writeMCP tool:
ai_image
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 4000 characters) | yes |
| body | "1:1" or "4:5" or "16:9" or "9:16" | no |
| body | string (at most 60 characters) | no |
| body | string | no |
| 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.jsonStart 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:writeMCP tool:
ai_videoStart
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 10000 characters) | yes |
| body | "vertical" or "horizontal" | no |
| body | string | no |
| body | array of string | no |
| 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.jsonGet 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:readMCP tool:
ai_videoStatus
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
media_list
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 200 characters) | no |
| query | "image" or "video" or "audio" or "document" | no |
| query | string | no |
| query | integer (min 1, max 100) | no |
| query | string | no |
| query | string | no |
| query | boolean | no |
| query | boolean | no |
| query | string | no |
| 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:readMCP tool:
media_get
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
media_update
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 255 characters) | no |
| body | string (at most 1500 characters) or null | no |
| 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.jsonDelete 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:writeMCP tool:
media_remove
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonAdd 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:writeMCP tool:
media_importUrl
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 2000 characters) | yes |
| body | string | no |
| body | string | no |
| body | string (at most 500 characters) | no |
| body | string (at most 2000 characters) | no |
| body | string (at most 1500 characters) | no |
| 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.jsonGet 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:readMCP tool:
mediaJobs_status
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
mediaJobs_adjust
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string | yes |
| 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.jsonChoose 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:writeMCP tool:
mediaJobs_setThumbnail
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | integer (min 0, max 9007199254740991) | no |
| 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.jsonCut 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:writeMCP tool:
mediaJobs_clip
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | array of object | no |
| body | integer (min 5, max 180) | no |
| body | integer (min 1, max 20) | no |
| body | boolean | no |
| body | boolean | no |
| body | boolean | no |
| 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.jsonList 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:readMCP tool:
mediaJobs_clips
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
mediaJobs_editVideo
Name | In | Type | Required |
|---|---|---|---|
| body | array of object | yes |
| body | boolean | no |
| body | string | no |
| body | "1:1" or "4:5" or "9:16" or "16:9" or "4:3" | no |
| body | 0 or 90 or 180 or 270 | no |
| body | "h" or "v" or "both" | no |
| body | number (min 0.25, max 4) | no |
| body | array of object | no |
| 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.jsonMake 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:writeMCP tool:
mediaJobs_slideshow
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| body | number (min 1, max 30) | yes |
| body | "none" or "fade" or "slide" | yes |
| body | "1:1" or "9:16" or "16:9" or "4:5" | yes |
| 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.jsonGet 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:readMCP tool:
mediaJobs_job
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl http://localhost:4000/api/v1/media/jobs/{id} \
-H "Authorization: Bearer $INDRAVA_API_KEY"Import a video file from a link and cut clips from it
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:writeMCP tool:
mediaJobs_clipsFromUrl
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 2000 characters) | yes |
| body | string | no |
| body | array of string | no |
| body | array of object | no |
| body | integer (min 5, max 180) | no |
| body | integer (min 1, max 20) | no |
| body | boolean | no |
| body | boolean | no |
| body | boolean | no |
| 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.jsonList the media library's folders
GET /api/v1/media/folders
Nested through parentId; each with the number of files directly in it.
Scope:
media:readMCP 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:writeMCP tool:
mediaOrganise_folders_create
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 100 characters) | yes |
| body | string or null | no |
| 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.jsonRename a media folder or move it under another
PATCH /api/v1/media/folders/{id}
parentId: null moves it to the top.
Scope:
media:writeMCP tool:
mediaOrganise_folders_update
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 100 characters) | no |
| 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.jsonDelete 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:writeMCP tool:
mediaOrganise_folders_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
mediaOrganise_labels_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 50 characters) | yes |
| 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.jsonDelete a media label
DELETE /api/v1/media/labels/{id}
Scope:
media:writeMCP tool:
mediaOrganise_labels_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
mediaOrganise_labels_apply
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| body | array of string | yes |
| 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.jsonMove files into a folder
POST /api/v1/media/move
folderId: null takes them out of any folder.
Scope:
media:writeMCP tool:
mediaOrganise_files_move
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| 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.jsonList 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:readMCP tool:
mediaOrganise_files_usedBy
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
watermarks_apply
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonAI
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:writeMCP tool:
aiTools_draft
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 10000 characters) | no |
| body | string (at most 200000 characters) | no |
| body | string | no |
| body | array of string | no |
| body | boolean | no |
| body | boolean | no |
| body | integer (min 1, max 10) | no |
| 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.jsonChange 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:writeMCP tool:
aiTools_rewrite
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 100000 characters) | yes |
| body | string (at most 100000 characters) | no |
| body | string (at most 2000 characters) | yes |
| body | "rewrite" or "shorten" or "expand" or "tone" or "grammar" or "translate" or "continue" or "spintax" or "hook" or "hashtags" or "draft" | no |
| 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.jsonTranslate 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:writeMCP tool:
aiTools_translate
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 100000 characters) | yes |
| body | array of string (at most 60 characters) | yes |
| 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.jsonSuggest 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:writeMCP tool:
aiTools_hashtags
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 100000 characters) | yes |
| body | integer (min 1, max 10) | no |
| body | "end" or "start" | no |
| 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.jsonWrite 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:writeMCP tool:
aiTools_altText
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| 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.jsonTranscribe 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:writeMCP tool:
aiTools_transcribe
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 300 characters) | yes |
| body | string (at most 200 characters) | yes |
| body | string (at most 33333342 characters) | yes |
| 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.jsonCheck 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:writeMCP tool:
aiTools_check
Name | In | Type | Required |
|---|---|---|---|
| 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.jsonPredict 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:writeMCP tool:
aiTools_score
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 100000 characters) | yes |
| body | string | yes |
| body | ISO 8601 time | no |
| 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.jsonAnalytics
Totals for a period, with change against the period before
GET /api/v1/analytics/overview
Scope:
analytics:readMCP tool:
analytics_overview
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| 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:readMCP tool:
analytics_channels
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| 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:readMCP tool:
analytics_topPosts
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| query | "indrava" or "external" or "all" | no |
| 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:readMCP tool:
analytics_channel
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:readMCP tool:
analytics_bestTime
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| 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:readMCP tool:
analytics_tags
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| 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:readMCP tool:
analytics_export
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| query | "indrava" or "external" or "all" | no |
| query | "overview" or "channels" or "posts" or "bestTime" or "tags" or "insights" or "hashtags" or "audience" | yes |
| query | "csv" or "md" or "xlsx" | no |
| query | string | no |
| 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:readMCP tool:
analytics_breakdowns
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | array of string | no |
| 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:readMCP tool:
analytics_audience
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
analytics_lookup
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP 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:readMCP 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:readMCP tool:
inboxIntel_stats
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| query | ISO 8601 time | yes |
| query | string | no |
| query | string | no |
| 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:readMCP tool:
postStats_get
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:readMCP tool:
info_postAnalytics
Name | In | Type | Required |
|---|---|---|---|
| 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/providersList connected channels
GET /api/v1/channels
Scope:
channels:readMCP tool:
channels_list
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
channels_get
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
channels_rename
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonRemove a channel
DELETE /api/v1/channels/{id}
Also revokes Indrava's access at the platform where the platform allows it.
Scope:
channels:writeMCP tool:
channels_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
channels_fieldOptions
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| query | string (at most 100 characters) | yes |
| query | string (at most 200 characters) | no |
| 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:writeMCP tool:
channels_connect
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| 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.jsonReplace 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:writeMCP tool:
channels_updateCredentials
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonPause a channel
POST /api/v1/channels/{id}/disable
It keeps its posts and settings; posts that come due skip it.
Scope:
channels:writeMCP tool:
channels_disable
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonResume a paused channel
POST /api/v1/channels/{id}/enable
Answers 402 when the plan already runs as many channels as it allows.
Scope:
channels:writeMCP tool:
channels_enable
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
channels_impact
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
channels_setPreferences
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonGet 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:writeMCP tool:
connections_start
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| 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.jsonFinish 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:writeMCP tool:
connections_complete
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| 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.jsonLive state of a channel's connection
GET /api/v1/channels/{channelId}/status
Scope:
channels:readMCP tool:
connections_status
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl http://localhost:4000/api/v1/channels/{channelId}/status \
-H "Authorization: Bearer $INDRAVA_API_KEY"Get a hosted link that signs a channel in again
POST /api/v1/channels/{channelId}/reconnect
Safe to send to the person who owns the account: it needs no Indrava login.
Scope:
channels:writeMCP tool:
connections_reconnect
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl -X POST http://localhost:4000/api/v1/channels/{channelId}/reconnect \
-H "Authorization: Bearer $INDRAVA_API_KEY"Create a one-hour link that lets someone without an account connect a channel
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:writeMCP tool:
connections_inviteLink_create
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| body | string | no |
| 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.jsonList the connect links that still work
GET /api/v1/channels/invites
Scope:
channels:readMCP tool:
connections_inviteLink_list
No parameters.
curl http://localhost:4000/api/v1/channels/invites \
-H "Authorization: Bearer $INDRAVA_API_KEY"Stop a connect link from working
DELETE /api/v1/channels/invites/{id}
Scope:
channels:writeMCP tool:
connections_inviteLink_revoke
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
mentions_search
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:readMCP tool:
limits_channel
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
posts_list
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
| query | array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed" | no |
| query | string | no |
| query | array of string | no |
| query | string | no |
| query | string | no |
| query | "post" or "reel" or "story" or "short" or "poll" or "article" | no |
| query | string | no |
| query | string | no |
| query | string | no |
| query | boolean | no |
| query | string | no |
| query | string (at most 500 characters) | no |
| query | string | no |
| 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:writeMCP tool:
posts_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | array of object | yes |
| body | array of object | yes |
| body | "draft" or "schedule" or "now" | yes |
| body | ISO 8601 time | no |
| body | array of string | no |
| body | string or null | no |
| body | boolean | no |
| body | string (at most 200 characters) | no |
| 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.jsonCount the posts a list filter matches
GET /api/v1/posts/count
Scope:
posts:readMCP tool:
posts_count
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
| query | array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed" | no |
| query | string | no |
| query | array of string | no |
| query | string | no |
| query | string | no |
| query | "post" or "reel" or "story" or "short" or "poll" or "article" | no |
| query | string | no |
| query | string | no |
| query | string | no |
| query | boolean | no |
| query | string | no |
| 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:readMCP tool:
posts_get
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
posts_remove
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonChange 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:writeMCP tool:
posts_patch
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | "draft" or "schedule" or "now" | no |
| body | ISO 8601 time | no |
| body | array of object | no |
| body | array of string | no |
| body | string (at most 100000 characters) | no |
| 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.jsonMove 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:writeMCP tool:
posts_reschedule
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonCheck 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:writeMCP tool:
posts_validate
Name | In | Type | Required |
|---|---|---|---|
| body | array of object | yes |
| 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.jsonRetry the failed channels of a post
POST /api/v1/posts/{id}/retry
Scope:
posts:writeMCP tool:
posts_retry
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
posts_setRemote
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string | yes |
| body | integer (min 0, max 49) | no |
| body | string (at most 500 characters) | no |
| 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.jsonCreate 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:writeMCP tool:
posts_bulk
Name | In | Type | Required |
|---|---|---|---|
| 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.jsonExport 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:readMCP tool:
posts_export
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
| query | array of "draft" or "pending_approval" or "scheduled" or "publishing" or "published" or "failed" | no |
| query | string | no |
| query | array of string | no |
| query | string | no |
| query | string | no |
| query | "post" or "reel" or "story" or "short" or "poll" or "article" | no |
| query | string | no |
| query | string | no |
| query | string | no |
| query | boolean | no |
| query | string | no |
| 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:writeMCP tool:
posts_copy
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonList share links, newest first
GET /api/v1/posts/review-links
Never the URL itself: that is shown once, when the link is made.
Scope:
posts:readMCP 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:writeMCP tool:
reviewLinks_create
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string | no |
| body | string (at most 200 characters) | no |
| body | string | no |
| body | string (at most 2000 characters) | no |
| body | integer (min 1, max 90) | no |
| body | "review" or "calendar" or "preview" | no |
| body | integer (min 1, max 365) | no |
| body | boolean | no |
| body | boolean | no |
| 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.jsonRevoke a share link
DELETE /api/v1/posts/review-links/{id}
Scope:
posts:writeMCP tool:
reviewLinks_revoke
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
automations_deletePublished
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonEdit the text of a published post at the platform
PATCH /api/v1/posts/{id}/published
Scope:
posts:writeMCP tool:
automations_editPublished
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string | no |
| 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.jsonAsk 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:writeMCP tool:
agent_ask
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 20000 characters) | yes |
| 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.jsonGet a post's title, private notes and UTM values
GET /api/v1/posts/{id}/notes
Scope:
posts:readMCP tool:
postNotes_get
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
postNotes_save
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 200 characters) or null | no |
| body | string (at most 20000 characters) or null | no |
| 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.jsonList 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:readMCP 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:writeMCP tool:
postHistory_trash_restore
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonDelete a post from the trash for good
DELETE /api/v1/posts/trash/{id}
Scope:
posts:writeMCP tool:
postHistory_trash_purge
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
postHistory_versions_list
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
postHistory_versions_restore
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:readMCP tool:
postHistory_activity
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
postRules_setValues
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonDownload 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:readMCP tool:
bulk_template
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
bulk_import
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 5000000 characters) | no |
| body | array of object | no |
| body | "YYYY-MM-DD HH:mm" or "DD/MM/YYYY" or "MM/DD/YYYY" or "ISO" | no |
| body | "draft" or "schedule" or "queue" | no |
| body | string (at most 60 characters) | no |
| body | boolean | no |
| body | boolean | no |
| 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.jsonExport 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:readMCP tool:
bulk_export
Name | In | Type | Required |
|---|---|---|---|
| query | "YYYY-MM-DD HH:mm" or "DD/MM/YYYY" or "MM/DD/YYYY" or "ISO" | no |
| query | string (at most 60 characters) | no |
| query | array of "draft" or "scheduled" or "pending_approval" | no |
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
| query | array of string | no |
| query | string | no |
| 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:readMCP 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:writeMCP tool:
channelSets_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 80 characters) | yes |
| 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.jsonDelete a channel set
DELETE /api/v1/sets/{id}
Scope:
sets:writeMCP tool:
channelSets_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
setTemplates_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| body | string (at most 300 characters) or null | no |
| body | array of object or null | no |
| 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.jsonRecurring
List recurring series
GET /api/v1/posts/series
A series makes its next post when the one before is due.
Scope:
posts:readMCP 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:writeMCP tool:
recurring_create
Name | In | Type | Required |
|---|---|---|---|
| body | array of object | yes |
| body | array of object | yes |
| body | object | yes |
| body | array of string | no |
| 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.jsonChange 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:writeMCP tool:
recurring_update
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | array of object | yes |
| body | array of object | yes |
| body | object | yes |
| body | array of string | no |
| body | ISO 8601 time | no |
| 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.jsonSkip 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:writeMCP tool:
recurring_remove
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonSignatures
List signatures
GET /api/v1/signatures
Scope:
signatures:readMCP 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:writeMCP tool:
signatures_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 80 characters) | yes |
| body | string (at most 2000 characters) | yes |
| 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.jsonDelete a signature
DELETE /api/v1/signatures/{id}
Scope:
signatures:writeMCP tool:
signatures_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
snippets_list
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
snippets_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | "caption" or "hashtags" or "mentions" or "shortcode" or "template" | yes |
| body | string (at most 80 characters) | yes |
| body | string (at most 20000 characters) | yes |
| body | array of string (at most 40 characters) | no |
| 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.jsonDelete a snippet
DELETE /api/v1/signatures/snippets/{id}
Scope:
signatures:writeMCP tool:
snippets_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
tags_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 50 characters) | yes |
| 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.jsonDelete a tag
DELETE /api/v1/tags/{id}
Scope:
tags:writeMCP tool:
tags_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
postTags_add
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonFeeds
List feeds
GET /api/v1/feeds
Scope:
feeds:readMCP 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:writeMCP tool:
feeds_save
Name | In | Type | Required |
|---|---|---|---|
| body | string | no |
| body | string (at most 120 characters) | yes |
| body | string (at most 2000 characters) | yes |
| body | array of string | yes |
| body | string (at most 2000 characters) | no |
| body | "draft" or "queue" or "publish" | no |
| body | boolean | no |
| body | integer (min 15, max 10080) | no |
| body | boolean | no |
| body | boolean | no |
| body | boolean | no |
| body | boolean | no |
| body | boolean | no |
| body | string or null | no |
| body | string or null | no |
| body | boolean | no |
| 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.jsonRead the newest items of a feed address without saving anything
GET /api/v1/feeds/preview
Scope:
feeds:readMCP tool:
feeds_preview
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 2000 characters) | yes |
| 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:writeMCP tool:
feeds_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
feeds_articles
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| query | string (at most 200 characters) | no |
| query | "all" or "posted" or "unposted" | no |
| query | integer (min 1, max 100) | no |
| 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:writeMCP tool:
feeds_sync
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl -X POST http://localhost:4000/api/v1/feeds/{id}/sync \
-H "Authorization: Bearer $INDRAVA_API_KEY"Links
List short links with their clicks, newest first
GET /api/v1/links
Page with limit and offset.
Scope:
links:readMCP tool:
links_list
Name | In | Type | Required |
|---|---|---|---|
| query | string | no |
| query | integer (min 1, max 200) | no |
| 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:writeMCP tool:
links_create
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 2000 characters) | yes |
| body | string | no |
| 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.jsonDelete a short link
DELETE /api/v1/links/{id}
Scope:
links:writeMCP tool:
links_remove
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl -X DELETE http://localhost:4000/api/v1/links/{id} \
-H "Authorization: Bearer $INDRAVA_API_KEY"Clicks per day and referrer, for one link or all of them
GET /api/v1/links/stats
Scope:
links:readMCP tool:
links_stats
Name | In | Type | Required |
|---|---|---|---|
| query | string | no |
| query | string | yes |
| 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:writeMCP tool:
approvals_submit
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | array of string | no |
| body | string | no |
| 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.jsonSubmit 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:writeMCP tool:
approvals_requestMany
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| body | string | no |
| 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.jsonApprove or reject a post that is awaiting approval
POST /api/v1/approvals/{postId}/decision
Scope:
approvals:writeMCP tool:
approvals_decide
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | "approved" or "rejected" | yes |
| 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.jsonApprove 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:writeMCP tool:
approvals_decideMany
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| body | "approved" or "rejected" | yes |
| 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.jsonTake a post back from approval: it becomes a draft again
POST /api/v1/posts/{postId}/withdraw
Scope:
posts:writeMCP tool:
approvals_withdraw
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
approvals_list
Name | In | Type | Required |
|---|---|---|---|
| query | "pending" or "approved" or "rejected" or "withdrawn" | no |
| query | string | no |
| query | string | no |
| query | string | no |
| 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:readMCP 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:readMCP tool:
comments_list
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
comments_add
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 5000 characters) | yes |
| body | string | no |
| body | string (at most 500 characters) | no |
| body | string (at most 5000 characters) | no |
| body | array of string | no |
| 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.jsonReply to a comment
POST /api/v1/posts/comments/{id}/replies
Scope:
posts:writeMCP tool:
comments_reply
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 5000 characters) | yes |
| body | array of string | no |
| 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.jsonEdit your own comment
PATCH /api/v1/posts/comments/{id}
Scope:
posts:writeMCP tool:
comments_edit
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 5000 characters) | yes |
| 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.jsonDelete your own comment (or any, for those who manage the workspace)
DELETE /api/v1/posts/comments/{id}
Scope:
posts:writeMCP tool:
comments_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
comments_resolve
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonAccept or reject a suggested edit
POST /api/v1/posts/comments/{id}/suggestion
Scope:
posts:writeMCP tool:
comments_suggestion
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonNotifications
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:readMCP tool:
notifications_feed
Name | In | Type | Required |
|---|---|---|---|
| query | integer (min 1, max 100) | no |
| query | ISO 8601 time | no |
| query | "publishing" or "approvals" or "team" or "inbox" or "account" or "growth" | no |
| query | "urgent" or "important" or "routine" | no |
| query | "all" or "unread" or "read" | no |
| query | ISO 8601 time | no |
| 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:writeMCP 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:writeMCP 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:readMCP 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:writeMCP tool:
automations_save
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 120 characters) | yes |
| body | string | no |
| body | object | yes |
| body | object | yes |
| body | object | yes |
| body | object or null | no |
| body | boolean | no |
| 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.jsonDelete an automation rule and its run history
DELETE /api/v1/automations/{id}
Scope:
automations:writeMCP tool:
automations_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
automations_runs
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
curl http://localhost:4000/api/v1/automations/{ruleId}/runs \
-H "Authorization: Bearer $INDRAVA_API_KEY"Per rule: triggered, sent, answered, failed, link clicks and each flow step
GET /api/v1/automations/numbers
Scope:
automations:readMCP 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:readMCP tool:
automations_postRanking
Name | In | Type | Required |
|---|---|---|---|
| query | string | no |
| 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:readMCP tool:
automations_history
Name | In | Type | Required |
|---|---|---|---|
| query | string | no |
| query | "pending" or "done" or "failed" or "skipped" | no |
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
| query | integer (min 1, max 200) | no |
| 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:readMCP tool:
automations_contacts
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 100 characters) | no |
| query | string | no |
| 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:readMCP tool:
automations_followUps
Name | In | Type | Required |
|---|---|---|---|
| query | ISO 8601 time | yes |
| 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:readMCP tool:
inbox_list
Name | In | Type | Required |
|---|---|---|---|
| query | "open" or "done" or "snoozed" or "all" | no |
| query | string | no |
| query | string | no |
| query | string | no |
| query | string | no |
| query | string (at most 200 characters) | no |
| query | "all" or "any" | no |
| query | array of object | no |
| query | "newest" or "oldest" | no |
| query | string (at most 100 characters) | no |
| 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:readMCP tool:
inbox_thread
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
inbox_reply
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 10000 characters) | yes |
| 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.jsonHand conversations to a member, or to nobody
POST /api/v1/inbox/assign
Scope:
inbox:writeMCP tool:
inbox_assign
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| 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.jsonMark conversations done, reopen them, or snooze them until a time
POST /api/v1/inbox/state
Scope:
inbox:writeMCP 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.jsonList reviews, newest first
GET /api/v1/inbox/reviews
Scope:
inbox:readMCP tool:
inbox_reviews
Name | In | Type | Required |
|---|---|---|---|
| query | array of integer (min 1, max 5) | no |
| query | boolean | no |
| query | string (at most 100 characters) | no |
| 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:writeMCP tool:
inbox_answer
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonHide, 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:writeMCP tool:
inbox_moderate
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | no |
| body | array of string | no |
| 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.jsonPut a label on conversations, or take it off
POST /api/v1/inbox/labels/apply
Scope:
inbox:writeMCP tool:
inbox_labelMany
Name | In | Type | Required |
|---|---|---|---|
| body | array of string | yes |
| body | string | yes |
| 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.jsonList the inbox labels, with how many conversations each holds
GET /api/v1/inbox/labels
Scope:
inbox:readMCP 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:readMCP tool:
inbox_savedReplies_list
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 200 characters) | no |
| query | string (at most 60 characters) | no |
| query | string (at most 40 characters) | no |
| query | string | no |
curl http://localhost:4000/api/v1/inbox/saved-replies \
-H "Authorization: Bearer $INDRAVA_API_KEY"Link in bio
List link-in-bio pages with their public addresses
GET /api/v1/links/bio
Scope:
links:readMCP 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:readMCP tool:
bio_stats
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| query | string | yes |
| 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:readMCP 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:writeMCP tool:
reports_generate
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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.jsonList generated reports, newest first
GET /api/v1/reports/runs
Scope:
reports:readMCP tool:
reports_runs
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_create
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 200 characters) | yes |
| body | string (at most 100 characters) | yes |
| 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.jsonList the workspaces you created for your customers
GET /api/v1/embed/tenants
Scope:
embed:readMCP 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:writeMCP tool:
embed_tenants_rotateKey
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_remove
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
curl -X DELETE http://localhost:4000/api/v1/embed/tenants/{externalId} \
-H "Authorization: Bearer $INDRAVA_API_KEY"Get a one-hour link where your customer connects a channel
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:writeMCP tool:
embed_tenants_connectUrl
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| body | string | yes |
| 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.jsonList a tenant workspace's channels
GET /api/v1/embed/tenants/{externalId}/channels
Scope:
embed:readMCP tool:
embed_tenants_channels
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_removeChannel
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| 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:readMCP tool:
embed_tenants_plan
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_setPlan
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| 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.jsonRead 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:readMCP tool:
embed_tenants_credits
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
embed_tenants_members
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_addMember
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| body | string (at most 200 characters) | yes |
| 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.jsonChange a member's role in a tenant workspace
PATCH /api/v1/embed/tenants/{externalId}/members/{userId}
Scope:
embed:writeMCP tool:
embed_tenants_setMemberRole
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| path | string | yes |
| 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.jsonRemove 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:writeMCP tool:
embed_tenants_removeMember
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| 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:readMCP tool:
embed_tenants_branding
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
embed_tenants_setBranding
Name | In | Type | Required |
|---|---|---|---|
| path | string (at most 200 characters) | yes |
| body | string (at most 80 characters) or null | yes |
| body | string (at most 2000 characters) or null | yes |
| body | string (at most 2000 characters) or null | yes |
| body | string or null | yes |
| body | string or null | yes |
| body | string (at most 200 characters) or null | yes |
| body | array of string (at most 50 characters) or null | yes |
| 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.jsonMembers
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:readMCP 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:readMCP tool:
ideas_list
Name | In | Type | Required |
|---|---|---|---|
| query | string | no |
| query | string (at most 200 characters) | no |
| query | boolean | no |
| query | string (at most 40 characters) | no |
| query | string | no |
| 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:writeMCP tool:
ideas_create
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 200 characters) or null | no |
| body | string (at most 20000 characters) | no |
| body | string (at most 5000 characters) or null | no |
| body | array of string | no |
| body | array of string (at most 40 characters) | no |
| body | string or null | no |
| body | string or null | no |
| 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.jsonTasks
List the tasks on a post
GET /api/v1/posts/{postId}/tasks
Scope:
posts:readMCP tool:
tasks_forPost
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
tasks_create
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string | yes |
| body | string (at most 500 characters) | yes |
| 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.jsonGive a teammate the same task on up to 100 posts
POST /api/v1/posts/tasks
Scope:
posts:writeMCP tool:
tasks_assignMany
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| body | string (at most 500 characters) | yes |
| body | ISO 8601 time | no |
| 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.jsonChange a task, or mark it done
PATCH /api/v1/posts/tasks/{id}
Scope:
posts:writeMCP tool:
tasks_update
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 500 characters) | no |
| body | ISO 8601 time or null | no |
| body | string | no |
| 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.jsonDelete a task
DELETE /api/v1/posts/tasks/{id}
Scope:
posts:writeMCP tool:
tasks_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
competitors_add
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 40 characters) | yes |
| body | string (at most 300 characters) | yes |
| 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.jsonLookup
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:readMCP tool:
lookup_profile
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 40 characters) | yes |
| query | string (at most 300 characters) | yes |
| 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:readMCP 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:writeMCP tool:
designs_render
Name | In | Type | Required |
|---|---|---|---|
| body | string | yes |
| body | object | no |
| body | "png" or "jpeg" | no |
| 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.jsonGet 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:readMCP tool:
designs_renderStatus
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP 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:writeMCP tool:
webhooks_create
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 120 characters) | yes |
| body | string (at most 2000 characters) | yes |
| body | array of string | no |
| body | array of string (at most 200 characters) | no |
| body | array of string (at most 200 characters) | no |
| body | object | no |
| 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.jsonGet one webhook endpoint
GET /api/v1/webhooks/{id}
Scope:
webhooks:readMCP tool:
webhooks_get
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
webhooks_update
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| body | string (at most 120 characters) | no |
| body | array of string | no |
| body | boolean | no |
| body | array of string (at most 200 characters) | no |
| body | array of string (at most 200 characters) | no |
| 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.jsonDelete a webhook endpoint
DELETE /api/v1/webhooks/{id}
Scope:
webhooks:writeMCP tool:
webhooks_remove
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
webhooks_rotateSecret
Name | In | Type | Required |
|---|---|---|---|
| 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:writeMCP tool:
webhooks_test
Name | In | Type | Required |
|---|---|---|---|
| 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:readMCP tool:
webhooks_deliveries
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| query | "pending" or "success" or "failed" | no |
| query | integer (min 1, max 200) | no |
| 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:writeMCP tool:
webhooks_redeliver
Name | In | Type | Required |
|---|---|---|---|
| path | string | yes |
| 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:readMCP 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:readMCP tool:
advocacy_stories
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 80 characters) | yes |
| 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:writeMCP tool:
advocacy_storySave
Name | In | Type | Required |
|---|---|---|---|
| body | string (at most 80 characters) | no |
| body | string (at most 80 characters) | yes |
| body | string (at most 80 characters) or null | no |
| body | string (at most 200 characters) | yes |
| body | string (at most 2000 characters) or null | no |
| body | string (at most 80 characters) or null | no |
| body | string (at most 2000 characters) | no |
| body | array of string (at most 60 characters) | no |
| body | ISO 8601 time or null | no |
| body | ISO 8601 time or null | no |
| body | string (at most 200 characters) or null | no |
| body | boolean | no |
| 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.jsonAdvocacy leaderboard: points, shares and clicks per advocate
GET /api/v1/advocacy/leaderboard
Scope:
advocacy:readMCP tool:
advocacy_leaderboard
Name | In | Type | Required |
|---|---|---|---|
| query | string (at most 80 characters) | yes |
| query | ISO 8601 time | no |
| query | ISO 8601 time | no |
curl http://localhost:4000/api/v1/advocacy/leaderboard \
-H "Authorization: Bearer $INDRAVA_API_KEY"