Create
Path Parameters
projectId*string
Header Parameters
idempotency-key?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
personIds?array<string>|null
distinctIds?array<string>|null
title*string
Length
1 <= lengthbody*string
Length
1 <= lengthdata?|null
sound?string|null
badge?|null
priority?|null
ttlSeconds?|null
channelId?string|null
collapseId?string|null
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/projects/string/push-notifications" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "body": "string" }'{ "id": "string", "status": "pending", "deviceCount": -9007199254740991, "unresolvedDistinctIds": [ "string" ]}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "conflict", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}