Overview

API reference

Base URL: https://rasternivo-api.swiftinfocorp.com. All requests use HTTPS. Each endpoint has its own page in the menu, with parameters, responses, errors and examples.

  • API key calls send Authorization: Bearer YOUR_API_KEY; the scope needed is shown.
  • Session calls use the cookie from POST /v1/auth/login. Changes also need the X-CSRF-Token header. To work in a workspace other than your personal one, send X-Workspace-Id.

Conversions

EndpointAuthDescription
POST /v1/conversionsconversions:writeUpload a PDF. Needs Idempotency-Key. Returns 202 and the job. Details
GET /v1/conversionsconversions:readList jobs: ?limit=&cursor=
GET /v1/conversions/{id}conversions:readGet a job. States
GET /v1/conversions/{id}/resultconversions:readGet download links. Details
POST /v1/conversions/{id}/cancelconversions:writeCancel a job. Safe to repeat.
GET /v1/files/{token}Signed linkDownload a JPG or ZIP. Use the links from /result.

Usage

EndpointAuthDescription
GET /v1/usageusage:readPlan, credits and limits. Details
GET /v1/activityusage:readThe credit log. Details

API keys

EndpointAuthDescription
POST /v1/api-keysSessionCreate a key: {label, scopes, password}. The secret is returned once.
GET /v1/api-keysSessionList keys, without secrets
DELETE /v1/api-keys/{id}SessionRevoke a key

Webhook endpoints

EndpointAuthDescription
POST /v1/webhook-endpointsSessionRegister: {url, events, description}. The secret is returned once.
GET /v1/webhook-endpointsSessionList endpoints
DELETE /v1/webhook-endpoints/{id}SessionRemove an endpoint
POST /v1/webhook-endpoints/{id}/rotate-secretSessionNew secret; the old one keeps signing for 24 hours
POST /v1/webhook-endpoints/{id}/testSessionSend a test event
GET /v1/webhook-endpoints/{id}/deliveriesSessionRecent deliveries and attempts

Accounts and sessions

EndpointAuthDescription
POST /v1/auth/registerNone{email, password, accept_terms}. Returns 202.
POST /v1/auth/verify-emailNone{token}. Starts the trial.
POST /v1/auth/resend-verificationNone{email}. Returns 202.
POST /v1/auth/loginNone{email, password}. Sets the cookie; returns {account, csrf_token}.
POST /v1/auth/logoutSessionSign out
POST /v1/auth/password-reset/requestNone{email}. Returns 202.
POST /v1/auth/password-reset/confirmNone{token, new_password}
GET /v1/accountSessionYour account, workspaces and CSRF token
GET /v1/account/sessionsSessionYour sessions
DELETE /v1/account/sessions/{id}SessionSign out a session

Billing

EndpointAuthDescription
GET /v1/billingSessionPlan, trial, subscription, credits and plans on sale
GET PUT /v1/billing/profileSessionBilling details for GST invoices
POST /v1/billing/checkoutSession{plan, interval}. Returns {checkout_url}.
POST /v1/billing/cancelSessionCancel the subscription
POST /v1/billing/change-planSession{plan, interval}: move to a cheaper plan from the next charge
GET /v1/billing/invoicesSessionList GST invoices
GET /v1/billing/invoices/{id}/pdfSessionDownload an invoice

Service status

EndpointAuthDescription
GET /healthzNoneThe service is running
GET /readyzNoneThe service is ready to take requests