Discord integration

Create a replica Discord integration

Integrates a replica to Discord. The default Sensay Discord integration will run a bot for you until you delete the integration.

post/v1/replicas/{replicaUUID}/integrations/discord

Request

  • Base URL: https://api.sensay.io
  • URL: https://api.sensay.io/v1/replicas/{replicaUUID}/integrations/discord
  • Auth: one of:
    • API key in header X-ORGANIZATION-SECRET and API key in header X-USER-ID and API key in header X-USER-ID-TYPE
    • API key in header X-ORGANIZATION-SECRET

Path parameters

replicaUUIDstring uuid required

The replica unique identifier (UUID)

Example:03db5651-cb61-4bdf-9ef0-89561f7c9c53

Headers

X-API-Versionstring
Example:2025-03-25
Content-Encoding'gzip'

Content encoding for request body compression. Optional - when used, client is responsible for gzipping and sending binary data.

Request body

discordTokenstring required

A Discord Token is a unique token that can be attained from the Discord Developer Portal. It is used to connect the discord integration to the replica.

Example request

{
  "discordToken": "MTI5NDMSaMDKWjk3Mjk1OTgyNw.GCxRSO.rpnw8-GreFn4Fst5dufQ2y1On_XgzbvTDnsQ"
}

Response

Discord integration created successfully

successboolean required

Indicates the status of the request

Changes

No recorded changes to this operation across all 1 revision of this API.