Share feedback
Answers are generated based on the documentation.

Schema

accessToken

Type: object

client_id

Type: string

All schema constraints and annotations
{
  "example": "HUB",
  "type": "string"
}
created_at

Type: string

All schema constraints and annotations
{
  "example": "2021-07-20T12:00:00.000000Z",
  "type": "string"
}
creator_ip

Type: string

All schema constraints and annotations
{
  "example": "127.0.0.1",
  "type": "string"
}
creator_ua

Type: string

All schema constraints and annotations
{
  "example": "some user agent",
  "type": "string"
}
expires_at

Type: string | null

All schema constraints and annotations
{
  "example": "2021-10-28T18:30:19.520861Z",
  "format": "date-time",
  "type": [
    "string",
    "null"
  ]
}
generated_by

Type: string

All schema constraints and annotations
{
  "example": "manual",
  "type": "string"
}
is_active

Type: boolean

All schema constraints and annotations
{
  "example": true,
  "type": "boolean"
}
last_used

Type: string | null

All schema constraints and annotations
{
  "example": null,
  "type": [
    "string",
    "null"
  ]
}
scopes

Type: array

Array item

Type: string

All schema constraints and annotations
{
  "type": "string"
}
All schema constraints and annotations
{
  "example": [
    "repo:read"
  ],
  "items": {
    "type": "string"
  },
  "type": "array"
}
token

Type: string

Token value returned on creation. Later responses redact the value as ***.
All schema constraints and annotations
{
  "description": "Token value returned on creation. Later responses redact the value as ***.",
  "example": "a7a5ef25-8889-43a0-8cc7-f2a94268e861",
  "type": "string"
}
token_label

Type: string

All schema constraints and annotations
{
  "example": "My read only token",
  "type": "string"
}
uuid

Type: string

All schema constraints and annotations
{
  "example": "b30bbf97-506c-4ecd-aabc-842f3cb484fb",
  "type": "string"
}
All schema constraints and annotations
{
  "properties": {
    "client_id": {
      "example": "HUB",
      "type": "string"
    },
    "created_at": {
      "example": "2021-07-20T12:00:00.000000Z",
      "type": "string"
    },
    "creator_ip": {
      "example": "127.0.0.1",
      "type": "string"
    },
    "creator_ua": {
      "example": "some user agent",
      "type": "string"
    },
    "expires_at": {
      "example": "2021-10-28T18:30:19.520861Z",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "generated_by": {
      "example": "manual",
      "type": "string"
    },
    "is_active": {
      "example": true,
      "type": "boolean"
    },
    "last_used": {
      "example": null,
      "type": [
        "string",
        "null"
      ]
    },
    "scopes": {
      "example": [
        "repo:read"
      ],
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "token": {
      "description": "Token value returned on creation. Later responses redact the value as ***.",
      "example": "a7a5ef25-8889-43a0-8cc7-f2a94268e861",
      "type": "string"
    },
    "token_label": {
      "example": "My read only token",
      "type": "string"
    },
    "uuid": {
      "example": "b30bbf97-506c-4ecd-aabc-842f3cb484fb",
      "type": "string"
    }
  },
  "type": "object"
}