رفتن به محتوا
cloudhostمستندات
مرجع API

دامنه‌ها

دامنهٔ خودتان روی برنامه یا فانکشن، با HTTPS خودکار، ریدایرکت و پیش‌نمایش شاخه.

توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته می‌شود. مسیرها، نام فیلدها و کدها همان‌اند که در درخواست می‌نویسید.
GET/v1/domains

Every custom domain of the team#

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • projectstringکوئری

    only this project's

پاسخ

200object

  • domainsDomain[]الزامی
    • namestringالزامی

      lowercase ASCII (an international name in its xn-- form)

    • apexstringالزامی

      the registrable domain

    • typestringالزامی

      one of apex, subdomain

    • projectobjectالزامی
    • branchstring | null

      a git branch: the domain serves its preview

    • servesstring | null

      the platform address it serves; null for a redirect

    • redirectobject | null
    • statestringالزامی

      one of pending, verifying, valid, misconfigured, error

    • reasonstring | null

      what is missing or wrong, for people

    • verifiedbooleanالزامی

      ownership proven by the TXT record

    • recordsDomainRecord[]الزامی

      the records to set at the DNS provider

    • checksobject[]

      what the last lookup found

    • certificateobjectالزامی
    • urlstringالزامی
    • checked_atstring (date-time) | null
    • next_check_atstring (date-time)
    • created_atstring (date-time)
    • alsoDomain[]

      add only: the www pair added with it

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/domains" \
  -H "Authorization: Bearer $KEY"
GET/v1/domains/ibel.ai

One custom domain#

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • domainstringمسیرالزامی

    the domain, e.g. shop.example.ir

پاسخ

200Domain

  • namestringالزامی

    lowercase ASCII (an international name in its xn-- form)

  • apexstringالزامی

    the registrable domain

  • typestringالزامی

    one of apex, subdomain

  • projectobjectالزامی
  • branchstring | null

    a git branch: the domain serves its preview

  • servesstring | null

    the platform address it serves; null for a redirect

  • redirectobject | null
  • statestringالزامی

    one of pending, verifying, valid, misconfigured, error

  • reasonstring | null

    what is missing or wrong, for people

  • verifiedbooleanالزامی

    ownership proven by the TXT record

  • recordsDomainRecord[]الزامی

    the records to set at the DNS provider

  • checksobject[]

    what the last lookup found

  • certificateobjectالزامی
  • urlstringالزامی
  • checked_atstring (date-time) | null
  • next_check_atstring (date-time)
  • created_atstring (date-time)
  • alsoDomain[]

    add only: the www pair added with it

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
404Not found: not_found
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/domains/domain" \
  -H "Authorization: Bearer $KEY"
DELETE/v1/domains/ibel.ai

Remove a custom domain#

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • domainstringمسیرالزامی

    the domain, e.g. shop.example.ir

پاسخ

200object

  • namestring
  • removedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/domains/domain" \
  -H "Authorization: Bearer $KEY"
PATCH/v1/domains/ibel.ai

Change a domain's redirect or branch#

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • domainstringمسیرالزامی

    the domain, e.g. shop.example.ir

بدنهٔ درخواستapplication/json

  • redirect_tostring | null
  • redirect_statusinteger

    one of 301, 302, 307, 308

  • branchstring | null

پاسخ

200Domain

  • namestringالزامی

    lowercase ASCII (an international name in its xn-- form)

  • apexstringالزامی

    the registrable domain

  • typestringالزامی

    one of apex, subdomain

  • projectobjectالزامی
  • branchstring | null

    a git branch: the domain serves its preview

  • servesstring | null

    the platform address it serves; null for a redirect

  • redirectobject | null
  • statestringالزامی

    one of pending, verifying, valid, misconfigured, error

  • reasonstring | null

    what is missing or wrong, for people

  • verifiedbooleanالزامی

    ownership proven by the TXT record

  • recordsDomainRecord[]الزامی

    the records to set at the DNS provider

  • checksobject[]

    what the last lookup found

  • certificateobjectالزامی
  • urlstringالزامی
  • checked_atstring (date-time) | null
  • next_check_atstring (date-time)
  • created_atstring (date-time)
  • alsoDomain[]

    add only: the www pair added with it

خطاها

وضعیتتوضیح
400Bad request: bad_redirect, bad_branch, nothing_to_change, bad_json
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X PATCH "https://api.ibel.ai/v1/domains/domain" \
  -H "Authorization: Bearer $KEY" \
  -d '{"redirect_to":"…","redirect_status":301,"branch":"dev"}'
POST/v1/domains/ibel.ai/verify

Check a domain's DNS now#

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • domainstringمسیرالزامی

    the domain, e.g. shop.example.ir

پاسخ

200Domain

  • namestringالزامی

    lowercase ASCII (an international name in its xn-- form)

  • apexstringالزامی

    the registrable domain

  • typestringالزامی

    one of apex, subdomain

  • projectobjectالزامی
  • branchstring | null

    a git branch: the domain serves its preview

  • servesstring | null

    the platform address it serves; null for a redirect

  • redirectobject | null
  • statestringالزامی

    one of pending, verifying, valid, misconfigured, error

  • reasonstring | null

    what is missing or wrong, for people

  • verifiedbooleanالزامی

    ownership proven by the TXT record

  • recordsDomainRecord[]الزامی

    the records to set at the DNS provider

  • checksobject[]

    what the last lookup found

  • certificateobjectالزامی
  • urlstringالزامی
  • checked_atstring (date-time) | null
  • next_check_atstring (date-time)
  • created_atstring (date-time)
  • alsoDomain[]

    add only: the www pair added with it

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/domains/domain/verify" \
  -H "Authorization: Bearer $KEY"