Newsjacking API
2 endpoints. Every path is relative to the API base URL and needs a bearer token unless it is marked public. See the REST API overview for authentication, errors and pagination.
GET/v1/orgs/{orgId}/newsjacking/settings
Whether the newsjacking autopilot is on, its daily draft cap, and the story behind the last draft it made.
Path parameters
orgIdstring (uuid)required
Responses
200Whether the newsjacking autopilot is on, its daily draft cap, and the story behind the last draft it made.
dataobjectrequiredFields
enabledbooleanrequiredmaxDraftsPerDayintegerrequiredlastDraftAtstring | nullrequiredlastStoryTitlestring | nullrequired
curl -X GET "https://api.adventur.ai/v1/orgs/$ORG_ID/newsjacking/settings" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN"PUT/v1/orgs/{orgId}/newsjacking/settings
Turns the newsjacking autopilot on or off and sets how many drafts it may make a day (1-3). Drafts land in Review; nothing posts without approval.
Path parameters
orgIdstring (uuid)required
Request body application/json
enabledbooleanmaxDraftsPerDayinteger
Responses
200Turns the newsjacking autopilot on or off and sets how many drafts it may make a day (1-3). Drafts land in Review; nothing posts without approval.
dataobjectrequiredFields
enabledbooleanrequiredmaxDraftsPerDayintegerrequiredlastDraftAtstring | nullrequiredlastStoryTitlestring | nullrequired
curl -X PUT "https://api.adventur.ai/v1/orgs/$ORG_ID/newsjacking/settings" \ -H "Authorization: Bearer $ADVENTURAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'