API Reference
Reference for the REST API
Creates a new organization with the authenticated user as its single owner.
cURL
curl --request POST \ --url https://api.xata.tech/organizations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "id": "<string>", "name": "<string>", "status": { "status": "enabled", "disabled_by_admin": true, "billing_status": "ok", "last_updated": "2023-11-07T05:31:56Z", "admin_reason": "<string>", "billing_reason": "<string>" } }
The access token received from the authorization server in the OAuth 2.0 flow.
Request payload for creating a new organization
Name for the new organization
Organization successfully created
Organization details including ID and name
Unique identifier for the organization
Human-readable name of the organization
Current status of the organization
Show child attributes
Was this page helpful?