> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.chrt.com/staging/api-reference/api-reference/orgs/compliance-documents/get-v-1/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.chrt.com/_mcp/server. # Get compliance document GET https://localhost:5000/orgs/compliance_documents/v1/{org_compliance_document_id} Retrieves one compliance document for the caller's provider organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (OrgComplianceDocument1) Reference: https://docs.chrt.com/api-reference/api-reference/orgs/compliance-documents/get-v-1 ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://localhost:5000` (Local, default) - `https://internal.devtest.truefoundry.tech/api/ml` (Devtest) ## Request ### Path parameters - `org_compliance_document_id` (string, required) ## Response ### 200 Successful Response - `_id` (string, required) - `document_type` (enum, required) - Allowed values: `security_threat_assessment`, `insurance`, `indirect_air_carrier`, `customs_broker`, `gdp`, `authorized_economic_operator`, `hipaa`, `chain_of_custody`, `auto_liability_insurance`, `cargo_insurance`, `general_liability_insurance`, `workers_comp_insurance` - `org_id` (string, required) — Must be a string starting with `org_` - `org_type` (enum, required) - Allowed values: `provider`, `shipper`, `vendor` - `schema_version` (integer, required) - `description` (string, optional) - `org_compliance_document_s3_object_metadata_ids` (list of string, optional) - `valid_from` (datetime, optional) - `valid_until` (datetime, optional) ## Errors ### 422 Compliance Documents Get V1request Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### ValidationError - `loc` (list of LocationItem, required) - `msg` (string, required) - `type` (string, required) - `ctx` (map from string to any, optional) - `input` (any, optional) ### LocationItem ## Examples **Response** ```json { "_id": "_id", "document_type": "security_threat_assessment", "org_id": "org_id", "org_type": "provider", "schema_version": 1, "description": "description", "org_compliance_document_s3_object_metadata_ids": [ "org_compliance_document_s3_object_metadata_ids" ], "valid_from": "2024-01-15T09:30:00Z", "valid_until": "2024-01-15T09:30:00Z" } ``` **SDK Code** ```python import requests url = "https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://localhost:5000/orgs/compliance_documents/v1/org_compliance_document_id")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```