Skip to content

Create an organization

POST
/api/v1/orgs
curl --request POST \
--url https://api.pkgplease.com/api/v1/orgs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "slug": "example" }'

Creates the org, an owner user, and an identity row; issues a developer token.

Media typeapplication/json
object
name
required
string
slug
required
string
Examplegenerated
{
"name": "example",
"slug": "example"
}

Org created

Media typeapplication/json
object
org
object
id
string
name
string
slug
string
token
string
Examplegenerated
{
"org": {
"id": "example",
"name": "example",
"slug": "example"
},
"token": "example"
}

Identity already belongs to an org

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}