Docs
get https://api.console.iugu.com/workspaces

List user workspaces.

List the current user's worskspaces and their information.

Sem ações implementadas definidas

Request

Response

200

Success

current
String

The ID of the current workspace.

Ex: abcd1234efgh5678ijkl

current_locale
String

The current locale of the user.

Ex: pt-BR

workspaces
Array of objects

List of workspaces available to the user.

id
String

The unique identifier of the workspace.

Ex: 2hjQ4fyIJuqcVcJOJjuh9S

name
String

The name of the workspace.

Ex: Iugu IP SA

logo
String

The logo of the workspace, if available.

Ex: iugu.com/workspace_logo.png

time_zone
String

The time zone of the workspace.

Ex: America/Sao_Paulo

time_zone_offset
String

The time zone offset of the workspace.

Ex: -03

Example
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "current": "abcd1234efgh5678ijkl",
  "current_locale": "pt-BR",
  "workspaces": [
    {
      "id": "2hjQ4fyIJuqcVcJOJjuh9S",
      "name": "Iugu IP SA",
      "logo": "iugu.com/workspace_logo.png",
      "time_zone": "America/Sao_Paulo",
      "time_zone_offset": "-03"
    }
  ]
}

401

Unauthorized

error
String

Error type.

Ex: JWT::ExpiredSignature

error_description
String

Error description.

Ex: Signature has expired

Example
1
2
3
4
{
  "error": "JWT::ExpiredSignature",
  "error_description": "Signature has expired"
}

404

Workspace Not Found

error_description
String

Error message

Ex: Workspace not Found

Example
1
2
3
{
  "error_description": "Workspace not Found"
}