Advocacy

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-advocacy"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/d754aba5-b70e-4501-900d-2d0af4c14189/social-card.svg?v=3e7ae33eec8b" alt="Advocacy" width="600" height="315"></a>
GET http://localhost:4000/api/v1/advocacy/stories

List advocacy stories

Parameters

programId
string
query
required
status
string
query
draft | published | archived

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/advocacy/stories?programId=<programId>" \
  -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/advocacy/stories

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

Request body

application/json
id
string
programId
string
required
topicId
string
= null
title
string
required
url
string
= null
mediaId
string
= null
note
string
segments
string[]
= []
shareFrom
string
= null
shareUntil
string
= null
disclosure
string
= null
lockText
boolean
= false
texts
object[]
= []
Show child parameters
network
string
required
linkedin | x | facebook | threads | bluesky | mastodon
text
string
required
{
  "id": "string",
  "programId": "string",
  "topicId": null,
  "title": "string",
  "url": null,
  "mediaId": null,
  "note": "",
  "segments": [],
  "shareFrom": null,
  "shareUntil": null,
  "disclosure": null,
  "lockText": false,
  "texts": []
}

Code samples

cURL
curl -X POST "http://localhost:4000/api/v1/advocacy/stories" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"string","programId":"string","topicId":null,"title":"string","url":null,"mediaId":null,"note":"","segments":[],"shareFrom":null,"shareUntil":null,"disclosure":null,"lockText":false,"texts":[]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{}
Option 1
{}
Option 2
{}
GET http://localhost:4000/api/v1/advocacy/leaderboard

Advocacy leaderboard: points, shares and clicks per advocate

Parameters

programId
string
query
required
from
string
query
to
string
query

Code samples

cURL
curl -X GET "http://localhost:4000/api/v1/advocacy/leaderboard?programId=<programId>" \
  -H "Authorization: Bearer $API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

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