valid_from not in the future) for each standards type, in the order of StandardsType. Open to every authenticated user, whatever the role. Served by LibraryController::standards().App\Http\Controllers\Api\V1\Library\LibraryController::standards()api.v1.library.standardsAuthorization: Bearer {token}GET/api/v1/library/standards200 OKtests/Api/Library/LibraryStandardsTest.php ("returns the keys and values of a standard"), with one standard in force.{
"success": true,
"status": "success",
"message": "Standards",
"data": [
{
"id": 1,
"name": "RAID Diver Standards",
"type": "diver",
"type_label": "Recreational Diver",
"version": "15.6",
"valid_from": "2026-01-01",
"language": "en",
"url": "https://raid-backend.s3.eu-west-2.amazonaws.com/standards/EN_diver_v15.pdf"
}
]
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data | array | No | Yes | One item per standards type that has a standard in force. Empty when none. Not paginated. |
data[].id | integer | No | Yes | Standard id. |
data[].name | string | No | Yes | Standard name. |
data[].type | string | No | Yes | One of general, diver, professional, technical, technical_pro, free_diving. |
data[].type_label | string | No | Yes | Translated label of the type, in the request locale. |
data[].version | string | No | Yes | version.subversion, for example 15.6. |
data[].valid_from | string | No | Yes | Date from which the standard is in force, Y-m-d. |
data[].language | string | No | Yes | Locale of the file in url: the request locale when the standard has a file for it, otherwise the default locale (en). |
data[].url | string | Yes | Yes | Plain link to the file in language. null when the standard has no file name or the file does not exist on the disk. |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}Accept-Language).url is a plain link, not a signed one: the standards disk is public.docs/api/library/GET_standards.mdcurl --location 'https://test.diveraid.com/api/v1/library/standards' \
--header 'Authorization: Bearer <token>'{
"success": true,
"status": "success",
"message": "Standards",
"data": [
{
"id": 0,
"name": "string",
"type": "general",
"type_label": "string",
"version": "15.6",
"valid_from": "2019-08-24",
"language": "en",
"url": "string"
}
]
}