Generate IDs
1 min
POST
{baseUrl}/idgen/namespaces/{name}/ids
namestring<p>The namespace name (<code>^[a-z][a-z0-9._-]{0,63}$</code>).</p>
acceptstringGenerated from available response content types
Idempotency-Keystring<p>Makes retries safe: a repeat with the same key within 24 hours returns the first response byte for byte. 5xx responses are not stored, so retrying after one really retries.</p>
bodyobjectHow many IDs to generate.
201The new IDs.
400<p>INVALID_REQUEST: a malformed path or body value, or <code>count</code> outside 1-1000.</p>
401<p>UNAUTHENTICATED: missing, expired or invalid credentials.</p>
403<p>FORBIDDEN: the caller lacks the <code>idgen.ids.generate</code> permission, or its tenant or site scope does not match.</p>
404<p>NAMESPACE_NOT_FOUND: no such namespace and no template of that name.</p>
409<p>NAMESPACE_DISABLED, NO_ACTIVE_VERSION or SEQUENCE_EXHAUSTED (configuration problems), or IDEMPOTENCY_KEY_IN_USE (retryable: the first request with this key is still running).</p>
422<p>IDEMPOTENCY_KEY_REUSED: the key was used with a different request.</p>
500<p>INTERNAL_ERROR: an unexpected failure. Retry once, then report it with the <code>x-request-id</code>.</p>
503<p>AUTH_UNAVAILABLE or BACKEND_UNAVAILABLE (both retryable): retry with backoff.</p>
curl --request POST \
--url http://localhost:8080/idgen/namespaces/{name}/ids \
--header 'accept: application/json'