X114
返回 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}'
在瀏覽器裏試

這個免費工具無需寫代碼即可得到相同結果。

打開工具