Synq Docs
Management APIOrgs

Make an org

Makes an org with its default brand, and makes the caller its owner. Only a person can: an API key acts in its own org. It wants a verified email address (`email_unverified`). Where Synq isn't open for sign-up, only the people it lets in can (`org_creation_closed`), and one person owns a limited number of orgs (`org_quota_exceeded`). Recorded as `org.created`.

POST/v1/orgs

Makes an org with its default brand, and makes the caller its owner. Only a person can: an API key acts in its own org. It wants a verified email address (email_unverified). Where Synq isn't open for sign-up, only the people it lets in can (org_creation_closed), and one person owns a limited number of orgs (org_quota_exceeded). Recorded as org.created.

Authorization

bearer
AuthorizationBearer <token>

An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/orgs" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string"  }'
{  "id": "string",  "slug": "string",  "name": "string",  "default_brand_id": "string",  "plan": "string",  "created_at": "2019-08-24T14:15:22Z",  "disabled_at": "2019-08-24T14:15:22Z",  "disabled_reason": "string"}