uuid
POST1 積分Returns a batch of cryptographically random UUIDs. The same input always produces the same count, but the values themselves are unique per call.
端點
POST https://x114.org/api/v1/uuid請求體
以 JSON 形式放在 POST 請求體中。
| Name | Type | Required | Description |
|---|---|---|---|
| count | number | optional | How many UUIDs to generate (1-500). Defaults to 1. |
| uppercase | boolean | optional | Return uppercase hex digits. Defaults to false. |
響應體
成功時返回的 JSON(HTTP 200)。
| Name | Type | Required | Description |
|---|---|---|---|
| ok | boolean | required | True on success. |
| count | number | required | The number of UUIDs returned. |
| uppercase | boolean | required | Whether the output is uppercased. |
| uuids | string[] | required | The generated UUIDs in canonical 8-4-4-4-12 form. |
示例
curl -X POST https://x114.org/api/v1/uuid \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"count":3,"uppercase":false}'