List of immigration cases

Retrieves a paginated list of immigration cases with filters for applicant name, case type, status, and country. Returns case details including type, status, process, timestamps, and optional closure information. Token scopes: immigration:read

Authentication

AuthorizationBearer
## Authentication Deel API uses API tokens to authenticate requests. A bearer token is required to authenticate all API requests. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. ``` curl -X GET 'api.letsdeel.com/rest/v2/contracts' \ -H 'Authorization: Bearer YOUR-TOKEN-HERE' ``` ### Generating Access Tokens 1. Navigate to **Apps & Perks > Developer Center**. 2. Click on the “Generate New Token” button. 3. In the popup, click “Generate Token” button to generate a new token. Your newly generated token is visible on the screen. 4. Make sure to copy and save your token once is generated. You won't be able to see it again!
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/

Query parameters

searchstringOptional3-100 characters
Search by applicant name or code
case_type_idslist of stringsOptional
Filter by case type IDs
statuseslist of enumsOptional
Filter by case status
Allowed values:
countrieslist of stringsOptional
Filter by country. Uses ISO 3166-1 alpha-2 codes (https://www.iban.com/country-codes).
cursorstringOptional
Pagination cursor for fetching next set of results
limitintegerOptional<=100Defaults to 20
Max number of results to return

Response

Successful operation.
datalist of objects
List of cases in the current page.
has_moreboolean
Indicates whether more results are available for pagination.
next_cursorstring or null
Cursor value to be used for fetching the next page of results.
total_countinteger
Total number of cases matching the search criteria.

Errors