POST /v2/functions/namespaces/{namespace_id}/keys

Creates a new access key for a serverless functions namespace. The access key can be used to authenticate requests to the namespace's functions. The secret key is only returned once upon creation.

To create an access key, send a POST request to /v2/functions/namespaces/{namespace_id}/keys.

Servers

Path parameters

Name Type Required Description
namespace_id String Yes

The ID of the namespace to be managed.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
name String Yes

The access key's name.

expires_in String No

The duration after which the access key expires, specified as a human-readable duration string in the format <int>h (hours) or <int>d (days). Minimum value is 1h. If omitted, the key will never expire.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.