> For the complete documentation index, see [llms.txt](https://support.iafcertsearch.org/verification-users-api-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.iafcertsearch.org/verification-users-api-developer-guide/api-integration/verification-apis/retrieve-company-and-certificates-by-iaf-id.md).

# Retrieve Company & Certificates by IAF ID

## Retrieve Company & Certificates by IAF ID

Get company and certificates by IAF ID.

<mark style="color:green;">**`GET`**</mark> **`/company/{ce_id}`**

Fields that are marked with an asterisk (`*`) are mandatory.

* **Certified Entity Requirements**:
  * The API requires the `ce_id` of a Certified Entity.
  * Multiple Certified Entities can be verified in one request by providing a comma separated string value for `ce_id` .
  * The maximum number of `ce_id` that this endpoint accepts is **100**.
* **Response value:**
  * The API will return matched Certified Entity records with its Certificates.

### Headers

| Name                                                   | Type   | Description                                                                                                                                            |
| ------------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Content-Type<mark style="color:red;">\*</mark>         | String | application/json                                                                                                                                       |
| x-http-authorization<mark style="color:red;">\*</mark> | String | <p>API Key received from <https://www.iafcertsearch.org/api-verification><br></p><p>Example:</p><p><code>x-http-authorization: <\<API KEY>></code></p> |

### Parameters

| Key                                      | Type   | Description                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ce\_id<mark style="color:red;">\*</mark> | String | <p>The ID of the Company or Certified Entity.<br><br>Example:<br><code>ce\_KMi1zsb9CH2EorSzOJ9YEgtV</code></p><p></p><p>To verify multiple Companies using their IDs, separate them with comma ( , ). <br><br>Example:<br><code>ce\_KMi1zsb9CH2EorSzOJ9YEgtV,ce\_KMi1zsb9CH2EorSzOJ9YEgtV</code><br><br>The maximum number of IDs that this endpoint accepts is 100.</p> |

### Requests

{% tabs %}
{% tab title="cURL" %}

```url
curl --location --globoff --request GET '{API-URL}/company/{ce_id}' \
--header 'x-http-authorization: <API_KEY>' \
--header 'Content-Type: application/json'
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require "uri"
require "json"
require "net/http"

url = URI("{API_URL}/company/{ce_id}")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["x-http-authorization"] = "<API_KEY>"
request["Content-Type"] = "application/json"

response = http.request(request)
puts response.read_body
```

{% endtab %}

{% tab title="Python" %}

```python
import http.client
import json

conn = http.client.HTTPConnection("{API_URL}")
payload = ''
headers = {
  'x-http-authorization': '<API_KEY>',
  'Content-Type': 'application/json'
}
conn.request("GET", "/company/{ce_id}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => '{API_URL}/company/{ce_id}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-http-authorization: <API_KEY>',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```

{% endtab %}

{% tab title="Java" %}

```java
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
  .url("{API_URL}/company/{ce_id}")
  .method("GET", body)
  .addHeader("x-http-authorization", "<API_KEY>")
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: '{API_URL}/company/{ce_id}',
  headers: { 
    'x-http-authorization': '<API_KEY>', 
    'Content-Type': 'application/json'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});
```

{% endtab %}

{% tab title="Go" %}

```go
package main

import (
  "fmt"
  "net/http"
  "io"
)

func main() {

  url := "{API_URL}/company/{ce_id}"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("x-http-authorization", "<API_KEY>")
  req.Header.Add("Content-Type", "application/json")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := io.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```

{% endtab %}

{% tab title="C#" %}

```csharp
var options = new RestClientOptions("{API_URL}")
{
  MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/company/{ce_id}", Method.Get);
request.AddHeader("x-http-authorization", "<API_KEY>");
request.AddHeader("Content-Type", "application/json");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
```

{% endtab %}
{% endtabs %}

### Responses

{% tabs fullWidth="false" %}
{% tab title="200" %}
**Request Successful**

```json
{
  "data": {
    "ce_id": string,
    "matched_certified_entity_name": string,
    "match_status": string,
    "match_type": string,
    "certified_entity_english_name": string,
    "certified_entity_trading_name": string,
    "country": string,
    "certified_entity_addresses": [
      {
        "street": string,
        "city": string,
        "state": string,
        "post_code": string,
        "full_address": string,
        "country": string
      }
    ],
    "certificates": [
      {
        "cert_id": string,
        "accreditation_bodies_name": string,
        "certification_bodies_name": string,
        "certification_number": string,
        "certification_status": string,
        "certification_scope": string,
        "certification_standards_scheme": [
          {
            "standard_name": string,
            "scheme_name": string,
            "is_accredited_mla": boolean
          }
        ],
        "certification_main_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_additional_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_sectors": [
          {
            "sector_name": string,
            "sector_code": string
          }
        ],
        "updated_at": integer
      }
    ]
  }
```

{% endtab %}

{% tab title="200" %}
**Request Successful with Certification Issuance Dates**

```json
{
  "data": {
    "ce_id": string,
    "matched_certified_entity_name": string,
    "match_status": string,
    "match_type": string,
    "certified_entity_english_name": string,
    "certified_entity_trading_name": string,
    "country": string,
    "certified_entity_addresses": [
      {
        "street": string,
        "city": string,
        "state": string,
        "post_code": string,
        "full_address": string,
        "country": string
      }
    ],
    "certificates": [
      {
        "cert_id": string,
        "accreditation_bodies_name": string,
        "certification_bodies_name": string,
        "certification_number": string,
        "certification_status": string,
        "certification_scope": string,
        "certification_issuance_dates": {
          "certification_original_issued_date": string,
          "certification_issued_date": string,
          "certification_expiry_date": string
        },
        "certification_standards_scheme": [
          {
            "standard_name": string,
            "scheme_name": string,
            "is_accredited_mla": boolean
          }
        ],
        "certification_main_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_additional_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_sectors": [
          {
            "sector_name": string,
            "sector_code": string
          }
        ],
        "updated_at": integer
      }
    ]
  }
```

{% endtab %}

{% tab title="200" %}
**Some data are Confidential**

```json
{
  "data": {
    "ce_id": string,
    "matched_certified_entity_name": string,
    "match_status": string,
    "match_type": string,
    "certified_entity_english_name": "Confidential",
    "certified_entity_trading_name": "Confidential",
    "country": string,
    "certified_entity_addresses": [
      {
        "street": "Confidential",
        "city": "Confidential",
        "state": "Confidential",
        "post_code": "Confidential",
        "full_address": "Confidential",
        "country": string
      }
    ],
    "certificates": [
      {
        "cert_id": string,
        "accreditation_bodies_name": string,
        "certification_bodies_name": string,
        "certification_number": string,
        "certification_status": string,
        "certification_scope": string,
        "certification_standards_scheme": [
          {
            "standard_name": string,
            "scheme_name": string,
            "is_accredited_mla": boolean
          }
        ],
        "certification_main_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_additional_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_sectors": [
          {
            "sector_name": string,
            "sector_code": string
          }
        ],
        "updated_at": integer
      }
    ]
  }
```

{% endtab %}

{% tab title="200" %}
**Some data are Confidential with Certification Issuance Dates**

```json
{
  "data": {
    "ce_id": string,
    "matched_certified_entity_name": string,
    "match_status": string,
    "match_type": string,
    "certified_entity_english_name": "Confidential",
    "certified_entity_trading_name": "Confidential",
    "country": string,
    "certified_entity_addresses": [
      {
        "street": "Confidential",
        "city": "Confidential",
        "state": "Confidential",
        "post_code": "Confidential",
        "full_address": "Confidential",
        "country": string
      }
    ],
    "certificates": [
      {
        "cert_id": string,
        "accreditation_bodies_name": string,
        "certification_bodies_name": string,
        "certification_number": string,
        "certification_status": string,
        "certification_scope": string,
        "certification_issuance_dates": {
          "certification_original_issued_date": string,
          "certification_issued_date": string,
          "certification_expiry_date": string
        },
        "certification_standards_scheme": [
          {
            "standard_name": string,
            "scheme_name": string,
            "is_accredited_mla": boolean
          }
        ],
        "certification_main_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_additional_sites": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "scope": string,
            "country": string
          }
        ],
        "certification_sectors": [
          {
            "sector_name": string,
            "sector_code": string
          }
        ],
        "updated_at": integer
      }
    ]
  }
```

{% endtab %}

{% tab title="200" %}
**Multiple Results**

```json
{
  "data": [
    {
        "ce_id": string,
        "matched_certified_entity_name": string,
        "match_status": string,
        "match_type": string,
        "certified_entity_english_name": string,
        "certified_entity_trading_name": string,
        "country": string,
        "certified_entity_addresses": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "country": string
          }
        ],
        "certificates": [
          {
            "cert_id": string,
            "accreditation_bodies_name": string,
            "certification_bodies_name": string,
            "certification_number": string,
            "certification_status": string,
            "certification_scope": string,
            "certification_standards_scheme": [
              {
                "standard_name": string,
                "scheme_name": string,
                "is_accredited_mla": boolean
              }
            ],
            "certification_main_sites": [
              {
                "street": string,
                "city": string,
                "state": string,
                "post_code": string,
                "full_address": string,
                "scope": string,
                "country": string
              }
            ],
            "certification_additional_sites": [
              {
                "street": string,
                "city": string,
                "state": string,
                "post_code": string,
                "full_address": string,
                "scope": string,
                "country": string
              }
            ],
            "certification_sectors": [
              {
                "sector_name": string,
                "sector_code": string
              }
            ],
            "updated_at": integer
          }
        ]
      }
  ]
}
```

{% endtab %}

{% tab title="200" %}
**Multiple Results with Certification Issuance Dates**

```json
{
  "data": [
    {
        "ce_id": string,
        "matched_certified_entity_name": string,
        "match_status": string,
        "match_type": string,
        "certified_entity_english_name": string,
        "certified_entity_trading_name": string,
        "country": string,
        "certified_entity_addresses": [
          {
            "street": string,
            "city": string,
            "state": string,
            "post_code": string,
            "full_address": string,
            "country": string
          }
        ],
        "certificates": [
          {
            "cert_id": string,
            "accreditation_bodies_name": string,
            "certification_bodies_name": string,
            "certification_number": string,
            "certification_status": string,
            "certification_scope": string,
            "certification_issuance_dates": {
              "certification_original_issued_date": string,
              "certification_issued_date": string,
              "certification_expiry_date": string
            },
            "certification_standards_scheme": [
              {
                "standard_name": string,
                "scheme_name": string,
                "is_accredited_mla": boolean
              }
            ],
            "certification_main_sites": [
              {
                "street": string,
                "city": string,
                "state": string,
                "post_code": string,
                "full_address": string,
                "scope": string,
                "country": string
              }
            ],
            "certification_additional_sites": [
              {
                "street": string,
                "city": string,
                "state": string,
                "post_code": string,
                "full_address": string,
                "scope": string,
                "country": string
              }
            ],
            "certification_sectors": [
              {
                "sector_name": string,
                "sector_code": string
              }
            ],
            "updated_at": integer
          }
        ]
      }
  ]
}
```

{% endtab %}

{% tab title="200" %}
**Multiple with No Result**

```json
{
  "data": []
}
```

{% endtab %}

{% tab title="401" %}
**Unauthorized Access**

```json
{
  "type": "string",
  "title": "Unauthorized access.",
  "status": 401,
  "detail": "Authentication failed due to invalid credentials or missing token.",
  "instance": "/company/{ce_id}",
  "code": "unauthorized"
}
```

{% endtab %}

{% tab title="403" %}
**Forbidden Access**

<pre class="language-json"><code class="lang-json">{
  "type": "string",
  "title": "Forbidden access.",
  "status": 403,
  "detail": "You do not have access to this resource.",
  "instance": "/company/{ce_id}",
  "code": "forbidden"
<strong>}
</strong></code></pre>

{% endtab %}

{% tab title="403" %}
**Insufficient Credit - Single IAF ID**

```json
{
  "type": "string",
  "title": "Insufficient credit.",
  "status": 403,
  "detail": "You are trying to access data that exceeds your available credits. To increase your available credits, please contact us at info@iafcertsearch.org.",
  "instance": "/company/{ce_id}",
  "code": "insufficient_credit"
}
```

{% endtab %}

{% tab title="403" %}
**Insufficient Credit - Multiple IAF ID**

```json
{
  "type": "string",
  "title": "Insufficient credit.",
  "status": 403,
  "detail": "You are trying to access data that exceeds your available credits. To increase your available credits, please contact us at info@iafcertsearch.org.",
  "instance": "/company/{ce_id},{ce_id},{ce_id}",
  "code": "insufficient_credit"
}
```

{% endtab %}

{% tab title="403" %}
**API Request Limit Reached**

```json
{
    "type": "string",
    "title": "API request limit reached.",
    "status": 403,
    "detail": "API request limit reached. To increase your API request limit, contact us at info@iafcertsearch.org.",
    "instance": "/company/{ce_id}",
    "code": "api_request_limit_reached"
}
```

{% endtab %}

{% tab title="404" %}
**Not Found**

```json
{
  "type": "string",
  "title": "Resource not found.",
  "status": 404,
  "detail": "Certified Entity not found in IAFCertSearch.",
  "instance": "/company/{ce_id}",
  "code": "not_found"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.iafcertsearch.org/verification-users-api-developer-guide/api-integration/verification-apis/retrieve-company-and-certificates-by-iaf-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
