POST
/
users

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Surge-Account
string
required

The account ID

Body

application/json

POST body for creating a user

first_name
string
required

The user's first name.

last_name
string

The user's last name.

metadata
object

Set of key-value pairs that will be stored with the user.

photo_url
string

URL of a photo to be used as the user's avatar.

Response

201 - application/json

Response schema for single user

first_name
string

The user's first name.

id
string

Unique identifier for the object.

last_name
string

The user's last name.

metadata
object

Set of key-value pairs that will be stored with the user.

photo_url
string

URL of a photo to be used as the user's avatar.