Browse the api reference

End Repository Trial

post/v1/graphs/{graph_id}/subscriptions/end-trial

Part of Subscriptions.

End your free trial of a shared repository now and start the paid plan. The first period is charged to the payment method on file; raw queries, the AI analyst and the plan's credits open once the payment clears, usually within a minute. Returns 400 when the subscription is not on a trial.

Authentication

Authenticate in any one of these ways — not all of them:

  • API key in the X-API-Key header.
  • Bearer token in the Authorization header.

Path parameters

NameTypeDescription
graph_idrequiredstringRepository name (e.g., 'sec')

Constraints: matches ^(kg[a-f0-9]{16,}(?:_[a-zA-Z0-9]{1,20})?|sec(?:_[a-zA-Z0-9]{1,20})?|library)$

Example request

curl
curl -X POST "https://api.robosystems.ai/v1/graphs/{graph_id}/subscriptions/end-trial" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY"

Responses

200 Successful Response

FieldTypeDescription
idrequiredstring

Subscription ID

resource_typerequiredstring

Resource type (graph or repository)

resource_idrequiredstring

Resource identifier

user_idoptionalstring

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

plan_namerequiredstring

Current plan name

plan_display_namerequiredstring

Human-readable plan name for UI display

billing_intervalrequiredstring

Billing interval

statusrequiredstring

Subscription status

base_price_centsrequiredinteger

Base price in cents

current_period_startoptionalstring

Current billing period start

current_period_endoptionalstring

Current billing period end

started_atoptionalstring

Subscription start date

canceled_atoptionalstring

Cancellation date

trial_ends_atoptionalstring

When the free trial ends and the first charge is made. Null for a subscription that opened without a trial; kept after the trial is over.

ends_atoptionalstring

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

created_atrequiredstring

Creation timestamp

operation_idoptionalstring

Operation ID for tracking async tier changes via SSE

StatusMeaning
400Invalid request
401Authentication required
403Access denied
404Resource not found
422Validation Error
429Rate limit exceeded
500Internal server error