حساب و کلیدها
اعتبارنامهٔ درخواست، کلیدهای API و گزارش تغییرها.
/v1/healthzIs the API up#
- دسترسی
- بدون اعتبارنامه
پاسخ
200Ok
okbooleanالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/healthz"/v1/whoamiThe calling credential#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پاسخ
200WhoAmI
accountstring (uuid)الزامیteamstringالزامیemailstringالزامیkeystringالزامیkey id, or s:<session id>
rolestringالزامیone of
owner,admin,developer,billing,viewer
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/whoami" \
-H "Authorization: Bearer $KEY"- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پاسخ
200object
keysKey[]الزامیidstringالزامیpattern
^[0-9a-f]{12}$namestringالزامیrolestringالزامیone of
owner,admin,developer,billing,viewercreated_atstring (date-time)الزامیcreated_bystring | nullperson:<uuid>, key:<id>, build:<uuid> or device
last_used_atstring (date-time) | nullexpires_atstring (date-time) | nullrevoked_atstring (date-time) | nullreplaced_bystring | null
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/keys" \
-H "Authorization: Bearer $KEY"- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- owner, admin, developer (no wider than the caller; not a build's key)
- تایید دوم
- با نشست داشبورد، عامل دوم در ۱۰ دقیقهٔ اخیر لازم است؛ کلید API نیازی ندارد.
بدنهٔ درخواستapplication/json
namestringup to 100 characters
rolestringone of
owner,admin,developer,billing,viewerexpires_in_daysinteger1–3650
پاسخ
201KeyCreated
idstringالزامیnamestringالزامیrolestringالزامیone of
owner,admin,developer,billing,viewerexpires_atstring (date-time) | nullkeystringالزامیthe full chk_ key, shown once
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_role, bad_expiry, bad_json |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden, role_too_wide, step_up_required |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/keys" \
-H "Authorization: Bearer $KEY" \
-d '{"name":"ci","role":"owner","expires_in_days":1}'/v1/keys/{id}Revoke a key#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- any for its own key; owner or admin for others (never a wider key)
- تایید دوم
- با نشست داشبورد، عامل دوم در ۱۰ دقیقهٔ اخیر لازم است؛ کلید API نیازی ندارد.
پارامترها
idstringمسیرالزامیkey id
pattern
^[0-9a-f]{12}$
پاسخ
200object
idstringrevokedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden, step_up_required |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl -X DELETE "https://api.ibel.ai/v1/keys/7e5926b6f29c" \
-H "Authorization: Bearer $KEY"/v1/keys/{id}/rotateRotate a key#
A new key with the same name, role and expiry; the old one works for 24 hours more.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- owner, admin, developer (not a wider key; not a build's key)
- تایید دوم
- با نشست داشبورد، عامل دوم در ۱۰ دقیقهٔ اخیر لازم است؛ کلید API نیازی ندارد.
پارامترها
idstringمسیرالزامیkey id
pattern
^[0-9a-f]{12}$
پاسخ
201KeyRotated
idstringالزامیnamestringrolestringone of
owner,admin,developer,billing,viewerkeystringالزامیshown once
old_key_valid_untilstring (date-time)الزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden, role_too_wide, step_up_required |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/keys/7e5926b6f29c/rotate" \
-H "Authorization: Bearer $KEY"/v1/auditAudit log#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
limitintegerکوئری1-500, default 100
1–500 · default
100beforeintegerکوئریan event id; only older events (paging with next_before)
personstringکوئریperson:<uuid> or key:<id>
projectstringکوئریa project name
typestringکوئریone of
deploy,project,env,domain,store,team,key,alert,billing,auth,supportfromstringکوئریa day (2026-11-04, in the caller's time zone) or an ISO 8601 time
tostringکوئریa day (included) or an ISO 8601 time
پاسخ
200object
eventsAuditEvent[]الزامیidintegerالزامیactorstringالزامیperson:<uuid>, key:<id>, or a platform actor (signup, device, billing, payment, system). Described in the response's actors.
actionstringالزامیtargetstring | nulldetailobjectatstring (date-time)الزامی
actorsmap of Actornext_beforeinteger | null
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/audit" \
-H "Authorization: Bearer $KEY"/v1/audit/actorsPeople and keys in the activity#
The people and API keys that appear in the last 180 days of activity.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پاسخ
200object
actorsobject[]الزامیvaluestringkindstringidstringnamestring | nullemailstring | null
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/audit/actors" \
-H "Authorization: Bearer $KEY"/v1/audit/lastWho created and who last changed named things#
One request for a page of names (up to 200, comma-separated).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
targetsstringکوئریالزامیnames or ids separated by commas
پاسخ
200object
targetsmap of objectالزامیactorsmap of Actor
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/audit/last?targets=targets" \
-H "Authorization: Bearer $KEY"