{"openapi":"3.0.3","info":{"title":"Assets platform API","version":"1"},"servers":[{"url":"https://{organisation}.{domain}","variables":{"organisation":{"default":"acme"},"domain":{"default":"example.com"}}}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key from Integrations → API keys (avk_...)"}},"schemas":{"Asset":{"type":"object","properties":{"id":{"type":"integer"},"projectId":{"type":"integer"},"tagNumber":{"type":"string"},"tagCode":{"type":"string","nullable":true},"name":{"type":"object","properties":{"en":{"type":"string"},"ar":{"type":"string"}}},"category":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"site":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"location":{"type":"object","nullable":true},"serialNumber":{"type":"string","nullable":true},"status":{"type":"string"},"condition":{"type":"string","nullable":true},"lastVerifiedAt":{"type":"integer","nullable":true,"description":"milliseconds since 1970"}}}}},"security":[{"apiKey":[]}],"paths":{"/api/v1/assets":{"get":{"summary":"List active assets","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","maximum":200}},{"name":"after","in":"query","schema":{"type":"integer"},"description":"id of the last asset of the previous page"},{"name":"projectId","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"A page","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}},"next":{"type":"integer","nullable":true}}}}}},"401":{"description":"No or wrong key"}}}},"/api/v1/assets/{id}":{"get":{"summary":"One asset","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"The asset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"404":{"description":"Not found"}}}}}}