Production contracts, secure authentication patterns and practical examples for tenant integrations.
Base URLhttps://api.relay.techminemw.com/api/v1
01 · Start
Quickstart
Check service health, authenticate a tenant user and send the bearer token with subsequent requests. Relay returns an X-Correlation-ID on every response.
Protected endpoints use scoped bearer tokens. Store tokens server-side or in platform secure storage, revoke them on logout and never place credentials in URLs or logs.
Relay resolves a user’s tenant from authenticated membership. Clients cannot assign arbitrary tenant IDs. Authorized multi-tenant users may select a membership using X-Tenant-ID; branch scope remains permission-controlled.
04 · Reliability
Idempotency
Commands that create external side effects require stable idempotency identifiers. Reuse the same identifier when retrying an uncertain request; never generate a new identifier for the same business action.
Collection endpoints accept page and per_page (maximum 100). Resource-specific filters use explicit query parameters documented in the OpenAPI contract.
06 · Recovery
Consistent errors
Use HTTP status codes to choose recovery behavior: 401 re-authenticates, 403 requests permission, 409 refreshes stale state and 422 presents field-level validation feedback. Retain the response correlation ID for support.
07 · Events
Webhook verification
Read the raw request body, verify the HMAC signature using the endpoint secret, reject stale delivery timestamps and persist event IDs before applying changes. Successful handlers must be idempotent.