Create a new company
You're viewing API version
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.POST
Create a new company in your organization.
Required Fields:
name- Company name
Optional Fields:
orgNumber- Organization number (must be unique if provided)country- Country code, defaults toSE
Note: If a company with the same organization number exists, a 409 Conflict error is returned.
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
Idempotency-Key?stringMakes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.
Length
length <= 255Body
application/json- body
name*stringLength
1 <= lengthorgNumber?stringcountry?string200
application/json- response
id*stringname?string|nullorgNumber?string|nullcountry?string|nullcurl -X POST 'https://app.sajn.se/api/v1/companies' \ -H 'authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "id": "string", "name": "string", "orgNumber": "string", "country": "string"}Was this page helpful?