> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Deel immigration cases and legal entities from Guild agents

> Connect Guild agents to Deel to manage legal entities, track immigration cases, run identity and AML screenings, and configure webhooks.

Integrations · Deel

Guild agents read and write directly in Deel: opening immigration cases, managing legal entities and org groups, running identity and AML screenings, and registering webhooks. Guild injects the Deel API key server-side so agent code never sees the credential. Credential policies let you restrict which operations each agent can call, and every request runs through Guild's audit trail.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Deel.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Deel to your first agent.

## What the Deel integration exposes

The tools cover legal entities, cost centers, org groups, and managers. Immigration tools create and track cases, upload required documents, and look up business visa requirements and supported visa types. Screening tools start Veriff sessions, submit manual identity verifications, and retrieve KYC and AML results. Webhook tools register, update, list, and delete subscriptions, and list the available event types.

## How it works

**1. Open credentials in Guild**

Go to Access & setup > Credentials in Guild. Click Connect, select deel, and paste your API key into the API Key field.

**2. Import DeelTools in your agent**

Import DeelTools from the `guildai~deel` package and spread it into your agent's tools object. Guild sends the key as a bearer token in the Authorization header on every call.

**3. Narrow tools with pick**

Tools use the deel\_ prefix. Use pick() from the Agent SDK to include only the tools your agent needs, as described in the [tool sets docs](https://docs.guild.ai/sdk/tools.md#selecting-specific-tools).

## Why Deel access needs governing

Deel holds sensitive data: legal entity records, immigration case documents, KYC and AML screening results, and worker identity details. An agent with unrestricted access could create or archive legal entities, upload documents to immigration cases, or delete webhook subscriptions. [Credential policies](https://docs.guild.ai/platform/credential-policies.md) let you write ALLOW and DENY rules that Guild's credential proxy enforces before any request leaves Guild, scoped to specific agents, workspaces, or operations.

Guild stores the Deel API key and injects it server-side. Agent code never receives the credential directly. You can scope a credential to one workspace, one member, or a single agent, as described in the [credentials docs](https://docs.guild.ai/platform/credentials.md). That means a screening agent and an org-management agent can operate under separate keys with separate policies, so a misconfigured agent cannot reach data it has no business touching.

## About the Deel integration

Agents can manage an organization's legal entities, cost centers, groups, and managers within Deel. They can track and process immigration cases, upload required documents, and check visa requirements. Agents can also run identity and AML screenings and configure webhooks to respond to platform events. The integration is `guildai~deel`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Deel**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **deel**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { DeelTools } from "@guildai-services/guildai~deel"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Deel.",
  tools: { ...DeelTools },
})
```

### Selecting specific tools

Tools are named with the `deel_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~deel`:

> [accordion] All 43 tools
>
> | Tool | What it does |
> | - | - |
> | `deel_cost_centers_get_legal_entity_cost_centers` | Returns all cost centers associated with the specified legal\_entity\_id. |
> | `deel_groups_clone_group` | Creates a new group by copying the structure and settings of an existing group. |
> | `deel_groups_create_group` | Creates a new group in the organization. |
> | `deel_groups_delete_group` | Delete Group |
> | `deel_groups_get_groups` | Lists the groups available to the caller, including archived ones by default; set the 'include\_archived\_groups' query parameter to false to exclude them. |
> | `deel_groups_update_group` | Update Group |
> | `deel_immigration_create_client_case` | Creates a new immigration case for a worker. |
> | `deel_immigration_create_worker_case_required_document` | Uploads a document against a specific case document requirement and submits it for review. |
> | `deel_immigration_get_business_visa_requirement` | Analyzes a traveller's nationality, residence country, destination, and trip dates to return the available business visa options along with their fees, estimated timelines, and qualification criteria. |
> | `deel_immigration_get_client_case` | Retrieves the details of an immigration case by its case ID. |
> | `deel_immigration_get_client_cases` | Use this endpoint to track the progress of your organization's immigration cases and identify ones that need attention, such as those currently on hold. |
> | `deel_immigration_get_document` | Retrieves the details of an immigration case document by its document 'id'. |
> | `deel_immigration_get_visa_types` | Returns the visa types supported for immigration processing in a country, identified by its Alpha-2 country code. |
> | `deel_immigration_get_worker_case` | Get detailed information for a specific immigration case. |
> | `deel_immigration_get_worker_case_required_document` | Retrieves the details of a specific document requirement within a worker's immigration case, including the requirement's current status and information about any previously rejected document. |
> | `deel_immigration_get_worker_cases` | Retrieves a paginated list of immigration cases with filters for applicant name, case type, status, and country. |
> | `deel_immigration_get_worker_onboarding_case` | Returns the right-to-work onboarding case for a worker, including any associated documents; returns an empty response if no open case exists. |
> | `deel_legal_entities_create_legal_entity` | Creates a new legal entity under the organization and returns the entity record including its assigned id. |
> | `deel_legal_entities_delete_legal_entity` | Archives the legal entity identified by id, marking it as inactive without permanently removing it; the response includes the archived\_at timestamp. |
> | `deel_legal_entities_get_industries` | Lists NAICS industry subcategories along with the name of each parent category. |
> | `deel_legal_entities_get_legal_entities` | Lists the legal entities under the calling organization so an integration can resolve which entity a worker, contract, payroll cycle or invoice belongs to. |
> | `deel_legal_entities_update_legal_entity` | Applies a partial update to an existing legal entity identified by id; only fields included in the request body are modified. |
> | `deel_lookups_get_countries` | Returns all countries supported by the platform, including each country's visa support status, Employer of Record availability, sub-territories, and classification. |
> | `deel_lookups_get_currencies` | Returns all currencies supported by the platform, including their ISO codes and names. |
> | `deel_lookups_get_job_titles` | Returns the platform's catalogue of predefined job titles. |
> | `deel_lookups_get_seniority_levels` | Returns predefined seniority levels including their names, hierarchical positions, and identifiers. |
> | `deel_lookups_get_time_off_types` | Returns the predefined time-off types available for registration on the platform. |
> | `deel_magic_link_create_magic_link` | Generates a time-limited magic link for password-free worker authentication. |
> | `deel_managers_create_manager` | Creates a new manager in the organization and returns the created manager's identity fields, including the assigned 'id'. |
> | `deel_managers_get_managers` | Lists the managers of the calling organization, including managers who have not logged in yet, so you can see who currently manages the organization. |
> | `deel_organizations_create_organization_child` | Creates a child organization under the authenticated parent organization. |
> | `deel_organizations_get_organizations` | Returns details of the organization associated with the authentication token; the organization is resolved automatically from the token and requires no additional identifier. |
> | `deel_screenings_create_manual_verification` | Creates a manual identity verification submission as a fallback when automated verification has failed multiple times or when the document's country of issue is not supported by the automated… |
> | `deel_screenings_create_veriff_session` | Initiates an identity verification session via Veriff, returning a URL to which the worker must be redirected to complete the verification flow. |
> | `deel_screenings_get_aml_details` | Returns the most recent AML screening result for the specified entity. |
> | `deel_screenings_get_kyc_details` | Retrieves the KYC verification details of a worker identified by 'worker\_profile\_id' or 'profile\_id', which are mutually exclusive, so a client can see whether the worker passed identity verification… |
> | `deel_screenings_get_verification_method` | Tells you whether an identity document can go through the automated Veriff flow or needs the manual verification flow. |
> | `deel_webhooks_create_webhook` | Register a webhook subscription so Deel delivers events to your endpoint as they occur, letting you react to changes in real time instead of polling for them. |
> | `deel_webhooks_delete_webhook` | Permanently deletes the specified webhook subscription by its unique identifier. |
> | `deel_webhooks_get_webhook` | Retrieves the full configuration of a single webhook subscription by its id, including its signing key for verifying incoming payload signatures. |
> | `deel_webhooks_get_webhook_events` | Lists the catalog of webhook event types available on the platform. |
> | `deel_webhooks_get_webhooks` | Lists every webhook subscription configured for the organization. |
> | `deel_webhooks_update_webhook` | Updates one or more fields of an existing webhook subscription without recreating it — for example, enabling or disabling delivery, changing the events it is subscribed to, or opting it in to also… |

## Frequently asked questions

> [accordion] Can I limit an agent to only reading immigration cases without letting it create or delete anything?
>
> Yes. Credential policies support operation-level ALLOW and DENY rules. You can allow only the deel\_immigration\_get\_\* operations and deny everything else, scoped to the specific agent.

> [accordion] Does the Deel integration receive webhook events that trigger a Guild agent automatically?
>
> No. The catalog entry shows an empty webhook\_events list, so Guild does not receive Deel events to trigger agents. The webhook tools let your agent register and manage Deel webhook subscriptions that point to your own endpoints.

> [accordion] How does Guild keep the Deel API key out of agent code?
>
> Guild stores the key and adds it as a bearer token in the Authorization header server-side. The credential proxy checks any credential policies before the request reaches Deel, and agent code never sees the key at any point.

> [accordion] Can different agents in the same workspace use different Deel credentials?
>
> Yes. You can connect a credential dedicated to a single agent from that agent's installed-agent page, or grant an existing credential to one agent. Guild resolves credentials in a defined order, checking agent-level grants and dedicated credentials before falling back to workspace or account credentials, as described in the [credentials docs](https://docs.guild.ai/platform/credentials.md).

## Put a governed agent on Deel this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Deel.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Deel to your first agent.

## Related

**Also runs on Guild:** [Affinity](https://docs.guild.ai/integrations/affinity-openapi.md) · [Attio](https://docs.guild.ai/integrations/attio.md) · [Brex](https://docs.guild.ai/integrations/brex-openapi.md) · [Gong](https://docs.guild.ai/integrations/gong-openapi.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
