Passer au contenu principal
GET
/
client-grants
/
{id}
/
organizations
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.clientGrants.organizations.list("id", {
        from: "from",
        take: 1,
    });
}
main();
[
  {
    "id": "<string>",
    "name": "organization-1",
    "display_name": "Acme Users",
    "branding": {
      "logo_url": "<string>",
      "colors": {
        "primary": "<string>",
        "page_background": "<string>"
      }
    },
    "metadata": {},
    "token_quota": {
      "client_credentials": {
        "enforce": true,
        "per_day": 1073741824,
        "per_hour": 1073741824
      }
    }
  }
]

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

ID of the client grant

Paramètres de requête

page
integer

Page index of the results to return. First page is 0.

Plage requise: x >= 0
per_page
integer

Number of results per page. Defaults to 50.

Plage requise: 1 <= x <= 100
include_totals
boolean

Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).

from
string

Optional Id from which to start selection.

take
integer

Number of results per page. Defaults to 50.

Plage requise: 1 <= x <= 100

Réponse

Organizations successfully retrieved.

id
string<organization-id>

Organization identifier.

Maximum string length: 50
name
string<organization-name>
défaut:organization-1

The name of this organization.

Required string length: 1 - 50
display_name
string
défaut:Acme Users

Friendly name of this organization.

Required string length: 1 - 255
branding
object

Theme defines how to style the login pages.

metadata
object

Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 25 metadata properties allowed.

token_quota
object