مرجع API

التطبيقات والنطاقات والاستخدام

اعرف المعرّفات اللازمة لإنشاء الروابط، وتابع استهلاك خطتك.

تحقق من التوكن

GET/me

يعرض مؤسسة التوكن المستخدم وصلاحياته، وهو استدعاء أول مناسب.

curl -X GET "https://baiocodesolutions.com/api/v1/me" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": {
        "organization": {
            "id": 3,
            "name": "Your Brand"
        },
        "token": {
            "name": "Production backend",
            "prefix": "dbk_a1b2c3d4",
            "scopes": [
                "links:read",
                "links:write"
            ],
            "app_id": null,
            "expires_at": null
        }
    }
}

عرض التطبيقات

GET/appsapps:read

يعيد التطبيقات التي يستطيع هذا التوكن الوصول إليها.

curl -X GET "https://baiocodesolutions.com/api/v1/apps" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": [
        {
            "id": 12,
            "name": "Your Brand App",
            "ios_bundle_id": "com.yourbrand.app",
            "android_package": "com.yourbrand",
            "created_at": "2026-11-01T09:00:00+00:00"
        }
    ]
}

جلب تطبيق

GET/apps/{id}apps:read

يعيد تطبيقًا واحدًا.

curl -X GET "https://baiocodesolutions.com/api/v1/apps/12" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": {
        "id": 12,
        "name": "Your Brand App",
        "ios_bundle_id": "com.yourbrand.app",
        "android_package": "com.yourbrand",
        "created_at": "2026-11-01T09:00:00+00:00"
    }
}

عرض النطاقات

GET/domainsdomains:read

يعيد نطاقاتك المخصصة والنطاقات المشتركة المتاحة لك. ولا يمكن استخدام إلا النطاقات الموثقة في الروابط.

curl -X GET "https://baiocodesolutions.com/api/v1/domains" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": [
        {
            "id": 7,
            "hostname": "link.yourbrand.com",
            "kind": "custom",
            "status": "verified",
            "ssl_status": "active"
        }
    ]
}

جلب الاستخدام

GET/usageusage:read

يعيد العدد التقريبي للمستخدمين النشطين خلال الشهر الحالي بتوقيت UTC.

curl -X GET "https://baiocodesolutions.com/api/v1/usage" \
  -H "Authorization: Bearer $DEEPBERTH_TOKEN"

200 OK

{
    "data": {
        "monthly_active_users": 12400,
        "limit": 150000,
        "percent_used": 8,
        "period": "2026-11"
    }
}