Skip to main content
POST
Create a new API key
Create a sub-key under your Waterfall account. Each key has a label, active status, and request rate limit. See API key management for how sub-keys fit into your integration.
Requires your master API key in the x-api-key header.

Label the integration

notes is required. Use a label that identifies where the key will be used.

Rate limit

If omitted, per_interval defaults to 50 requests per 60 seconds. It cannot exceed the master key’s per_interval. Set it explicitly when the master key’s limit is lower or you want a smaller limit for this integration. After creation, use List keys to review the account’s keys or Modify a key to change a sub-key’s settings.

Authorizations

x-api-key
string
header
required

To access the API, provide your API key in x-api-key.

Body

application/json

Create sub-key payload. notes is required. per_interval is optional; if omitted, the current implementation defaults to 50. The value cannot exceed the master key's per_interval.

Request payload to create a new sub API key.

notes
string
required

Notes associated with the API key.

Required string length: 1 - 250
Example:

"My API key"

per_interval
integer<int32>
default:50

Optional per-interval request limit for the new sub-key. If omitted, the current implementation defaults to 50. It cannot exceed the master key's per_interval.

Required range: x >= 1

Response

API key succesfully created.

API key record including metadata and rate-limit settings.

api_key
string<uuid>
required

A UUID.

Example:

"7d44db58-5de3-4e92-a2fb-8325d12c2e8b"

active
boolean | null
required

True if the API key is active, false otherwise.

Example:

true

notes
string
required

Notes associated with the API key.

Required string length: 1 - 250
Example:

"My API key"

master
boolean
required

True for the master key, false for sub-keys.

Example:

false

per_interval
integer<int32>
required

Requests allowed per interval.

Example:

30

interval_seconds
integer<int32> | null
required

Interval duration in seconds (always 60).

Example:

60