Body
Create an org
-
allowAnonymousAccess boolean
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
andallowWrite
implementations. Auth context for anonymous tokens includes Session ID (sid
), Device ID (did
), and{ "auth": "anonymous" }
.Default value is
true
.
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"
}