GET/api/orgs/{org_id}/provider-connections/{provider}/plans

Check plan account availability

Whether ChatGPT (openai) or Claude (anthropic) plan accounts can be added on this deployment, and how the browser sign-in completes. Claude plans need the Experiential OAuth app configured; when it is not, available is false. Any member may ask; no Pro needed.

Authentication: Bearer API key in the Authorization header

Path parameters

  • org_idstringrequired

    Your organization id (uuid). GET /api/whoami returns it.

  • providerenumrequired

    openai for ChatGPT plans, anthropic for Claude plans. Any other provider answers 404.

    "openai""anthropic"

Responses

  • 200

    Availability.

    Response
    • availablebooleanrequired
    • completionenumrequired

      paste: paste the landing address or code into sign-in/complete; redirect: the web callback completes it.

      "paste""redirect"
  • 401

    Missing, unknown or revoked API key.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

Request

curl https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider-connections/openai/plans \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "available": true,
  "completion": "paste"
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider-connections/openai/plans