Skip to main content
POST
/
api
/
v1
/
contacts
Create a new contact
curl --request POST \
  --url https://app.sajn.se/api/v1/contacts \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "ssn": "<string>",
  "companyId": "<string>",
  "companyRole": "<string>"
}'
{
  "id": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "firstName": "<string>",
  "lastName": "<string>",
  "ssn": "<string>",
  "externalId": "<string>",
  "createdAt": "<any>",
  "updatedAt": "<any>",
  "companyRole": "<string>",
  "company": {
    "id": "<string>",
    "name": "<string>",
    "orgNumber": "<string>"
  }
}

Headers

authorization
string
required

Bearer token for API authentication

Body

application/json

Body

Create contact request

firstName
string
required

Contact first name (required)

Minimum length: 1
lastName
string
required

Contact last name (required)

Minimum length: 1
email
string<email>

Contact email address

phone
string

Contact phone number

ssn
string

Swedish personal number (personnummer)

companyId
string

ID of company to associate with

companyRole
string

Role/title within the company

Response

200

id
string
required

Unique contact identifier

firstName
string
required

Contact first name

lastName
string
required

Contact last name

createdAt
any
required

Date and time when contact was created

updatedAt
any
required

Date and time when contact was last updated

email
string | null

Contact email address

phone
string | null

Contact phone number

ssn
string | null

Swedish personal number (personnummer)

externalId
string | null

Your external reference ID

companyRole
string | null

Role/title within the associated company

company
object | null

Associated company information

I