Skip to content

Creating Workspace Members

Create members belonging to your workspace.

The create members endpoint allows you to create new members in your workspace.

Endpoint

MethodUrl
POST/v1.0/members

Request Parameters

email
string
required

The member's unique email.

given_name
string
required

The member's given name.

family_name
string
required

The member's family name.

phone_number
string

The member's phone number.

Sample Request

Copied
1curl -X POST 'https://api.worklayer.com/v1.0/members' \
2-H 'Authorization: Bearer {token}' \
3-d '{ "email": "tony@stark.com", "given_name": "Tony", "family_name": "Stark" }'

Response

An instance of member resource.

Sample Response

Copied
1{
2 "email": "tony@stark.com",
3 "user_id": "a6e5ea2f-7d96-4852-9f46-2383dfd572f7",
4 "create_time": "2022-04-11T15:18:00.701Z",
5 "update_time": "2022-04-11T15:18:00.701Z",
6 "custom_fields": []
7}

Errors

  1. Forbidden: API Client cannot create members.
  2. Unauthorized: API Client does not have valid credentials.
  3. BadRequest: Either required properties are missing, or there was a malformed request.
Last updated on October 6, 2022