Skip to Content

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
/api/v1/companies

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 to SE

Note: If a company with the same organization number exists, a 409 Conflict error is returned.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Header Parameters

authorization*string

Bearer token for API authentication

Idempotency-Key?string

Makes 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.

Lengthlength <= 255

Request Body

Body

application/json
  1. body
name*string
Length1 <= length
orgNumber?string
country?string

Response Body

200

application/json
  1. response
id*string
name?string|null
orgNumber?string|null
country?string|null
Example Request
curl -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?