Multi-tenancy & Headers
DokStamp is a multi-tenant platform. Every resource — institutions, courses, students, certificates — is fully isolated within a tenant. There is no cross-tenant data access.Required headers
All resource endpoints (everything except/auth/*) require these two headers:
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer {access_token} |
Accept | Yes | application/json |
X-Tenant | Yes | Your tenant identifier (provided by DokStamp) |
Example
Finding your tenant identifier
Your tenant identifier is configured when your account is created. You can retrieve it from:- The DokStamp admin dashboard under Settings → API
- The response body of
GET /auth/me:
tenant.domain value as your X-Tenant header.
Tenant isolation rules
- Data created under one tenant is never visible to another tenant.
- UUIDs are globally unique, but all read/write operations are filtered by tenant.
- Attempting to access a resource that belongs to a different tenant returns
404 Not Found(not403) — this prevents enumeration attacks.