Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Access Token → Create an access token for a resource.

AI-generated

Summary

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

Inputs

  • Resource ID (required) — The unique identifier of the resource for which the access token will be created.
  • Body — JSON object representing the request body for creating the access token; may include properties like validForSeconds, title, and description.
  • Options.Raw Response — Boolean flag to return the full response data as a single item instead of splitting arrays into individual items.

Output shape

A single JSON object representing the created access token or the full response data if Raw Response option is enabled.

If the 'Raw Response' option is set to true, the operation returns the entire API response as one item. Otherwise, if the response is an array, items are output individually; if not, a single item is returned.

Examples

Example 1: Create an access token with expiration and title

Provide the Resource ID and JSON body with validForSeconds and title to generate an access token with validity period and descriptive title.

Discussion