cURL
curl --request GET \ --url https://api.orion.file.ai/prod/v1/subscription \ --header 'x-api-key: <api-key>'
{ "subscription": { "id": "686ccbacfe8fa1c80e69bc55", "workspaceId": "686ccbacfe8fa1c80e69bc55", "subscriptionPlan": "STARTER", "isTrial": true, "creditInCents": 500, "lowCreditThresholdInCents": 0, "expiringCreditInCents": 500, "expiryDate": "2025-07-22T07:41:32.607Z", "storageInGB": 0, "maxStorageInGB": 100, "importCount": 0, "maxImportCount": 1, "exportCount": 0, "maxExportCount": 1, "aiSchemaCount": 0, "maxAiSchemaCount": 2, "isAutoRenewal": true, "createdAt": "2025-07-08T07:41:32.323Z", "updatedAt": "2025-07-10T10:50:20.997Z" } }
This endpoint is used to get the subscription of the workspace.
The response will contain the subscription of the workspace.
API key for authentication
The subscription is retrieved