NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Authentication/API Key (Machine 2 Machine) → Create API Key

AI-generated

Summary

Creates a new Machine-to-Machine API key in NetSapiens.

Inputs

  • refreshOptions — Toggle to bypass cached dropdown values and fetch fresh options.
  • CreateApikey__body (required) — JSON body containing the API key configuration to create.

Output shape

a single API key resource

Returns the created API key details (e.g., id, name, secret) on success; on failure returns an error object.

Examples

Example 1: Add a new API key with default settings

{"refreshOptions": false, "CreateApikey__body": {"name": "MyWorkflowKey", "expiresIn": 0}}

Links

Discussion