Median

POST /organizations

Updated Oct 1, 20261 minute read

Create an organization

Creates one, makes the token's person its owner, and binds the session to it, so the next request is already working inside it. Token-only. The slug derives from the name when omitted.

Part of Account.

Request body

application/json, required.

FieldTypeRequiredDescription
namestringYes
slugstringNo

Responses

StatusDescription
200The organization, already bound.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
idstringNo
namestringNo
slugstringNo

Example request

curl -X POST https://api.median.sh/v1/organizations \
  -H "Authorization: Bearer $BEARER_AUTH" \
  -H "content-type: application/json" \
  -d '{"name":"Acme"}'

Still need help?

    Esc