Skip to main content
POST
/
organizations
Create organization
curl --request POST \
  --url https://api.akua.dev/v1/organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "slug": "<string>"
}
'
{
  "id": "<string>",
  "name": "Code Zero",
  "slug": "code-zero",
  "created_at": 1,
  "updated_at": 1,
  "etag": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://akua-1dce587a.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

workspace API token (sk_akua_...) or OAuth2 JWT. Create tokens at https://akua.dev/developers/api-tokens

Body

application/json
name
string
required
Required string length: 2 - 50
Pattern: ^[\p{L}\p{N}](?:[\p{L}\p{N}\s\-'&.]*[\p{L}\p{N}])?$/u
slug
string
Required string length: 3 - 39
Pattern: ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

Response

Organization created

id
string
required
Required string length: 1 - 54
name
string
required
Example:

"Code Zero"

slug
string | null
required
Example:

"code-zero"

created_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
updated_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
etag
string
required