Skip to main content
GET
/
v1
/
org
Get organizations
curl --request GET \
  --url https://api.twine.se/v1/org \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "org_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
      "custom_properties": [
        {
          "domain": "employee",
          "id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
          "property": "shoe_size",
          "type": "enum",
          "description": "The size of the employee's shoes",
          "list": false,
          "reference_domain": "employee"
        }
      ],
      "delete_protection": true,
      "delete_protection_disabled_at": "2021-06-01T12:00:00Z",
      "name": "AcmeCorp Inc.",
      "owner_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
      "parent_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
      "roles": [
        {
          "id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
          "name": "Admin Role",
          "tokens": [
            {
              "exp": 1672531199,
              "jti": "<string>",
              "jwt": "s3cr3t-t0k3n",
              "typ": "access"
            }
          ]
        }
      ],
      "vat": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b"
    }
  ],
  "pagination": {
    "end_cursor": "<string>",
    "has_next_page": true,
    "has_previous_page": true,
    "start_cursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Query Parameters

pagination
CursorPagination · object

Cursor pagination

Response

Organization list Response

A response object with paginated list of organizations, including pagination data

data
Organization · object[]
required
pagination
CursorPaginationResult · object
required

Cursor pagination result