Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Resource → Create an access token for a resource.

AI-generated

Summary

Create an access token for a specified resource by sending a POST request with an optional JSON body to the resource's access-token endpoint.

Inputs

  • Resource ID (required) — The unique identifier of the resource for which the access token is to be created.
  • Body — A JSON object containing parameters for the access token creation, such as 'validForSeconds', 'title', and 'description'.
  • Raw Response — Boolean option to return the full response data as received from the API instead of splitting array responses into individual items.

Output shape

a single JSON object representing the created access token or the full response object if 'Raw Response' is set to true

By default, the response JSON object contains the details of the newly created access token. If 'Raw Response' is enabled, the operation returns the full raw response as received from the API. If the response includes an array, it is either output as one item per array element or as a single item depending on this option.

Discussion