Create a new customer
Creates a new OEM customer record in your partner account.
Best practices:
- Use your own customer/tenant ID as the
externalIdfor easy cross-referencing - The
externalIdmust be unique across your account - You can assign keysets during creation or add them later via the assign keysets endpoint
| Header Parameters |
|---|
PubNub-Version string — REQUIREDPossible values: [ |
| Request Body — REQUIRED |
|---|
externalId maxLength(255) — REQUIREDPossible values: length ≤ 255, Value must match regular expression A unique external identifier for the customer (URL-safe alphanumeric, hyphens, and underscores) |
keysetIds number[]Optional array of keyset IDs to assign to the customer upon creation |
name maxLength(255) — REQUIREDPossible values: length ≤ 255 The display name for the customer (max 255 characters) |
| Responses | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
200Success
| ||||||||||
400Bad Request Error
| ||||||||||
401UnauthorizedError
| ||||||||||
403ForbiddenError
| ||||||||||
500InternalErrorError
|
* required
PubNub-Version*2026-02-09]* required
externalId*≤ 255 charsPattern: ^[a-zA-Z0-9_-]+$
keysetIdsArray items:
itemsname*≤ 255 chars
resultstatusCodeerrorEnum (1 values)
View all values
"BadRequest"messageArray items:
itemsstatusCodeerrorEnum (1 values)
View all values
"Unauthorized"messageArray items:
itemsstatusCodeerrorEnum (1 values)
View all values
"Forbidden"messageArray items:
itemsstatusCodeerrorEnum (1 values)
View all values
"InternalError"messageArray items:
items