Skip to content
GitmoapAPIBeta
Schema

CreateAccessTokenRequest

Request body for minting an access token. Scopes may be individual {domain}:{verb} strings or convenience bundles (read_api, …).

Shape

  • namestring
  • scopesarray of string
  • expires_in_daysinteger · int32 or nulloptional0–∞Days until the token expires. Omit for a non-expiring token.
  • resourceTokenResourceBinding or nulloptionalOptional resource binding restricting the token to one subtree.

Example

Synthesized example
{
"name": "payments-api",
"scopes": [
"scopes-eb7a"
],
"expires_in_days": 57,
"resource": {
"scope_id": "7c76522c-042e-475c-80cc-e8d25b9280b1",
"scope_type": "group"
}
}

Graph

Used inside

No schema contains this one.

Used by