User Endpoints
Create User
Create user within workspace
POST
/
users
curl --request POST \
--url https://api.pagecall.com/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "external_user_102932",
"name": "scotty",
"profile_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
"default_member_type": "guest"
}'
{
"user": {
"user_id": "external_user_102932",
"name": "scotty",
"profile_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
"default_member_type": "guest",
"access_token": "TfowtRYBs0E_trzoTaCmAXKzB1JxDDhi",
"created_at": "2023-01-01T01:00:00.000Z",
"updated_at": "2023-01-01T01:00:00.000Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Successful operation
The response is of type object
.
curl --request POST \
--url https://api.pagecall.com/v1/users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "external_user_102932",
"name": "scotty",
"profile_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
"default_member_type": "guest"
}'
{
"user": {
"user_id": "external_user_102932",
"name": "scotty",
"profile_url": "https://www.gravatar.com/avatar/00000000000000000000000000000000?d=mp&f=y",
"default_member_type": "guest",
"access_token": "TfowtRYBs0E_trzoTaCmAXKzB1JxDDhi",
"created_at": "2023-01-01T01:00:00.000Z",
"updated_at": "2023-01-01T01:00:00.000Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.