Users
Create user
Creates a new User object.
POST
/
users
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Surge-Account
string
requiredThe account ID
Body
application/json
POST body for creating a user
first_name
string
requiredThe 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.