> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sajn.se/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Create, send, and track legally binding e-signatures from your own code with the sajn REST API

The sajn API is a REST API for electronic signing. You create a document, add the people who sign it, send it, and get a sealed PDF back when everyone has signed. Every signature is backed by an eIDAS seal, and parties can sign with Swedish BankID, other Nordic eIDs, or a drawn or click-to-sign signature.

## What you can build

> [card] Contract automation
>
> Generate agreements from templates, fill in values from your system, and send them for signing.

> [card] Signing in your product
>
> Embed the signing flow in your own app or send each party a signing URL.

> [card] CRM and archive sync
>
> Mirror document status into your CRM and store signed PDFs in your own archive.

> [card] Identity checks
>
> Verify a person with BankID through sajn ID before you onboard them.

## Make a request

The base URL for every endpoint is the following:

```text theme={null}
https://app.sajn.se/api/v1
```

Authenticate with an API key in the `Authorization` header, and choose the API version with the `Sajn-Version` header:

```bash theme={null}
curl https://app.sajn.se/api/v1/me \
  -H "Authorization: Bearer API_KEY" \
  -H "Sajn-Version: 2026-10"
```

Replace `API_KEY` with an API key from **Inställningar > Utvecklare > API-nycklar** in your workspace settings. For more information, see [Authentication](https://docs.sajn.se/get-started/authentication.md).

Requests and responses are JSON, and timestamps are ISO 8601 in UTC. A sandbox uses the same base URL; the API key decides which environment you reach. For more information, see [Sandbox](https://docs.sajn.se/get-started/sandbox.md).

## Pin the API version

sajn versions the API by date, in `YYYY-MM` format. The docs describe `2026-10`. We recommend sending `Sajn-Version` on every request, so your integration keeps working the same way when your organization's default version changes. For more information, see [API versioning](https://docs.sajn.se/api-fundamentals/versioning.md).

## Explore the docs

> [card] [Quickstart](https://docs.sajn.se/get-started/quickstart.md)
>
> Send your first document and download the signed PDF.

> [card] [Core concepts](https://docs.sajn.se/concepts/documents.md)
>
> Documents, parties, fields, templates, and how they fit together.

> [card] [Guides](https://docs.sajn.se/guides/documents/create-document.md)
>
> Task-by-task guides for documents, fields, templates, and embedding.

> [card] [Webhooks](https://docs.sajn.se/webhooks/overview.md)
>
> Get an HTTP request when a document is signed, completed, or rejected.

> [card] [API fundamentals](https://docs.sajn.se/api-fundamentals/errors.md)
>
> Errors, pagination, rate limits, idempotency, and OAuth.

> [card] [Build with AI](https://docs.sajn.se/ai/overview.md)
>
> Use these docs and your workspace from an AI assistant.

> [card] [Upgrading](https://docs.sajn.se/upgrading/2026-10.md)
>
> Move an integration from `2026-09` to `2026-10`.

> [card] [sajn Login](https://docs.sajn.se/login/overview.md)
>
> Log your own users in with BankID.

## Tools

* **OpenAPI specification:** `https://app.sajn.se/api/v1/openapi`. Use it to generate a typed client.
* **Postman:** import the [starter collections](https://docs.sajn.se/get-started/postman.md).

## Get developer updates

To hear about new endpoints, breaking changes, and deprecations before they ship, turn on developer updates in the sajn app under **Inställningar > Utvecklare**. Updates go to your account's email address.

For help, contact [dev@sajn.se](mailto:dev@sajn.se).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.