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

# Agentcard

> Integrate your application with the Agentcard API

## Quickstart

Connect to Agentcard with Nango and see data flow in 2 minutes. The Agentcard API uses OAuth 2.0 client credentials, so no user redirect is required.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Agentcard*.

**2. Connect Agentcard**

Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection*. Enter your Client ID and Client Secret, then save.

**3. Call the Agentcard API**

Let's make your first request to the Agentcard API: introspect the credential, which returns your organization and mode. Replace the placeholders below with your [API key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):

> [tab] cURL
>
> ```bash theme={null}
> curl "https://api.nango.dev/proxy/api/v2" \
>   -H "Authorization: Bearer <NANGO-API-KEY>" \
>   -H "Provider-Config-Key: <INTEGRATION-ID>" \
>   -H "Connection-Id: <CONNECTION-ID>"
> ```

> [tab] Node
>
> Install Nango's backend SDK with `npm i @nangohq/node`. Then run:
>
> ```typescript theme={null}
> import { Nango } from '@nangohq/node';
>
> const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });
>
> const res = await nango.get({
>     endpoint: '/api/v2',
>     providerConfigKey: '<INTEGRATION-ID>',
>     connectionId: '<CONNECTION-ID>'
> });
>
> console.log(res.data);
> ```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/auth-guide.md) to integrate Nango in your app.

To obtain your own credentials, follow the setup guide linked below.

## Agentcard integration guides

Nango maintained guides for common use cases.

* [How to get your Agentcard OAuth client credentials](https://nango.dev/docs/api-integrations/agentcard/connect)
  Create an OAuth client in the Agentcard dashboard and obtain credentials to connect it to Nango

Official docs: [Agentcard API docs](https://docs.agentcard.sh)

## Common scopes

Agentcard does not use scopes. Access is determined by the OAuth client's organization and mode (sandbox or production).

## API gotchas

* The credential decides the environment: a sandbox client returns sandbox data and a production client returns live data. The API base URL is always `https://api.agentcard.sh`.
* The public surface is `/api/v2`, including the token endpoint `POST /api/v2/oauth/token`. `/api/v1` paths are internal and return `endpoint_retired`.
* Agentcard is a payments product for AI agents (one-time virtual cards with spend caps and approvals). Card mints move real money in production; test in sandbox first. Amounts are in cents (`2500` = \$25.00).

> [!NOTE]
>
> Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/api-integrations/agentcard.mdx)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.