Skip to main content
POST
Connect a platform with its credentials

Request contract

  • Method and path: POST /apis/v1/social/messaging/connect/{platform}/credentials
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/messaging/connect/{platform}/credentials
  • platform: path; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

platform
string
required

Body

application/json

The members each platform needs: whatsapp: accessToken, wabaId, phoneNumberId. They are passed to the platform's integration once; AIsa neither stores nor returns them.

accessToken
string

WhatsApp: a permanent system user access token with the whatsapp_business_management and whatsapp_business_messaging permissions.

Minimum string length: 1
phoneNumberId
string

WhatsApp: the phone number id of the number to connect.

Minimum string length: 1
pin
string

WhatsApp: the six-digit two-step verification PIN of the number, when it has one.

Minimum string length: 1
profileId
string

Your social profile (prf_...); the default profile when omitted.

Pattern: ^prf_[0-9A-Za-z]+$
wabaId
string

WhatsApp: the WhatsApp Business Account id.

Minimum string length: 1

Response

Success

connectedAt
string<date-time>
required
displayName
string | null
required
id
string
required
Pattern: ^msc_[0-9A-Za-z]+$
platform
enum<string>
required
Available options:
whatsapp,
google,
microsoft
profileId
string
required

The social profile (prf_...) the connection was made under.

status
enum<string>
required
Available options:
active,
needs_reconnect,
disconnected
syncedAt
string<date-time> | null
required
username
string | null
required