{"openapi":"3.1.0","info":{"title":"Displacement AI Public Research & Risk Assessment API","version":"1.0 (DAI-2026.4)","description":"Empirical AI workforce exposure tracker, task-level automation vs. augmentation risk calculator, and labor economics observatory covering 32 O*NET / BLS occupations. Canonical endpoints are URL-versioned under /api/v1/. Breaking schema changes ship only under a new major version path (/api/v2/) with at least 90 days of RFC 8594 Deprecation and Sunset headers. All failures return RFC 9457 application/problem+json.","contact":{"name":"Displacement AI Developer Support","url":"https://displacement.ai/docs","email":"api@displacement.ai"},"license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"}},"externalDocs":{"description":"Displacement AI API Documentation","url":"https://displacement.ai/docs"},"servers":[{"url":"https://displacement.ai","description":"Primary Production Observatory (v1)"}],"paths":{"/api/v1/occupations":{"get":{"operationId":"listOccupationsV1","summary":"List and filter 32 benchmark O*NET / BLS occupations with AI exposure metrics","parameters":[{"name":"sector","in":"query","required":false,"schema":{"type":"string","enum":["software-data","clerical-admin","finance-legal","customer-ops","creative-media","healthcare","education","skilled-trades"]}},{"name":"regime","in":"query","required":false,"schema":{"type":"string","enum":["displacement-pressure","role-compression","augmentation-leverage","structurally-resilient"]}},{"name":"q","in":"query","required":false,"description":"Case-insensitive search across title, SOC code, and summary.","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["observedExposure","theoreticalExposure","automationShare","entryLevelSqueeze","medianWageUsd","usEmploymentK","outlook2030Pct"]}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"Filtered JSON catalog of benchmark occupations.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccupationsListResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}}},"/api/v1/assess":{"get":{"operationId":"assessRoleGetV1","summary":"Compute an audited AI displacement & augmentation assessment via query parameters","parameters":[{"name":"occupation","in":"query","required":false,"schema":{"type":"string","default":"software-developers"}},{"name":"seniority","in":"query","required":false,"schema":{"type":"string","enum":["entry","mid","senior","executive"]}},{"name":"aiAdoption","in":"query","required":false,"schema":{"type":"string","enum":["none","adhoc","copilot","agentic"]}},{"name":"regulatoryFriction","in":"query","required":false,"schema":{"type":"string","enum":["low","moderate","high"]}},{"name":"orgSize","in":"query","required":false,"schema":{"type":"string","enum":["startup","midmarket","enterprise"]}}],"responses":{"200":{"description":"Audited DAI-2026.4 risk assessment payload.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}},"post":{"operationId":"assessRolePostV1","summary":"Compute an audited AI displacement assessment with custom task-mix weights","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentInput"}}}},"responses":{"200":{"description":"Audited DAI-2026.4 risk assessment payload.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}}},"/api/occupations":{"get":{"operationId":"listOccupationsAlias","summary":"List and filter 32 benchmark O*NET / BLS occupations with AI exposure metrics","parameters":[{"name":"sector","in":"query","required":false,"schema":{"type":"string","enum":["software-data","clerical-admin","finance-legal","customer-ops","creative-media","healthcare","education","skilled-trades"]}},{"name":"regime","in":"query","required":false,"schema":{"type":"string","enum":["displacement-pressure","role-compression","augmentation-leverage","structurally-resilient"]}},{"name":"q","in":"query","required":false,"description":"Case-insensitive search across title, SOC code, and summary.","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["observedExposure","theoreticalExposure","automationShare","entryLevelSqueeze","medianWageUsd","usEmploymentK","outlook2030Pct"]}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"Filtered JSON catalog of benchmark occupations.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccupationsListResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}}},"/api/assess":{"get":{"operationId":"assessRoleGetAlias","summary":"Compute an audited AI displacement & augmentation assessment via query parameters","parameters":[{"name":"occupation","in":"query","required":false,"schema":{"type":"string","default":"software-developers"}},{"name":"seniority","in":"query","required":false,"schema":{"type":"string","enum":["entry","mid","senior","executive"]}},{"name":"aiAdoption","in":"query","required":false,"schema":{"type":"string","enum":["none","adhoc","copilot","agentic"]}},{"name":"regulatoryFriction","in":"query","required":false,"schema":{"type":"string","enum":["low","moderate","high"]}},{"name":"orgSize","in":"query","required":false,"schema":{"type":"string","enum":["startup","midmarket","enterprise"]}}],"responses":{"200":{"description":"Audited DAI-2026.4 risk assessment payload.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}},"post":{"operationId":"assessRolePostAlias","summary":"Compute an audited AI displacement assessment with custom task-mix weights","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentInput"}}}},"responses":{"200":{"description":"Audited DAI-2026.4 risk assessment payload.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResponse"}}}},"400":{"$ref":"#/components/responses/BadRequestProblem"},"405":{"$ref":"#/components/responses/MethodNotAllowedProblem"},"429":{"$ref":"#/components/responses/TooManyRequestsProblem"}}}}},"components":{"responses":{"BadRequestProblem":{"description":"Invalid query parameter, unknown occupation ID, or malformed JSON body.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"NotFoundProblem":{"description":"Requested API endpoint does not exist.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"MethodNotAllowedProblem":{"description":"HTTP method is not supported on this endpoint.","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}},"Allow":{"description":"Permitted HTTP methods for this resource.","schema":{"type":"string","example":"GET, POST"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"TooManyRequestsProblem":{"description":"Rate limit exceeded (120 requests per 60 seconds).","headers":{"X-API-Version":{"description":"Major.minor REST API version.","schema":{"type":"string","example":"1.0"}},"X-Model-Version":{"description":"Displacement AI scoring model release identifier.","schema":{"type":"string","example":"DAI-2026.4"}},"RateLimit-Policy":{"description":"RFC RateLimit policy window (requests per window in seconds).","schema":{"type":"string","example":"120;w=60"}},"RateLimit":{"description":"RFC RateLimit quota status for the current window.","schema":{"type":"string","example":"limit=120, remaining=119, reset=60"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","example":60}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"schemas":{"ProblemDetails":{"type":"object","required":["ok","type","title","status","detail","code","message","resolution"],"properties":{"ok":{"type":"boolean","const":false},"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"resolution":{"type":"string"},"docsUrl":{"type":"string","format":"uri"},"openapiUrl":{"type":"string","format":"uri"},"error":{"type":"object","required":["code","message","resolution"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"resolution":{"type":"string"},"details":{"type":"object","additionalProperties":true}}}}},"OccupationRecord":{"type":"object","required":["id","soc","title","sector","usEmploymentK","medianWageUsd","theoreticalExposure","observedExposure","automationShare","entryLevelSqueeze","regulatoryFriction","regime","outlook2030Pct"],"properties":{"id":{"type":"string","example":"software-developers"},"soc":{"type":"string","example":"15-1252"},"title":{"type":"string"},"shortTitle":{"type":"string"},"sector":{"type":"string"},"usEmploymentK":{"type":"number"},"medianWageUsd":{"type":"number"},"theoreticalExposure":{"type":"number"},"observedExposure":{"type":"number"},"automationShare":{"type":"number"},"entryLevelSqueeze":{"type":"number"},"regulatoryFriction":{"type":"string","enum":["low","moderate","high"]},"regime":{"type":"string"},"outlook2030Pct":{"type":"number"},"automatingTasks":{"type":"array","items":{"type":"string"}},"augmentingTasks":{"type":"array","items":{"type":"string"}},"humanMoats":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"}}},"OccupationsListResponse":{"type":"object","required":["ok","apiVersion","modelVersion","totalBenchmarkCount","returnedCount","occupations"],"properties":{"ok":{"type":"boolean","const":true},"apiVersion":{"type":"string","example":"1.0"},"modelVersion":{"type":"string","example":"DAI-2026.4"},"updatedAt":{"type":"string"},"totalBenchmarkCount":{"type":"integer"},"returnedCount":{"type":"integer"},"links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"assess":{"type":"string","format":"uri"},"docs":{"type":"string","format":"uri"},"llms":{"type":"string","format":"uri"},"openapi":{"type":"string","format":"uri"}}},"occupations":{"type":"array","items":{"$ref":"#/components/schemas/OccupationRecord"}}}},"AssessmentInput":{"type":"object","properties":{"occupationId":{"type":"string","example":"software-developers"},"seniority":{"type":"string","enum":["entry","mid","senior","executive"]},"routineDigitalPct":{"type":"number","minimum":0,"maximum":100},"judgmentInterpersonalPct":{"type":"number","minimum":0,"maximum":100},"physicalOnsitePct":{"type":"number","minimum":0,"maximum":100},"aiAdoption":{"type":"string","enum":["none","adhoc","copilot","agentic"]},"regulatoryFriction":{"type":"string","enum":["low","moderate","high"]},"orgSize":{"type":"string","enum":["startup","midmarket","enterprise"]}}},"AssessmentResult":{"type":"object","required":["modelVersion","displacementPressure","augmentationLeverage","adjustedObservedExposure","resilienceIndex","pipelineRisk","trajectoryClass","factorBreakdown","horizonCurve"],"properties":{"modelVersion":{"type":"string"},"occupation":{"$ref":"#/components/schemas/OccupationRecord"},"displacementPressure":{"type":"integer","minimum":4,"maximum":95},"augmentationLeverage":{"type":"integer","minimum":8,"maximum":96},"adjustedObservedExposure":{"type":"integer","minimum":3,"maximum":96},"resilienceIndex":{"type":"integer"},"pipelineRisk":{"type":"integer"},"trajectoryClass":{"type":"string"},"trajectorySummary":{"type":"string"},"factorBreakdown":{"type":"array","items":{"type":"object","required":["label","delta","note"],"properties":{"label":{"type":"string"},"delta":{"type":"integer"},"note":{"type":"string"}}}},"horizonCurve":{"type":"array","items":{"type":"object","required":["year","automatedPct","augmentedPct","humanCorePct"],"properties":{"year":{"type":"integer"},"automatedPct":{"type":"integer"},"augmentedPct":{"type":"integer"},"humanCorePct":{"type":"integer"}}}}}},"AssessmentResponse":{"type":"object","required":["ok","apiVersion","generatedAt","assessment"],"properties":{"ok":{"type":"boolean","const":true},"apiVersion":{"type":"string","example":"1.0"},"generatedAt":{"type":"string","format":"date-time"},"assessment":{"$ref":"#/components/schemas/AssessmentResult"}}}}}}