واجهة البرمجة
Codes
GET
Returns the multi-code platform inventory. Platform codes (tenant_id IS NULL) are visible to every caller; tenant BYO codes (Phase 4) are visible only to the owning tenant via RLS.
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
accept-language?string|nullCode-editions grouped by code_id.
application/json- response
[key: string]?anycurl -X GET 'https://api.aisc.sa/v1/codes'{ "codes": [ { "code_id": "801", "code_long_name": "Saudi Building Code 801 - Fire Code", "editions": [ { "id": "00000000-0000-0000-0000-000000000001", "jurisdiction": "SA", "language": "ar+en", "year": 2023 } ] } ]}