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}'
在浏览器里试

这个免费工具无需写代码即可得到相同结果。

打开工具