hornet icon

hornet

Interact with hornet API

Actions452

Access Token → Auth Access Token Post

AI-generated

Summary

Generate a new access token by sending a POST request with the token's name and optional expiration date, authenticated by a required APP ID header.

Inputs

  • APP ID (required) — A unique identifier specific to your app issued by the API provider; sent as an HTTP header 'APP-ID'.
  • Name (required) — The name of the access token to be created; sent in the request body.
  • Expiration Date — Optional expiration date of the access token; must not be in the past; sent in the request body.

Output shape

a single object representing the created access token, including its properties as returned by the API

The operation returns the created access token data as JSON. The API responds with an HTTP POST to the hornetsecurity endpoint under /api/v0 (base URL set in node). Request is authenticated by passing the APP ID in headers and the token details in the body.

Links

Discussion