Create a new contact
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.Create a new contact in your organization.
Required Fields:
firstName- Contact's first name
Optional Fields:
lastName- Contact's last name (omit or send an empty string for single-name contacts)email- Email addressphone- Phone number (for SMS notifications)ssn- Swedish personal number (for BankID)externalId- Your external reference ID for trackingcompanyId- Associate with existing companycompanyRole- Role within the company
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 <= 255Body
application/json- body
Create contact request
firstName*stringContact first name (required)
1 <= lengthlastName?stringContact last name (optional, e.g. for single-name contacts)
email?stringContact email address
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$emailphone?stringContact phone number
ssn?stringSwedish personal number (personnummer)
externalId?stringYour external reference ID for this contact
companyId?stringID of company to associate with
companyRole?stringRole/title within the company
200
application/json- response
id*stringUnique contact identifier
email?|Contact email address
phone?|Contact phone number
firstName*stringContact first name
lastName*stringContact last name
ssn?|Swedish personal number (personnummer)
externalId?|Your external reference ID
createdAt*stringDate and time when contact was created
date-timeupdatedAt*stringDate and time when contact was last updated
date-timecompanyRole?|Role/title within the associated company
company?|Associated company information
curl -X POST 'https://app.sajn.se/api/v1/contacts' \ -H 'authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "firstName": "string"}'{ "id": "string", "email": "string", "phone": "string", "firstName": "string", "lastName": "string", "ssn": "string", "externalId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "companyRole": "string", "company": { "id": "string", "name": "string", "orgNumber": "string" }}Was this page helpful?