Create an org

POST /orgs

Create an org

Body

Create an org

  • name string Required
  • If true, a key, trusted identity provider, and token provider that support anonymous access will be created for the org. The usual authorization checks still apply at the machine level so individual reads and writes for anonymous access depends on your allowRead and allowWrite implementations. Auth context for anonymous tokens includes Session ID (sid), Device ID (did), and { "auth": "anonymous" }.

    Default value is true.

Responses

  • New org

    Hide response attribute Show response attribute object
    • id string Required

      An identifier for an organization

POST /orgs
curl \
 -X POST https://api.statebacked.dev/orgs \
 -H "Content-Type: application/json" \
 -d '{"name":"string","allowAnonymousAccess":true}'
Request example
{
  "name": "string",
  "allowAnonymousAccess": true
}
Request examples
{
  "name": "string",
  "allowAnonymousAccess": true
}
Response examples (200)
{
  "id": "org_uHvZHpF4STWvMg8BKVCUTg"
}
Response examples (200)
{
  "id": "org_uHvZHpF4STWvMg8BKVCUTg"
}