Omni Link

Create subscriber

POST
/v1/subscribers/bulk

Bulk creates a subscribers entities, in the Omni-Link platform. The subscribers will be later used to receive notifications, and access notification feeds. Communication credentials such as email, phone number, and whatsapp number, could be later associated to this entity.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Request Body

application/json

newSubscribers*array<>
existingSubscribers?array<>
topics?array<string>

Response Body

application/json

curl -X POST "https://example.com/v1/subscribers/bulk" \  -H "Content-Type: application/json" \  -d '{    "newSubscribers": [      {}    ]  }'
{  "data": {    "_id": "string",    "firstName": "string",    "lastName": "string",    "email": "string",    "phone": "string",    "whatsappNumber": "string",    "locale": "string",    "subscriberId": "string",    "isOnline": true,    "lastOnlineAt": "string",    "_organizationId": "string",    "_environmentId": "string",    "deleted": true,    "createdAt": "string",    "updatedAt": "string",    "__v": 0  }}