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}'