Create a new member
The playground uses your live account
Create a member with the given data in your team. Prefer using the batch import endpoint for creating multiple members at once as it is more efficient.
BasicAuthAuthorizationBasic <token>Use the API key as the username and leave the password empty.
The request body for creating a member.
application/json- body
The request body for creating a member.
name?|The member's full name
displayName?|The name displayed for the member in the UI
email?|Member's email
linkedDriverId?|The existing driver to link the member to
role*stringThe operational role given to the member.
"admin""depot-manager""dispatcher""read-only"depots?array<>|The depot IDs associated with the member in the format depots/<id>, duplicates will be ignored. If set to null or not provided, the team's Main depot will be set as member depot.
The created member
application/json- response
The created member
id*stringThe member id, in the format members/<id>
^members\/[a-zA-Z0-9---_]{1,50}$name*|The name of the member.
email*|The email of the member.
phone*|The phone number of the member.
linkedDriverId*|The driver linked to the member (where applicable).
displayName*|The display name of the member.
active*booleanWhether the member membership is active or paused.
depots*array<>Depots associated with the member.
roles*array<>The role(s) given to the member.
curl -X POST 'https://api.spoke.com/public/v1/members' \ -H 'Content-Type: application/json' \ -d '{ "role": "admin"}'{ "id": "string", "name": null, "email": null, "phone": null, "linkedDriverId": "string", "displayName": null, "active": true, "depots": [ "string" ], "roles": [ "owner" ]}