Documentation
/ Diagrams
Auth flow
Two independent auth rails. Never mix keys across rails.
sequenceDiagram
participant App as Partner app
participant API as Labored API
participant PK as requests_api_keys
participant CK as labored_company_api_keys
Note over App,API: Lead ingest
App->>API: POST /submit_request<br/>X-API-Key: partner_hex
API->>PK: lookup active key
PK-->>API: partner_name / limits
API-->>App: 201 success or 401/403
Note over App,API: Media / profile
App->>API: GET /media?company_id=N<br/>X-API-Key: lbr_�
API->>CK: hash(key) match + company_id
CK-->>API: company_id
API-->>App: portfolio JSON (absolute URLs)
Headers
| Header | Value |
|---|---|
X-API-Key |
Preferred |
Authorization: Bearer � |
Accepted |
Body/query api_key |
Accepted fallback |
Failure modes
| HTTP | Meaning |
|---|---|
| 401 | Missing key |
| 403 | Inactive key or wrong company |
| 400 | Missing company_id on company endpoints |