Envia una notificacion push al cliente

Scope requerido: notificaciones:write

Escritura: header Idempotency-Key obligatorio.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Envia una notificacion push al cliente

Scope requeridonotificaciones:write
MétodoPOST /ext/v3/clientes/{uid}/notificaciones
Idempotenciaheader Idempotency-Key obligatorio

Path

ParámetroTipoRequeridoDescripción
uidstringsíUID del cliente (user_fireb_uid)

Body

ParámetroTipoRequeridoDescripción
titulostringsí
mensajestringsí

Ejemplo

curl -X POST 'https://api3.clau.io/ext/v3/clientes/uid-7/notificaciones' \
  -H 'apikey: ck_1_...' \
  -H 'Idempotency-Key: 6f1e2d3c-0001' \
  -H 'Content-Type: application/json' \
  -d '{"titulo":"Tienes un regalo","mensaje":"Pasa hoy por tu cafe gratis"}'

Respuesta 200

{
  "codigoRespuesta": 0,
  "msj": "Exito",
  "data": "…",
  "meta": {
    "requestId": "5f1c…",
    "appId": 1,
    "scope": "notificaciones:write"
  }
}

Errores: 401 key inválida (9501), 403 sin scope (9503, meta.requiredScope), 400 parámetros (details), 409 idempotencia, 422 regla de negocio (meta.legacy), 429 límite de tasa. Agregue ?help=true para la ayuda en texto plano.

Path Params
string
required
length ≤ 128

UID del cliente (user_fireb_uid)

Query Params
boolean

Con true devuelve la ayuda del endpoint en texto plano.

Body Params
string
required
length ≤ 120
string
required
length ≤ 500
Headers
string
required
length between 8 and 128

Identificador unico de la operacion (8 a 128 caracteres, p. ej. un UUID). Repetir con el mismo cuerpo devuelve la respuesta original; con otro cuerpo responde 409.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json