กลับไปยังภาพรวม API

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

NameTypeRequiredDescription
countnumberoptionalHow many UUIDs to generate (1-500). Defaults to 1.
uppercasebooleanoptionalReturn uppercase hex digits. Defaults to false.

เนื้อหาการตอบสนอง

JSON ที่ส่งคืนเมื่อสำเร็จ (HTTP 200)

NameTypeRequiredDescription
okbooleanrequiredTrue on success.
countnumberrequiredThe number of UUIDs returned.
uppercasebooleanrequiredWhether the output is uppercased.
uuidsstring[]requiredThe 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}'
ลองในเบราว์เซอร์

เครื่องมือฟรีให้ผลลัพธ์เดียวกันโดยไม่ต้องเขียนโค้ดใดๆ

เปิดเครื่องมือ