Skip to main content
POST
/
notification
/
send
Enviar notificación
curl --request POST \
  --url https://api.goil.com/api/v1/external/notification/send \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": {
    "title": "<string>",
    "body": "<string>",
    "url": "<string>",
    "sendWhatsApp": true
  },
  "phones": [
    "<string>"
  ],
  "accountIDs": [
    "<string>"
  ],
  "accountTypeIDs": [
    "<string>"
  ],
  "hiddenFromList": false,
  "senderAccountId": "<string>",
  "metadata": {
    "sectionId": "<string>"
  }
}
'
{
  "data": {
    "msg": "<string>"
  }
}

Body

application/json

Exactamente uno de phones, accountIDs o accountTypeIDs debe estar presente

message
object
required
phones
string[]

Lista de teléfonos (solo uno de phones, accountIDs o accountTypeIDs)

accountIDs
string[]

IDs de cuentas

accountTypeIDs
string[]

IDs de tipo de cuenta (envío masivo por tipo)

hiddenFromList
boolean
default:false
senderAccountId
string
metadata
object

Response

OK

data
object