域名

短链接的自定义域名。

GET/api/v1/domains
列出 域名
名称类型必填描述
pageinteger否Page number (default 1)
results_per_pageinteger否Items per page (default 25, max 100)
searchstring否Search term
search_bystring否Column to search
order_bystring否Sort column
order_typestring否asc or desc
datetime_startstring否ISO datetime filter start
datetime_endstring否ISO datetime filter end
curl -X GET 'https://forqrcode.com/api/v1/domains' \
  -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/domains/available
列出可用域名
curl -X GET 'https://forqrcode.com/api/v1/domains/available' \
  -H 'Authorization: Bearer YOUR_API_KEY'
GET/api/v1/domains/{id}
读取一个 域名
名称类型必填描述
idinteger是—
curl -X GET 'https://forqrcode.com/api/v1/domains/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
POST/api/v1/domains
创建 域名
名称类型必填描述
hoststring是—
curl -X POST 'https://forqrcode.com/api/v1/domains' \
  -H 'Authorization: Bearer YOUR_API_KEY'
PATCH/api/v1/domains/{id}
更新 域名
名称类型必填描述
idinteger是—
curl -X PATCH 'https://forqrcode.com/api/v1/domains/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'
DELETE/api/v1/domains/{id}
删除 域名
名称类型必填描述
idinteger是—
curl -X DELETE 'https://forqrcode.com/api/v1/domains/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY'

参数名与 JSON 示例为英文。请将 YOUR_API_KEY 替换为您的密钥。