Skip to content

Integrations

Inspect Slack and Discord connections, map their channels to projects, connect Better Stack, and read integration events.

What the API covers

The API lists connections, inspects them, maps channels to projects, and reads events. Connecting Slack or Discord, and removing a connection, stay in Settings in the app. Better Stack can be connected, configured, mapped, and disconnected through the API. Steamworks, Perforce, GitHub and similar integrations, backfill imports, identity linking, and Figma are not in the API yet. Viewers get 403 on every route.

Endpoints

Map a channel

  • Find the connection ID with GET /integrations, and the platform channel ID in Slack or Discord.
  • Post the mapping with the project, channel, and direction. Add outboundEvents to choose which events go to the channel.
  • For inbound or both, add inboundConfig. Keep the ETag from the response to guard later changes with If-Match.
Shell
curl --request POST 'https://projectfeed.app/api/v1/integrations/conn_abc123/mappings' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{ "projectId": "product-launch", "channelId": "C0123456789", "channelName": "launch-updates", "direction": "outbound", "outboundEvents": ["task.completed"] }'

Connect Better Stack

  • Create an Uptime API token in Better Stack. Post it to /integrations/betterstack. Add teamName for a global token.
  • List sources with GET /integrations/betterstack/sources and map each monitor, heartbeat, or status page to a project.
  • For a status page, get the URL from POST /integrations/betterstack/status-page-url and paste it into a webhook subscription on that page. Better Stack has no API for status page subscriptions.

Every incident start, acknowledgement, resolution, reopening, and comment appears in the project's activity. With createTasks on, a new or reopened incident also becomes a task: acknowledging it moves the task to In progress, resolving it moves the task to Done, and comments are added to the task. With writeBack on, moving the task changes the incident in Better Stack.

Shell
curl --request POST 'https://projectfeed.app/api/v1/integrations/betterstack/mappings' \
  --header 'Authorization: Bearer pf_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{ "projectId": "platform", "sourceKind": "monitor", "sourceId": "2049117" }'

Inbound settings

inboundConfig is an object. Three fields are required when the direction is inbound or both.

autoInterval

Required for inbound. How often channel messages are picked up: 4h, 8h, 12h, daily, or manual_only.

targetProjectId

Required for inbound. The ID of the project that receives the posts.

defaultPostStatus

Required for inbound. draft or published for the posts that are created.

triggerEmoji

An emoji reaction that sends a message in.

triggerEmojiRequireRole

Who can use the emoji: any, admin, or project_member.

triggerEmojiCooldownMinutes

Minutes before the same emoji can trigger again.

triggerCommand

true to allow a command to send a message in.

includeMedia

true to bring attachments in with the message.

maxAttachmentSizeMB, maxAttachmentsPerMessage, totalBufferQuotaMB

Limits on attachment size, attachments per message, and the total held before posting.

requireAuthorProjectMembership

true to accept only messages from people who are members of the project.

Fix integration problems

403 Forbidden

Viewers get 403 on every route here. Owners and admins can always map a project. For everyone else, the channel mapping policy in the workspace's admin controls decides: admin_only, project_admin, or all_members. Moving a mapping to another project is always for owners and admins.

400 on a new mapping

The channel is already mapped to that project, the project is not in this workspace, publicLinks was sent without outbound, or the workspace does not allow public portals and announcements.

The connection is not active

Mapping needs an active connection. A revoked, expired, or gateway_down status means the connection must be reconnected in Settings.

403 or plan error on a mapping

The workspace plan must include integrations.

400 on events

A member who is not an owner or admin must send projectId, or the cursor is not one a previous response returned.

412 Precondition failed

The mapping changed since the updatedAt or ETag you sent. Read it again and retry.

See API errors and Integrations in the app.

Image preview
100%