Channels
http://localhost:4000/api/v1 /channels/{channelId}/status Live state of a channel's connection
Parameters
channelIdCode samples
cURL
curl -X GET "http://localhost:4000/api/v1/channels/{channelId}/status" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/{channelId}/reconnect Get a hosted link that signs a channel in again
Safe to send to the person who owns the account: it needs no Indrava login.
Parameters
channelIdCode samples
cURL
curl -X POST "http://localhost:4000/api/v1/channels/{channelId}/reconnect" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/invites List the connect links that still work
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/channels/invites" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/invites Create a one-hour link that lets someone without an account connect a channel
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.
Request body
application/json
providerclientIdredirectUrl{
"provider": "string",
"clientId": "string",
"redirectUrl": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/channels/invites" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"provider":"string","clientId":"string","redirectUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/invites/{id} Stop a connect link from working
Parameters
idCode samples
cURL
curl -X DELETE "http://localhost:4000/api/v1/channels/invites/{id}" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/{channelId}/mentions Search accounts to mention from a channel
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.
Parameters
channelIdqueryCode samples
cURL
curl -X GET "http://localhost:4000/api/v1/channels/{channelId}/mentions?query=<query>" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}http://localhost:4000/api/v1 /channels/{id}/limits What a channel's platform allows and how much is used
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.
Parameters
idCode samples
cURL
curl -X GET "http://localhost:4000/api/v1/channels/{id}/limits" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Example
{}Option 1
{}Option 2
{}