List organizations

Retrieve a paginated list of organizations accessible to the authenticated user. This endpoint supports filtering by various criteria including organization ID, name, role assignments, and supports autocomplete functionality for search operations.

GET
/organizations
AuthorizationBearer <token>

In: header

Query Parameters

id?string

Filter resources by their unique identifier

name?string

Filter resources by their name or title

autocomplete?string

Search term for autocomplete functionality

limit?integer

How many items to return at one time (max 100)

Formatint64
next?string

Pagination token for retrieving the next page of results

order?string

Sort order for the results (ascending or descending)

Value in"asc" | "desc"
sortBy?string

Field name to sort the results by

role_name?string

Filter organizations by role name.

Response Body

application/json

application/json

application/json

curl -X GET "https://api-testnet.dual.network/organizations"
{
  "next": "string",
  "organizations": [
    {
      "id": "string",
      "fqdn": "string",
      "name": "string",
      "image": {
        "id": "string",
        "name": "string",
        "type": "string",
        "url": "string",
        "hash": "string",
        "is_public": true,
        "when_created": "2019-08-24T14:15:22Z"
      },
      "members": [
        {
          "id": "string",
          "wallet_id": "string",
          "email": "string",
          "invite_status": "pending",
          "role_name": "string",
          "when_created": "2019-08-24T14:15:22Z",
          "when_modified": "2019-08-24T14:15:22Z"
        }
      ],
      "roles": [
        {
          "id": "string",
          "name": "string",
          "description": "string",
          "permissions": [
            {
              "resource": "api-keys",
              "crud": {
                "read": true,
                "create": true,
                "update": true,
                "delete": true
              }
            }
          ],
          "when_created": "2019-08-24T14:15:22Z",
          "when_modified": "2019-08-24T14:15:22Z"
        }
      ],
      "description": "string",
      "account": {
        "address": "string",
        "public_key": "string",
        "type": "ED25519"
      },
      "when_created": "2019-08-24T14:15:22Z",
      "when_modified": "2019-08-24T14:15:22Z"
    }
  ]
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}