Channels

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-channels"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/4567b683-eed7-495b-8b15-33131f19154d/social-card.svg?v=3e7ae33eec8b" alt="Channels" width="600" height="315"></a>
GET http://localhost:4000/api/v1/channels/{channelId}/status

Live state of a channel's connection

Parameters

channelId
string
path
required

Code 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST 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

channelId
string
path
required

Code 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
POST 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
provider
string
required
clientId
string
redirectUrl
string
{
  "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

200 OK
Example
{}
Option 1
{}
Option 2
{}
DELETE http://localhost:4000/api/v1/channels/invites/{id}

Stop a connect link from working

Parameters

id
string
path
required

Code 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET 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

channelId
string
path
required
query
string
query
required

Code 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET 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

id
string
path
required

Code 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

200 OK
Example
{}
Option 1
{}
Option 2
{}
Updated