Pular para o conteúdo principal
GET
/
workspaces
/
current
Obter workspace
curl --request GET \
  --url https://api.contas.rdstationmentoria.com.br/rest/workspaces/current \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "type": "legal_entity",
  "name": "<string>",
  "picture": null,
  "site": null,
  "createdBy": null,
  "updatedBy": null,
  "createdAt": "2025-07-21T17:52:50.049Z",
  "updatedAt": "2025-07-21T17:52:50.049Z"
}

Authorizations

Authorization
string
header
required

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

Response

Successful response

id
string
required

Identificador único do workspace

type
enum<string>
required

Tipo de workspace: pessoa jurídica ou física

Opções disponíveis:
legal_entity,
individual
name
string
required

Nome do workspace

picture
object | null

Imagem do workspace (opcional)

site
string | null

Site do workspace (opcional)

createdBy
string | null

ID do usuário que criou o registro

updatedBy
string | null

ID do usuário que atualizou o registro

createdAt
string<date-time>
default:2025-07-21T17:52:50.049Z

Data de criação

updatedAt
string<date-time>
default:2025-07-21T17:52:50.049Z

Data da última atualização