Propose routing a technical question or bug report to GitHub or Slack
POST /api/v1/actions/dev-route
For developer relations: one unanswered post, with its quote and link, as a GitHub issue (to github; needs the repository and a token an owner connected: get_action_settings says whether they are) or as a message (to slack, discord, teams or email, with target). Refuses a post the brand already answered, a bot's post and a post that already has an issue proposed. Nothing is created or sent until a person approves it in the app.
A full-access key (ss_sk_…), or an editor or owner signed in.
Request body
JSON, sent with Content-Type: application/json.
| Name | Type | Description |
|---|---|---|
mention_id required |
string | The post (a mention id or an account post id). |
to required |
string | One of: github email slack discord teams |
target |
string up to 500 characters |
For a message: an address, a Slack channel ID or webhook address, or a Discord or Teams webhook address. |
force |
boolean | Route a post that does not read as a technical thread. |
Returns
{ data: Action, approval }
Example
curl -X POST "https://sniffington.com/api/v1/actions/dev-route" \
-H "Authorization: Bearer $SCOUT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mention_id":"…","to":"github"}'