Create Subscriber
POST/resources/subscribers
Create Subscriber
Request
- application/json
Body
required
Possible values: >= 8 characters
and <= 72 characters
Password of the Subscriber.
Email of the Subscriber.
First name of the Subscriber.
Last name of the Subscriber.
Display name of the Subscriber.
Job title of the Subscriber.
Timezone of the Subscriber.
Country of the Subscriber.
Region of the Subscriber.
Company name of the Subscriber.
Responses
- 201
- 401
- 404
- 422
The request has succeeded and a new resource has been created as a result.
- application/json
- Schema
- Example (from schema)
Schema
Unique ID of the request.
Unique ID of the project.
Display name of the Subscriber.
Possible values: [subscriber
]
Type of the resource.
Date and time when the resource was created.
Date and time when the resource was updated.
subscriber
object
required
Unique ID of the Subscriber.
Email of the Subscriber.
First name of the Subscriber.
Last name of the Subscriber.
Display name of the Subscriber.
Job title of the Subscriber.
Timezone of the Subscriber.
Country of the Subscriber.
Region of the Subscriber.
Company name of the Subscriber.
{
"id": "d369a402-7b43-4512-8735-9d5e1f387814",
"project_id": "d369a402-7b43-4512-8735-9d5e1f387814",
"display_name": "John Doe",
"type": "subscriber",
"created_at": "2024-10-17T14:14:53Z",
"updated_at": "2024-10-17T14:14:53Z",
"subscriber": {
"id": "d369a402-7b43-4512-8735-9d5e1f387814",
"email": "johndoe@example.com",
"first_name": "John",
"last_name": "Doe",
"display_name": "John Doe",
"job_title": "Software Engineer",
"timezone": "America/New_York",
"country": "United States",
"region": "New York",
"company_name": "SignalWire"
}
}
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": "password",
"url": "https://developer.signalwire.com/rest/signalwire-rest/overview/error-codes#invalid_parameter"
}
]
}