Subscriptions

Cancel Repository Subscription

Cancel a shared repository subscription. Two modes via the immediate flag: omit it (default false) to cancel at period end (access stays until the period closes); pass true with confirm=<repo_id> to stop access right away. Members cancel their own subscription; org owners and admins can cancel any member's by passing user_id. For user graphs, use POST /v1/graphs/{graph_id}/operations/delete-graph — this endpoint rejects user graphs.

post/v1/graphs/{graph_id}/subscriptions/cancel

Request

  • Base URL: https://api.robosystems.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.robosystems.ai/v1/graphs/{graph_id}/subscriptions/cancel
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

graph_idstring required

Repository name (e.g., 'sec', 'industry')

Request body

immediateboolean

If true, cancel immediately and trigger fast-path deprovisioning of the underlying resource (within ~10 minutes). If false (default), cancel at the end of the current billing period.

confirmstring nullable

Required when immediate=True. Must equal the subscription's resource_id (e.g. graph_id) to confirm intent.

user_idstring nullable

Organization member whose subscription to cancel. Defaults to the caller; canceling another member's requires org owner or admin.

Response

Successful Response

idstring required

Subscription ID

resource_typestring required

Resource type (graph or repository)

resource_idstring required

Resource identifier

user_idstring nullable

Organization member the subscription belongs to. Set for repository subscriptions, which are billed to the org but granted per user.

plan_namestring required

Current plan name

plan_display_namestring required

Human-readable plan name for UI display

billing_intervalstring required

Billing interval

statusstring required

Subscription status

base_price_centsinteger required

Base price in cents

current_period_startstring nullable

Current billing period start

current_period_endstring nullable

Current billing period end

started_atstring nullable

Subscription start date

canceled_atstring nullable

Cancellation date

ends_atstring nullable

Subscription end date (when access will be revoked, especially relevant for cancelled subscriptions)

created_atstring required

Creation timestamp

operation_idstring nullable

Operation ID for tracking async tier changes via SSE

Changes

No recorded changes to this operation across all 1 revision of this API.