امتثال
واجهة البرمجة

Codes

GET
/v1/codes

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.

Authorization

BearerAuth
headerAuthorizationBearer <token>

JWT access token. Obtain via POST /v1/auth/login.

Header Parameters

accept-language?string|null

Response Body

Code-editions grouped by code_id.

application/json
  1. response
[key: string]?any
curl -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        }      ]    }  ]}