Senlay Risk Events API
Coordinate-level threshold events and unknowns for operator review; not a safety authority.
Coordinate-level threshold events and unknowns for operator review; not a safety authority.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/senlay-cloud:senlay-cloud-risk-events-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Senlay Environmental Evidence Risk Events API
version: 1.0.0-beta
description: Senlay provides physical-world environmental intelligence for autonomous systems, robotics and AI applications. Its evaluation beta returns available coordinate-level environmental evidence through REST and MCP, including measured/model provenance, source age, spatial relevance, conflicts and explicit unknowns. For drones, Senlay presents wind observations and available model indications of rain and thunderstorms. Local rainfall and lightning are not directly measured by this assessment. Aircraft limits, route, altitude, visibility and operational permission remain outside its scope. Decision support only.
contact:
name: Senlay Support
email: viktor@senlay.cloud
url: https://senlay.cloud/support.html
servers:
- url: https://senlay.cloud
description: Current public Senlay API
tags:
- name: Risk Events
description: Coordinate-level threshold events and unknowns for operator review; not a safety authority.
paths:
/api/v1/risk-events:
get:
tags:
- Risk Events
summary: Current operational risk events
description: Authenticated endpoint returning active risk_event objects derived from Senlay evidence. Use this for station/lifeguard alerting workflows.
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/lat'
- $ref: '#/components/parameters/lng'
- $ref: '#/components/parameters/field'
- $ref: '#/components/parameters/profile'
responses:
'200':
description: Active risk events
content:
application/json:
schema:
$ref: '#/components/schemas/RiskEventsResponse'
headers:
X-Senlay-Refresh-Remaining:
description: Remaining admitted refreshes in the caller pool/account this hour; provider access and account daily limits also apply.
schema:
type: integer
X-Senlay-Poll-Interval:
description: Recommended minimum pilot polling interval in seconds.
schema:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: Refresh pool or in-flight capacity exhausted. Retry-After and JSON code/retry_after_seconds explain when to retry. Cache hits and coalesced readers do not consume a new refresh. Public traffic and authenticated pilots have separate pools.
operationId: getApiV1RiskEvents
x-operation-id-source: derived
post:
tags:
- Risk Events
summary: Current operational risk events with tracker context
description: Authenticated endpoint that combines coordinate context with optional SmartSurf tracker, station, and geofence data.
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RiskEventsRequest'
responses:
'200':
description: Active risk events
content:
application/json:
schema:
$ref: '#/components/schemas/RiskEventsResponse'
headers:
X-Senlay-Refresh-Remaining:
description: Remaining admitted refreshes in the caller pool/account this hour; provider access and account daily limits also apply.
schema:
type: integer
X-Senlay-Poll-Interval:
description: Recommended minimum pilot polling interval in seconds.
schema:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: Refresh pool or in-flight capacity exhausted. Retry-After and JSON code/retry_after_seconds explain when to retry. Cache hits and coalesced readers do not consume a new refresh. Public traffic and authenticated pilots have separate pools.
parameters:
- $ref: '#/components/parameters/profile'
operationId: postApiV1RiskEvents
x-operation-id-source: derived
/api/v1/risk-events/recent:
get:
tags:
- Risk Events
summary: Recent persisted risk events
description: Authenticated endpoint reading durable risk_event records for audit, alert review, and station logs.
security:
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/latOptional'
- $ref: '#/components/parameters/lngOptional'
- $ref: '#/components/parameters/field'
- name: type
in: query
required: false
schema:
type: string
- name: severity
in: query
required: false
schema:
type: string
enum:
- info
- watch
- moderate
- high
- critical
- name: subject_type
in: query
required: false
schema:
type: string
- name: subject_id
in: query
required: false
schema:
type: string
- $ref: '#/components/parameters/hours'
- $ref: '#/components/parameters/limit'
responses:
'200':
description: Recent risk event records
content:
application/json:
schema:
$ref: '#/components/schemas/RecentRiskEventsResponse'
headers:
X-Senlay-Refresh-Remaining:
description: Remaining admitted refreshes in the caller pool/account this hour; provider access and account daily limits also apply.
schema:
type: integer
X-Senlay-Poll-Interval:
description: Recommended minimum pilot polling interval in seconds.
schema:
type: integer
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
'503':
description: Refresh pool or in-flight capacity exhausted. Retry-After and JSON code/retry_after_seconds explain when to retry. Cache hits and coalesced readers do not consume a new refresh. Public traffic and authenticated pilots have separate pools.
operationId: getApiV1RiskEventsRecent
x-operation-id-source: derived
/api/v1/risk/taxonomy:
get:
tags:
- Risk Events
summary: SmartSurf risk taxonomy
description: Public endpoint returning SmartSurf alert bands, hazard families, MVP-detectable signals, later Senlay phases, source priorities, and safety wording boundaries.
responses:
'200':
description: SmartSurf risk taxonomy
content:
application/json:
schema:
$ref: '#/components/schemas/RiskTaxonomyResponse'
'429':
$ref: '#/components/responses/RateLimited'
operationId: getApiV1RiskTaxonomy
x-operation-id-source: derived
components:
schemas:
RiskEvent:
type: object
properties:
id:
type: string
contract:
$ref: '#/components/schemas/ContractRef'
schema_version:
type: string
type:
type: string
examples:
- loss_of_power_drift_risk
- offshore_drift_risk
category:
type: string
examples:
- water_safety
- human_safety
- telemetry
severity:
type: string
enum:
- info
- watch
- moderate
- high
- critical
score:
type: integer
minimum: 0
maximum: 100
confidence:
type: string
status:
type: string
examples:
- active
subject:
type: object
additionalProperties: true
location:
type: object
additionalProperties: true
observed_at:
type: string
format: date-time
valid_until:
type: string
format: date-time
title:
type: string
summary:
type: string
trigger:
type: object
additionalProperties: true
evidence_refs:
type: array
items:
type: object
additionalProperties: true
recommended_action:
type: string
escalation:
type: object
additionalProperties: true
additionalProperties: true
ConflictClaim:
type: object
properties:
source:
type: string
status:
type: string
enum:
- measured
- predicted
value:
type: number
units:
type: string
distance_km:
type:
- number
- 'null'
age_seconds:
type:
- integer
- 'null'
Conflict:
type: object
description: A structured, named disagreement between contributing sources for one variable. Conflicts are reported, not averaged away.
properties:
variable:
type: string
label:
type: string
claims:
type: array
items:
$ref: '#/components/schemas/ConflictClaim'
delta:
type: number
abs_delta:
type: number
units:
type: string
magnitude:
type: string
enum:
- moderate
- significant
severity:
type: string
enum:
- minor
- major
plausible_cause:
type:
- string
- 'null'
EvidenceSummary:
type: object
properties:
contract:
$ref: '#/components/schemas/ContractRef'
count:
type: integer
coverage:
$ref: '#/components/schemas/EvidenceCoverage'
record:
type: object
additionalProperties: true
link:
type: string
RiskEventsRequest:
type: object
required:
- lat
- lng
properties:
lat:
type: number
minimum: -90
maximum: 90
lng:
type: number
minimum: -180
maximum: 180
field:
type: string
examples:
- kitesurfing
- surfing
- sailing
subject:
type: object
description: Optional tracker/rider/asset context for SmartSurf-style risk detection.
additionalProperties: true
properties:
type:
type: string
examples:
- tracker
id:
type: string
label:
type: string
lat:
type: number
lng:
type: number
speed_kmh:
type: number
heading_deg:
type: number
minutes_stationary:
type: number
battery_pct:
type: number
last_seen_at:
type: string
format: date-time
station:
type: object
additionalProperties: true
geofence:
type: object
additionalProperties: true
WeatherEvidenceMetadata:
type: object
description: Normalized weather sample provenance and time metadata; not a substitute for source values or authorization evidence.
additionalProperties: true
required:
- kind
- source_timestamp
- freshness
- age_seconds
- valid_at
- validity
- fields
- units
- location
properties:
kind:
type: string
enum:
- measured
- forecast
source_timestamp:
type: string
format: date-time
nullable: true
freshness:
type: string
enum:
- fresh
- stale
- future_timestamp
- unknown
age_seconds:
type: number
nullable: true
valid_at:
type: string
format: date-time
nullable: true
valid_at_relation:
type: string
enum:
- before_now
- at_now
- after_now
- unknown
nullable: true
description: Relationship of the point valid_at timestamp to response evaluation time; not a validity interval.
validity:
type: string
enum:
- current
- not_yet_valid
- expired
- unknown
nullable: true
description: Provider validity interval state; unknown when only point valid_at is available.
fields:
type: array
items:
type: string
units:
type: object
additionalProperties:
type: string
location:
type: object
required:
- lat
- lng
- distance_km
- relevance
additionalProperties: true
properties:
lat:
type: number
nullable: true
lng:
type: number
nullable: true
distance_km:
type: number
nullable: true
relevance:
type: string
RiskEventSummary:
type: object
properties:
contract:
$ref: '#/components/schemas/ContractRef'
count:
type: integer
max_severity:
type: string
examples:
- none
- moderate
- high
- critical
max_score:
type: integer
alert_required:
type: boolean
acknowledgement_required:
type: boolean
notify:
type: array
items:
type: string
counts_by_severity:
type: object
additionalProperties: true
active_types:
type: array
items:
type: string
ProviderCapability:
type: object
description: Versioned additive provider metadata. Consumers should preserve unknown properties and treat missing fields as unknown.
additionalProperties: true
required:
- schema_version
- provider
- source
- configured
- authorization
- attempted
- healthy
- fresh
- source_status
- kind
- forecast_only
- supported_fields
- samples
- sample_count
- samples_truncated
- limitations
- refresh_limits
- shared_request_cache
properties:
schema_version:
type: string
enum:
- '1'
provider:
type: string
source:
type: string
configured:
type: boolean
authorization:
type: string
enum:
- authorized
- unknown
attempted:
type: boolean
nullable: true
healthy:
type: boolean
fresh:
type: boolean
nullable: true
source_status:
type: string
kind:
type: string
enum:
- measured
- forecast
forecast_only:
type: boolean
supported_fields:
type: array
items:
type: string
samples:
type: array
items:
$ref: '#/components/schemas/WeatherEvidenceMetadata'
sample_count:
type: integer
minimum: 0
samples_truncated:
type: boolean
limitations:
type: array
items:
type: string
refresh_limits:
type: object
additionalProperties: true
properties:
max_results:
type: integer
minimum: 0
max_requests:
type: integer
minimum: 0
request_timeout_ms:
type: integer
source_batch_deadline_ms:
type: integer
nullable: true
request_bounds:
type: object
additionalProperties: true
sample_preview_limit:
type: integer
provider_quota:
type: string
shared_request_cache:
type: object
nullable: true
additionalProperties: true
properties:
mode:
type: string
hit:
type: boolean
age_ms:
type: number
nullable: true
ttl_ms:
type: number
nullable: true
coalesced:
type: boolean
ConfidenceComponents:
type: object
description: Confidence decomposed into four independently reported components instead of one opaque scalar.
properties:
source_agreement:
$ref: '#/components/schemas/ConfidenceComponent'
freshness:
$ref: '#/components/schemas/ConfidenceComponent'
spatial_relevance:
$ref: '#/components/schemas/ConfidenceComponent'
evidence_coverage:
$ref: '#/components/schemas/ConfidenceComponent'
RiskTaxonomyResponse:
type: object
properties:
status:
type: string
examples:
- ok
taxonomy:
type: object
additionalProperties: true
AssessmentState:
type: string
enum:
- sufficient
- partial
- insufficient
- unknown
description: Whether usable current evidence covers the groups required for the requested activity. Independent emergency signals can still produce a scored critical risk when environmental evidence is incomplete.
Unknown:
type: object
description: One specific variable that blocked the assessment when outcome is INSUFFICIENT_EVIDENCE.
properties:
variable:
type: string
description: The evidence-requirement group or comparison field that could not support a decision, e.g. "wind_gust".
reason:
type: string
enum:
- no_coverage
- missing_entirely
- conflicting_sources
- stale
detail:
type: string
resolution:
type: string
description: Plainly what would resolve the gap, e.g. "A hardware observation within 15km of the requested coordinate."
RecentRiskEventsResponse:
type: object
properties:
status:
type: string
contract:
$ref: '#/components/schemas/ContractRef'
filters:
type: object
additionalProperties: true
count:
type: integer
records:
type: array
items:
type: object
additionalProperties: true
Outcome:
type: string
enum:
- GO
- CAUTION
- NO_GO
- INSUFFICIENT_EVIDENCE
description: 'GO: conditions within thresholds, evidence adequate. CAUTION: within thresholds but marginal, or a relevant unknown exists. NO_GO: a threshold is exceeded on adequate evidence. INSUFFICIENT_EVIDENCE: the evidence does not support any of the above; see `unknowns` for what is blocking the assessment. This is a normal, successful (HTTP 200) result, never an error.'
RiskAssessment:
type: object
description: Aggregate deterministic SmartSurf/Senlay risk state. A null score and unknown level mean required evidence cannot support a risk score; they must never be interpreted as low risk. Decision support only; not drowning detection or certified rescue dispatch.
properties:
outcome:
$ref: '#/components/schemas/Outcome'
unknowns:
type: array
items:
$ref: '#/components/schemas/Unknown'
confidence_components:
$ref: '#/components/schemas/ConfidenceComponents'
conflicts:
type: array
items:
$ref: '#/components/schemas/Conflict'
assessment_state:
$ref: '#/components/schemas/AssessmentState'
evidence_coverage:
$ref: '#/components/schemas/EvidenceCoverage'
session_phase:
type: string
enum:
- pre_session
- in_session
- post_session
risk_score:
type:
- integer
- 'null'
minimum: 0
maximum: 100
risk_level:
type: string
enum:
- unknown
- low
- medium
- high
- critical
alert_band:
type: object
additionalProperties: true
properties:
id:
type: string
examples:
- watch
- caution
- warning
- critical
label:
type: string
default_text:
type: string
escalation:
type: string
confidence:
type: string
risk_modifiers:
type: array
items:
type: object
additionalProperties: true
reasons:
type: array
items:
type: string
recommended_action:
type: string
escalation_stage:
type: string
incident_state:
type: string
source_provenance:
type: object
additionalProperties: true
score_model:
type: object
additionalProperties: true
safety_disclaimer:
type: string
RiskEventsResponse:
type: object
properties:
status:
type: string
examples:
- ok
contract:
$ref: '#/components/schemas/ContractRef'
view:
type: string
examples:
- risk_events
field:
type: string
assessment_state:
$ref: '#/components/schemas/AssessmentState'
outcome:
$ref: '#/components/schemas/Outcome'
unknowns:
type: array
items:
$ref: '#/components/schemas/Unknown'
confidence_components:
$ref: '#/components/schemas/ConfidenceComponents'
conflicts:
type: array
items:
$ref: '#/components/schemas/Conflict'
coordinates:
type: object
additionalProperties: true
risk_summary:
$ref: '#/components/schemas/RiskEventSummary'
risk_assessment:
$ref: '#/components/schemas/RiskAssessment'
risk_events:
type: array
items:
$ref: '#/components/schemas/RiskEvent'
evidence_summary:
$ref: '#/components/schemas/EvidenceSummary'
evidence_record:
type: object
additionalProperties: true
provider_capabilities:
type: array
description: Additive weather-provider capability metadata. Older servers may omit this field.
items:
$ref: '#/components/schemas/ProviderCapability'
ConfidenceComponent:
type: object
properties:
label:
type: string
enum:
- HIGH
- MEDIUM
- LOW
- UNKNOWN
reason:
type: string
description: Short, human-readable justification for the label. Never a bare number.
additionalProperties: true
EvidenceCoverage:
type: object
properties:
assessment_state:
$ref: '#/components/schemas/AssessmentState'
activity:
type: string
required_groups:
type: array
items:
type: object
properties:
id:
type: string
any_of:
type: array
items:
type: string
satisfied_groups:
type: array
items:
type: string
missing_groups:
type: array
items:
type: string
usable_fields:
type: array
items:
type: string
coverage_ratio:
type:
- number
- 'null'
minimum: 0
maximum: 1
reason:
type: string
ErrorResponse:
type: object
properties:
error:
type: string
ContractRef:
type: object
properties:
name:
type: string
version:
type: string
examples:
- '2026-05-14'
description:
type: string
responses:
Unauthorized:
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
missing:
value:
error: API key required
RateLimited:
description: Rate limit reached
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
text/plain:
schema:
type: string
BadRequest:
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
parameters:
lng:
name: lng
in: query
required: true
schema:
type: number
minimum: -180
maximum: 180
description: Longitude.
lngOptional:
name: lng
in: query
required: false
schema:
type: number
minimum: -180
maximum: 180
description: Optional longitude filter. Provide with lat to filter to one rounded location.
field:
name: field
in: query
required: false
schema:
type: string
examples:
- drone
- kitesurfing
- construction
- agriculture
- sailing
- general
description: Reasoning mode or use case.
hours:
name: hours
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 168
default: 24
description: Lookback window in hours.
profile:
name: profile
in: query
required: false
description: full preserves all environmental layers (bounded collection up to11s); wind requests essential current weather and relevant wind observations (up to5s), omitting marine/air/terrain/history. Partial/missing sources stay explicit. Refresh cache and quota are profile-specific. Use120s or slower polling for initial pilots.
schema:
type: string
enum:
- full
- wind
default: full
lat:
name: lat
in: query
required: true
schema:
type: number
minimum: -90
maximum: 90
description: Latitude.
limit:
name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 25
description: Maximum records to return.
latOptional:
name: lat
in: query
required: false
schema:
type: number
minimum: -90
maximum: 90
description: Optional latitude filter. Provide with lng to filter to one rounded location.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: Senlay API key
x-source-family-wording: 23 catalog entries; configured and returned sources vary by coordinate
x-safety-disclaimer: Senlay provides context, evidence, and decision support. It is not a safety authority. Final decisions remain with operators, users, and customer applications.