Skip to content
Docs
Qubitara eSign

Authentication

Updated Version 1ESIGN-47

This page is for developers who plan to call the Qubitara eSign REST API. It describes the planned rules for authentication and requests, so that you can design your integration early.

API keys#

An API key is a secret that your server sends with each call. Each key belongs to one organization. The plan is that you create and revoke keys under Settings → SYSTEM → Integrations.

Planned behavior:

Property

Planned value

Scope

One organization (the <org> in your base URL)

Who can create

Owner or Admin role

Format

Opaque string with a recognisable prefix, for example qes_live_...

Visibility

Shown once at creation; stored hashed

Rotation

Create a second key, migrate, then revoke the first. Revocation is immediate

Audit

Key creation, revocation and API-originated actions appear in Audit Logs with the key name as the actor

This page covers API keys only. It does not cover OAuth 2.0.

Request headers#

The plan is that you send the key as a bearer token.

bash
curl "https://<org>.esign.qubitara.com/api/v1/signature-requests" \
  -H "Authorization: Bearer $QUBITARA_API_KEY" \
  -H "Accept: application/json"

Header

Required

Purpose

Authorization: Bearer <api_key>

Yes

Authenticates the request

Content-Type: application/json

For JSON bodies

Request body encoding. File uploads use multipart/form-data

Accept: application/json

Recommended

Response encoding

Idempotency-Key: <uuid>

Optional

Safe retry of POST requests that create or send. Same key within 24 hours returns the original response

X-Request-Id

Response only

Echo this value when contacting support

Most e-signature APIs do not offer idempotency keys on create calls. If Qubitara eSign does not support Idempotency-Key at release, check for an existing request before you retry a POST.

Environments#

Environment

Host

Notes

Production

https://<org>.esign.qubitara.com/api/v1/

Observed base URL pattern

Sandbox

Not decided

Either a separate host or a "test_mode": true flag on create requests, so that test requests do not consume signing credits or send binding requests

It is not decided whether test requests use signing credits. See Billing for how credits work.

Rate limits#

A rate limit is the largest number of calls you can make in a period of time. The planned behavior follows common industry practice:

  • Limits are planned to apply per organization and per API key.

  • Every response is planned to carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix epoch seconds).

  • When you go over the limit, the API is planned to return HTTP 429 Too Many Requests with a Retry-After header (seconds).

  • Do not poll one signature request more often than once every few minutes. Use Webhooks for status changes.

This example handles 429 in Node.js:

js
const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.QUBITARA_API_KEY}` } });
if (res.status === 429) {
  const wait = Number(res.headers.get("Retry-After") ?? 5);
  await new Promise(r => setTimeout(r, wait * 1000));
  // retry with exponential backoff, cap attempts
}

Error responses#

The plan is that every error returns a JSON body. The body has a stable code for your program and a message for people.

json
{
  "error": {
    "code": "validation_failed",
    "message": "recipients[0].email is not a valid email address",
    "request_id": "req_01J8Z1ABCXYZ",
    "details": [
      { "field": "recipients[0].email", "issue": "invalid_format" }
    ]
  }
}

HTTP status

code (indicative)

Meaning

400

bad_request

Malformed JSON or unknown parameter

401

unauthorized

Missing, revoked or invalid API key

402

insufficient_credits

Organization has no signing credits left. See Billing

403

forbidden

Key lacks permission, or the resource belongs to another organization

404

not_found

Resource does not exist or is not visible to this key

409

invalid_state

Action not allowed in the current status, for example voiding a Finalized request

415

unsupported_file_type

Upload is not a PDF (see Known limitations)

422

validation_failed

Semantically invalid, for example no signer or no field

429

rate_limited

Slow down, honour Retry-After

500

internal_error

Retry with backoff; include request_id in support tickets

503

unavailable

Maintenance; retry later

Every row in this table is planned and may change. The 402 row comes from a fact seen in the product: you need signing credits to send. The API may report this as 402, 403 or 422.

Pagination#

List endpoints return results in pages. The planned shape uses a cursor (a marker that points to the next page):

text
GET /api/v1/signature-requests?limit=50&cursor=eyJpZCI6...
json
{
  "data": [ { "id": "sr_01J8Z...", "status": "sent" } ],
  "has_more": true,
  "next_cursor": "eyJpZCI6..."
}

Parameter

Default

Max

limit

25

100

cursor

none

Opaque; pass next_cursor from the previous page

These filters are planned for list endpoints: status, created_after, created_before, and q for name search.

Timestamps, IDs and encoding#

The plan is:

  • Timestamps are ISO 8601 in UTC with a Z suffix, for example 2026-09-28T09:15:00Z.

  • Resource IDs are opaque strings. Do not parse them.

  • File content in JSON bodies is base64. For large files, use the multipart upload endpoint.

  • Requests and responses are UTF-8.

Security checklist for integrators#

  1. Store keys in a secrets manager and load them at run time.

  2. Use one key for each integration. You can then revoke one key without an effect on the others.

  3. Rotate keys when a team member with access leaves.

  4. Verify every webhook signature before you trust a payload. See Webhooks.

  5. Review Audit Logs in the Organization Workspace for events that come from the API. See Audit trail.

Next steps#