Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Query Parameters
1 <= value <= 20050length <= 2048Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/organizations"{ "data": [ { "id": "string", "name": "string", "slug": "string", "plan": { "id": "string", "version": 0 }, "billing_mode": "card", "ai_drafting_disabled": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}Secret API key bound to an environment.
In: header
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/trust_policy"{ "version": -9007199254740991, "configured": true, "policy": { "monetary_currencies": [ "string" ], "caps": [ { "trust": "anonymous_claim", "currency": "string", "scope": "customer", "window": "day", "maximum_minor": 0 } ] }}Secret API key bound to an environment.
In: header
Header Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Required revision, checked in the owning transaction.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/trust_policy" \ -H "Idempotency-Key: string" \ -H "If-Match: string" \ -H "Content-Type: application/json" \ -d '{ "monetary_currencies": [ "points" ], "caps": [] }'{ "version": -9007199254740991, "configured": true, "policy": { "monetary_currencies": [ "string" ], "caps": [ { "trust": "anonymous_claim", "currency": "string", "scope": "customer", "window": "day", "maximum_minor": 0 } ] }}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/organizations/string"{ "id": "string", "name": "string", "slug": "string", "plan": { "id": "string", "version": 0 }, "billing_mode": "card", "ai_drafting_disabled": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Optional legacy revision. Missing or malformed values follow the existing route parser.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/organizations/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Example" }'{ "id": "string", "name": "string", "slug": "string", "plan": { "id": "string", "version": 0 }, "billing_mode": "card", "ai_drafting_disabled": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Query Parameters
1 <= value <= 20050length <= 20481 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/projects?organization_id=string"{ "data": [ { "id": "string", "organization_id": "string", "name": "string", "slug": "string", "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Header Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "organization_id": "org_example", "name": "Example", "timezone": "UTC" }'{ "id": "string", "organization_id": "string", "name": "string", "slug": "string", "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/projects/string"{ "id": "string", "organization_id": "string", "name": "string", "slug": "string", "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Optional legacy revision. Missing or malformed values follow the existing route parser.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/projects/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Example" }'{ "id": "string", "organization_id": "string", "name": "string", "slug": "string", "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthQuery Parameters
1 <= value <= 20050length <= 2048Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/projects/string/environments"{ "data": [ { "id": "string", "project_id": "string", "name": "string", "kind": "test", "test_mode": true, "runtime_class": "sandbox", "timezone": "string", "rules_paused": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The kind is chosen here and never changes: test (free; outbound notifications and commerce fulfilment are simulated, webhooks carry test_mode: true, at most the plan's test players until a reset) or live, a production environment (billable against the organization's monthly allowance, real delivery). Names are free-form ("staging", "playtest") and renaming never changes the kind or billing. Every production environment of the organization shares one allowance.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/environments" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "name": "staging", "kind": "live" }'{ "id": "string", "project_id": "string", "name": "string", "kind": "test", "test_mode": true, "runtime_class": "sandbox", "timezone": "string", "rules_paused": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/environments/string/test_players"{ "environment_id": "string", "test_mode": true, "players_created": -9007199254740991, "player_limit": -9007199254740991, "resetting": true, "resets": -9007199254740991, "reset_at": "string"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/environments/string/reset" \ -H "Idempotency-Key: string"{ "environment_id": "string", "test_mode": true, "players_created": -9007199254740991, "player_limit": -9007199254740991, "resetting": true, "resets": -9007199254740991, "reset_at": "string", "players_deleted": -9007199254740991}Secret API key bound to an environment.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/environments/string"{ "id": "string", "project_id": "string", "name": "string", "kind": "test", "test_mode": true, "runtime_class": "sandbox", "timezone": "string", "rules_paused": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Optional legacy revision. Missing or malformed values follow the existing route parser.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/environments/string" \ -H "Content-Type: application/json" \ -d '{ "name": "staging" }'{ "id": "string", "project_id": "string", "name": "string", "kind": "test", "test_mode": true, "runtime_class": "sandbox", "timezone": "string", "rules_paused": true, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthQuery Parameters
1 <= value <= 20050length <= 2048Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/environments/string/api_keys"{ "data": [ { "id": "string", "environment_id": "string", "kind": "secret", "name": "string", "prefix": "string", "scopes": [ "string" ], "last_used_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "has_more": true}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Required. Official clients generate a UUID when omitted by the caller.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/environments/string/api_keys" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "kind": "secret", "name": "Server" }'{ "id": "string", "environment_id": "string", "kind": "secret", "name": "string", "prefix": "string", "scopes": [ "string" ], "last_used_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "token": "string", "organization_id": "string"}Personal access token. Scopes are listed in x-orishare-authorization.
In: header
Path Parameters
1 <= lengthHeader Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api_keys/string"Secret API key bound to an environment.
In: header
Path Parameters
1 <= lengthQuery Parameters
1 <= value <= 20050length <= 2048^\d{4}-\d{2}$Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/environments/string/usage"{ "data": [ { "environment_id": "string", "period": "string", "accepted_events": 0, "active_customers": 0, "webhook_deliveries": 0, "ai_drafts": 0, "sync_evaluations": 0 } ], "next_cursor": "string", "has_more": true}