---
title: "Export all organization data as JSON (no lock-in)"
method: GET
path: "/api/rightos/export"
tags: ["organizations"]
---

# Export all organization data as JSON (no lock-in)

`GET /api/rightos/export`

## Request

- Base URL: `https://rightos.i-s3.com`
- URL: `https://rightos.i-s3.com/api/rightos/export`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-rightos-key`

Returns organization, subscriptions, locations, tokens, and verification logs. Contains no secret values (no key hashes, no code hashes).

## Response `200`

Full export (Content-Disposition: attachment)

- object
  - `exportedAt` string, date-time
  - `organization` Organization: Public organization record. The API key hash is never exposed.
    - `id` string
    - `name` string
    - `country` string: ISO country code, default JP
    - `contactEmail` string, email
    - `planId` 'free' | 'starter' | 'business' | 'pro' | 'enterprise'
    - `createdAt` string, date-time
  - `subscriptions` Subscription[]
    - `id` string
    - `organizationId` string
    - `planId` 'free' | 'starter' | 'business' | 'pro' | 'enterprise'
    - `status` 'trialing' | 'active' | 'past_due' | 'cancelled'
    - `startedAt` string, date-time
    - `currentPeriodEnd` string, date-time
  - `locations` Location[]
    - `id` string
    - `organizationId` string
    - `name` string
    - `address` string
    - `type` 'shop' | 'clinic' | 'ev_charging' | 'event' | 'logistics' | 'pickup' | 'other'
    - `timezone` string
    - `active` boolean
  - `tokens` RightToken[]
    - `id` string
    - `organizationId` string
    - `locationId` string
    - `title` string
    - `description` string
    - `startTime` string, date-time
    - `endTime` string, date-time
    - `priorityNumber` integer: Daily issue sequence at this location (includes cancelled/used/expired). Not the live queue position — see queuePosition
    - `queuePosition` integer: Position in the active queue at issuance (issued + verified, not expired). ADR-0024
    - `status` 'issued' | 'verified' | 'used' | 'cancelled' | 'expired'
    - `transferCount` integer: Number of times transferred. 0 = original holder.
    - `createdAt` string, date-time
    - `usedAt` string, date-time
    - `cancelledAt` string, date-time
    - `transferredAt` string, date-time
  - `logs` object[]

## Other responses

- `401`: Missing or invalid API key (error: missing_api_key | invalid_api_key)

---

[API](https://skmtc.dev/i-s3/apis/rightos-right-api.md) · [All operations](https://skmtc.dev/i-s3/apis/rightos-right-api/llms.txt) · [OpenAPI document](https://skmtc.dev/i-s3/apis/rightos-right-api/revisions/10020536e345?raw)
