Create Subscriber Token
POST/subscribers/tokens
Create a Subscriber Token
Request
- application/json
Body
required
A string that uniquely identifies the subscriber. Often it's an email, but can be any other string.
A unixtime (the number of seconds since 1970-01-01 00:00:00) at which the token should no longer be valid. Defaults to 'two hours from now'
Universal Unique Identifier.
Set or update the subscriber's password. Omit this field or pass an empty string if you don't want to update the password.
Set or update the first name of the subscriber.
Set or update the last name of the subscriber.
Set or update the display name of the subscriber.
Set or update the job title of the subscriber.
Set or update the time zone of the subscriber.
Set or update the country of the subscriber.
Set or update the region of the subscriber.
Set or update the company name of the subscriber.
Responses
- 200
- 401
- 404
- 422
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
Universal Unique Identifier.
Universal Unique Identifier.
{
"subscriber_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"token": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Access is unauthorized.
- application/json
- Schema
Schema
string
Possible values: [Unauthorized
]
The server cannot find the requested resource.
- application/json
- Schema
Schema
string
Possible values: [Not Found
]
Client error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
required
Error type.
Error code.
Error details.
Request parameter associated with this error.
Link to developer resource for this error.
{
"errors": [
{
"type": "validation_error",
"code": "missing_required_parameter",
"message": "Required parameter is missing",
"attribute": "reference",
"url": "https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes#invalid_parameter"
}
]
}