API reference
Authentication
Sessions for people at a browser: sign in, sign out, change a password.
POST/auth/register
Create a user, their first organisation, and a session
One transaction: a user without an organisation cannot own an envelope, so a partial registration is an account that cannot do the thing it was created for. The registrant is the organisation OWNER. token is returned once and never again. A taken address answers EMAIL_UNAVAILABLE, which is an enumeration oracle and is one on purpose: the flow that closes it (accept, say nothing, send mail) needs a delivery channel this deployment does not have, and a registration that silently does nothing is worse. The only password rule is length: at least 12 characters, at most 256 bytes, no composition rules, no forced rotation.
Authentication None
Request body
emailstringrequired3 to 254 characterspasswordstringrequired12 to 256 charactersnamestring1 to 200 charactersorganisationNamestringrequired1 to 200 characters
Response 201
The account, and a session for it. token is shown here and nowhere else.
Response fields
tokenstringsessionIdstringexpiresAtstringdate-timeuserobjectidstringemailstringnamestring or any or nullemailVerifiedAtstring or any or nulllocalestringtimezonestring
organisationobjectidstringnamestringslugstring
rolestringOne of
"OWNER","ADMIN","MANAGER","MEMBER"scopesarray of string
Errors
curl -X POST https://api.signrs.com/api/v1/auth/register \
-H "Content-Type: application/json" \
-d '{
"email": "dana.ruiz@example.com",
"password": "your password",
"name": "Dana Ruiz",
"organisationName": "example"
}'{
"token": "example",
"sessionId": "ses_6Hn3kQw8",
"expiresAt": "2026-11-03T16:51:04.087Z",
"user": {
"id": "env_8kR4tZp1",
"email": "dana.ruiz@example.com",
"name": "Dana Ruiz",
"emailVerifiedAt": "2026-11-03T16:51:04.087Z",
"locale": "example",
"timezone": "example"
},
"organisation": {
"id": "env_8kR4tZp1",
"name": "Dana Ruiz",
"slug": "example"
},
"role": "OWNER",
"scopes": [
"example"
]
}POST/auth/login
Exchange an email and password for a session
A wrong password and an unknown address are the same answer and take the same time: INVALID_CREDENTIALS, always. The difference is a membership oracle, and the accounts it enumerates belong to the people whose signatures this system exists to protect: so an unknown address still runs a full password verification against a fixed dummy hash. Attempts are counted per address and per IP before anything is compared, because a limiter that counts only failures tells an attacker which guesses were close. MFA_REQUIRED means the password was right and a second factor is outstanding; this deployment cannot yet verify one, so such an account cannot sign in rather than signing in without it.
Authentication None
Request body
emailstringrequired3 to 254 characterspasswordstringrequired1 to 1024 characters
Response 200
A session. token is shown here and nowhere else.
Response fields
tokenstringsessionIdstringexpiresAtstringdate-timeuserobjectidstringemailstringnamestring or any or nullemailVerifiedAtstring or any or nulllocalestringtimezonestring
organisationobjectidstringnamestringslugstring
rolestringOne of
"OWNER","ADMIN","MANAGER","MEMBER"scopesarray of string
Errors
curl -X POST https://api.signrs.com/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "dana.ruiz@example.com",
"password": "your password"
}'{
"token": "example",
"sessionId": "ses_6Hn3kQw8",
"expiresAt": "2026-11-03T16:51:04.087Z",
"user": {
"id": "env_8kR4tZp1",
"email": "dana.ruiz@example.com",
"name": "Dana Ruiz",
"emailVerifiedAt": "2026-11-03T16:51:04.087Z",
"locale": "example",
"timezone": "example"
},
"organisation": {
"id": "env_8kR4tZp1",
"name": "Dana Ruiz",
"slug": "example"
},
"role": "OWNER",
"scopes": [
"example"
]
}GET/auth/me
Who this session is, and what it can do
The sender UI's whole bootstrap: the user, the organisation, the role, the resolved scopes, the AAL and impersonatedBy, in one call. A UI that must ask four endpoints to decide what to render will get one of them wrong, and the one it gets wrong will be the authorisation. impersonatedBy is non-null when a member of staff is acting as this user, and is said plainly rather than left to be inferred. SESSION_EXPIRED is distinguished from UNAUTHENTICATED because the recovery differs: sign in again, rather than check what you sent.
Authentication Sender session
Response 200
The session, resolved
Response fields
sessionIdstringuserobjectidstringemailstringnamestring or any or nullemailVerifiedAtstring or any or nulllocalestringtimezonestring
organisationobjectidstringnamestringslugstring
rolestringOne of
"OWNER","ADMIN","MANAGER","MEMBER"scopesarray of stringaalstring or any or nullexpiresAtstringdate-timeimpersonatedBystring or any or null
Errors
curl https://api.signrs.com/api/v1/auth/me \
-H "Authorization: Bearer $SESSION_TOKEN"{
"sessionId": "ses_6Hn3kQw8",
"user": {
"id": "env_8kR4tZp1",
"email": "dana.ruiz@example.com",
"name": "Dana Ruiz",
"emailVerifiedAt": "2026-11-03T16:51:04.087Z",
"locale": "example",
"timezone": "example"
},
"organisation": {
"id": "env_8kR4tZp1",
"name": "Dana Ruiz",
"slug": "example"
},
"role": "OWNER",
"scopes": [
"example"
],
"aal": "example",
"expiresAt": "2026-11-03T16:51:04.087Z",
"impersonatedBy": "example"
}POST/auth/logout
End this session
This session only. Others are listed and ended through /auth/sessions.
Authentication Sender session
Response 204
Ended
Errors
curl -X POST https://api.signrs.com/api/v1/auth/logout \
-H "Authorization: Bearer $SESSION_TOKEN"Response 204: no body.
GET/auth/sessions
Every session this user currently holds
Only the ones that would still be admitted: a list showing sessions that cannot act would invite ending something already ended. current marks the one making the request, which a client cannot work out for itself.
Authentication Sender session
Response 200
The live sessions
Response fields
dataarray of objectidstringcurrentbooleanipstring or any or nulluserAgentstring or any or nullaalstring or any or nullcreatedAtstringdate-timelastSeenAtstringdate-timeexpiresAtstringdate-time
Errors
curl https://api.signrs.com/api/v1/auth/sessions \
-H "Authorization: Bearer $SESSION_TOKEN"{
"data": [
{
"id": "env_8kR4tZp1",
"current": true,
"ip": "example",
"userAgent": "example",
"aal": "example",
"createdAt": "2026-11-03T16:51:04.087Z",
"lastSeenAt": "2026-11-03T16:51:04.087Z",
"expiresAt": "2026-11-03T16:51:04.087Z"
}
]
}DELETE/auth/sessions/{id}
End another session
Scoped to this user's own sessions. A session belonging to somebody else is NOT_FOUND rather than FORBIDDEN: the answer must not confirm that the ID exists.
Authentication Sender session
Parameters
idpath · stringrequired
Response 204
Ended
Errors
curl -X DELETE https://api.signrs.com/api/v1/auth/sessions/env_8kR4tZp1 \
-H "Authorization: Bearer $SESSION_TOKEN"Response 204: no body.
POST/auth/password
Change the password, proving the current one
Revokes every other session and keeps this one. Revoking all of them logs the person out of the browser they just used, which trains people to avoid changing passwords; keeping only this one is the property that matters: whoever else was in the account is now out. sessionsRevoked says how many that was.
Authentication Sender session
Request body
currentPasswordstringrequired1 to 1024 charactersnewPasswordstringrequired12 to 256 characters
Response 200
Changed, with the number of other sessions ended
Response fields
sessionsRevokedinteger
Errors
curl -X POST https://api.signrs.com/api/v1/auth/password \
-H "Authorization: Bearer $SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"currentPassword": "your password",
"newPassword": "your password"
}'{
"sessionsRevoked": 1
}