Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceAccount and accessOrganizations

Update an organization (owner/admin)

Changes the organization's name, billing email, tax id and country, and invoice address, and returns it. An empty string clears the tax and address fields.

Required permission

Requires the org.update permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl organizations update
PATCH
/v1/orgs/{orgId}

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string

Request Body

application/json
  1. body
name?string
billingEmail?string
taxId?string

Tax identifier to store, max 64 chars. Requires taxCountry (in this request or already on the org). Empty string clears it.

taxCountry?string

ISO 3166-1 alpha-2 (e.g. US, GB). Empty string clears it.

billingName?string

Name to print on invoices, max 128 chars. Empty string clears it (the org name is then used).

billingAddressLine1?string

Max 128 chars. Empty string clears it.

billingAddressLine2?string

Max 128 chars. Empty string clears it.

billingCity?string

Max 128 chars. Empty string clears it.

billingPostalCode?string

Max 32 chars. Empty string clears it.

billingCountry?string

ISO 3166-1 alpha-2 (e.g. US, GB). Empty string clears it.

Response Body

Updated

application/json
  1. response
id*string
shortId*string
name*string
slug*string
billingEmail*string
plan*string
isProvider?boolean
createdAt?string
taxId?string

Customer tax identifier stored on the organization (US EIN, EU/UK VAT, SG GST, etc.), shown on the billing settings page. Requires taxCountry.

taxCountry?string

ISO 3166-1 alpha-2 country whose tax scheme taxId belongs to (e.g. US, GB, SG, DE).

billingName?string

Name printed on invoices and credit notes. Empty means the org name is used.

billingAddressLine1?string
billingAddressLine2?string
billingCity?string
billingPostalCode?string
billingCountry?string

ISO 3166-1 alpha-2 country of the billing address.

accountStatus?string

User-facing account state derived from the org's trust & safety risk state. "active" = normal; "pending" = a verification hold: the account can sign in and use the dashboard but cannot be funded, new deploys are paused, existing workloads keep running, and it clears on review (usually under one business day); "restricted" = new deploys paused pending review (existing workloads keep running, funding still allowed); "suspended" = read-only, workloads stopped, pending review; "banned" = disabled. Drives the dashboard account-status banner. Omitted/"active" means no banner.

Example Request
curl -X PATCH 'https://api.openrelay.inc/v1/orgs/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "shortId": "string",  "name": "string",  "slug": "string",  "billingEmail": "string",  "plan": "string",  "isProvider": true,  "createdAt": "string",  "taxId": "string",  "taxCountry": "string",  "billingName": "string",  "billingAddressLine1": "string",  "billingAddressLine2": "string",  "billingCity": "string",  "billingPostalCode": "string",  "billingCountry": "string",  "accountStatus": "string"}