POST
/
v1
/
facebook
/
messages
curl --request POST \
  --url https://api.papercuts.ai/v1/facebook/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-User-Token: <api-key>' \
  --data '{
  "profileName": "<string>",
  "message": "<string>"
}'
{
  "status": "ok"
}

Authorizations

Authorization
string
header
required

Your Papercuts API Key

X-User-Token
string
header
required

User Token received while integrating end user accounts

Body

application/json
profileName
string
required

The profile name of the user to send the message to. For example, for the account with the URL 'https://www.facebook.com/BillGates/', the profile name would be 'BillGates'.

message
string
required

The message to send

Response

200
application/json
Message sent successfully
status
enum<string>
Available options:
ok,
error