ServicesApplicationsHTTP APIOrganization access

Set the app access of your Organization

PUT
/api/apps/organization-access

Replace which Applications and MCP clients the users of your Organization can sign in to. Only an Organization owner can set it. Sign-in and refresh apply the new setting from their next request.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

The Applications and MCP clients that the users of an Organization can sign in to. The decision for a listed client applies first. unlisted applies to every other client.

clients*array<>
unlisted*apps.UnlistedAppAccess

What happens to an Application that the Organization did not list. allow_reviewed allows Applications that Spiral reviewed. block blocks all of them.

Value in"allow_reviewed""block"

Response Body

Success

application/json
  1. response

The Applications and MCP clients that the users of an Organization can sign in to. The decision for a listed client applies first. unlisted applies to every other client.

clients*array<>
unlisted*apps.UnlistedAppAccess

What happens to an Application that the Organization did not list. allow_reviewed allows Applications that Spiral reviewed. block blocks all of them.

Value in"allow_reviewed""block"
curl -X PUT 'https://api.spiraldb.dev/api/apps/organization-access' \  -H 'Content-Type: application/json' \  -d '{  "clients": [    {      "clientId": "string",      "decision": "allow"    }  ],  "unlisted": "allow_reviewed"}'
{  "clients": [    {      "clientId": "string",      "decision": "allow"    }  ],  "unlisted": "allow_reviewed"}