cURL
curl --request POST \ --url https://api.example.com/api/v1/workspaces \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "billingAccountEmail": "[email protected]", "firstMemberId": "<string>" } '
{ "name": "<string>", "memberships": [ { "userId": "<string>", "workspaceId": "<string>", "privileges": [ "ROLE_WORKSPACE_OWNER" ], "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "accessTokens": [] } ], "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1 - 128
Successful Response
Show child attributes
ROLE_WORKSPACE_OWNER
ROLE_WORKSPACE_ADMIN
ROLE_WORKSPACE_MEMBER
Was this page helpful?