---
updatedAt: 2026-07-07T22:29:32.000Z
agentTools:
  projectIndex: https://developer.trulioo.com/v1.0/llms.txt
---

# Get Document Types

Gets the types of documents available for a country.

## SDKs

```csharp
//Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
var truliooClient = new TruliooApiClient("JoeNapoli_API_Demo", "05uZuPRCyPi!6");
Dictionary<string, IList<string>> record = await truliooClient.Configuration.GetDocumentTypesAsync("AU");
```
```java
//Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
ApiClient apiClient = new ApiClient();
apiClient.setUsername("JoeNapoli_API_Demo");
apiClient.setPassword("05uZuPRCyPi!6");
ConfigurationApi configurationClient = new ConfigurationApi(apiClient);

//getDocumentTypes
Map<String, List<String>> documentTypes = configurationClient.getDocumentTypes("AU");

//getDocumentTypesAsync
configurationClient.getDocumentTypesAsync("AU", new ApiCallback<Map<String, List<String>>>() {
    @Override
    public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
        Logger.getLogger(SdkJavaV1Sample.class.getName()).log(Level.SEVERE, null, e);
    }
    @Override
    public void onSuccess(Map<String, List<String>> result, int statusCode, Map<String, List<String>> responseHeaders) {
        System.out.println(result);
    }
    @Override
    public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
        //To change body of generated methods, choose Tools | Templates.
    }
    @Override
    public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
        //To change body of generated methods, choose Tools | Templates.
    }
});
```

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Document Verification"
  },
  "x-samples-languages": [
    "curl",
    "node",
    "javascript",
    "ruby",
    "python"
  ],
  "paths": {
    "/configuration/v1/documentTypes/{countryCode}": {
      "get": {
        "tags": [
          "Configuration"
        ],
        "summary": "Get Document Types",
        "description": "Gets the types of documents available for a country.",
        "operationId": "GetDocumentTypes",
        "parameters": [
          {
            "name": "countryCode",
            "in": "path",
            "description": "Country alpha2 code. Call <a class=\"link-to-api\" href=\"https://developer.trulioo.com/reference/getcountrycodes\">Get Country Codes</a> to get the countries available to you.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns an object of the given country code. This object contains an array of strings which are the possible values for DocumentType in the Verify call.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "response": {
                    "value": {
                      "AU": [
                        "DrivingLicence",
                        "Passport"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Your request could not be processed, there should be more details in the response."
          },
          "401": {
            "description": "The user name and password you provided is not valid or you are using an account not configured to be an API user."
          },
          "408": {
            "description": "The request took longer to process than we waited."
          },
          "415": {
            "description": "You asked for a media type that we do not support. You should request application/json in the Content-Type header."
          },
          "500": {
            "description": "An error happened on the server without a specific message."
          }
        },
        "security": [
          {
            "basic": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.trulioo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "basic": {
        "type": "http",
        "description": "Basic HTTP Authentication",
        "scheme": "basic"
      }
    }
  }
}
```