POST
/
workspaces
curl --request POST \
  --url https://api.contas.rdstationmentoria.com.br/rest/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "legal_entity",
  "site": null,
  "customer": {
    "id": "<string>",
    "token": "<string>"
  }
}'
{
  "workspace": {
    "id": "<string>",
    "type": "legal_entity",
    "name": "<string>",
    "picture": null,
    "site": null,
    "createdBy": null,
    "updatedBy": null,
    "createdAt": "2025-07-04T18:19:21.205Z",
    "updatedAt": "2025-07-04T18:19:21.205Z"
  },
  "membership": {
    "id": "<string>",
    "workspaceId": "<string>",
    "userId": "<string>",
    "role": "owner",
    "createdBy": null,
    "updatedBy": null,
    "createdAt": "2025-07-04T18:19:21.206Z",
    "updatedAt": "2025-07-04T18:19:21.206Z"
  },
  "customer": {
    "id": "<string>",
    "token": "<string>",
    "completed": false,
    "contactId": null,
    "createdBy": null,
    "updatedBy": null,
    "workspaceId": "<string>",
    "createdAt": "2025-07-04T18:19:21.206Z",
    "updatedAt": "2025-07-04T18:19:21.206Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.

POST
/
workspaces
curl --request POST \
  --url https://api.contas.rdstationmentoria.com.br/rest/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "type": "legal_entity",
  "site": null,
  "customer": {
    "id": "<string>",
    "token": "<string>"
  }
}'
{
  "workspace": {
    "id": "<string>",
    "type": "legal_entity",
    "name": "<string>",
    "picture": null,
    "site": null,
    "createdBy": null,
    "updatedBy": null,
    "createdAt": "2025-07-04T18:19:21.205Z",
    "updatedAt": "2025-07-04T18:19:21.205Z"
  },
  "membership": {
    "id": "<string>",
    "workspaceId": "<string>",
    "userId": "<string>",
    "role": "owner",
    "createdBy": null,
    "updatedBy": null,
    "createdAt": "2025-07-04T18:19:21.206Z",
    "updatedAt": "2025-07-04T18:19:21.206Z"
  },
  "customer": {
    "id": "<string>",
    "token": "<string>",
    "completed": false,
    "contactId": null,
    "createdBy": null,
    "updatedBy": null,
    "workspaceId": "<string>",
    "createdAt": "2025-07-04T18:19:21.206Z",
    "updatedAt": "2025-07-04T18:19:21.206Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.