> ## 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.

<Steps>
  <Step title="Create the integration" id="create-integration">
    In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> *Configure New Integration* -> *Agentcard*.
  </Step>

  <Step title="Connect Agentcard" id="connect-agentcard">
    Go to [Connections](https://app.nango.dev/dev/connections) -> *Add Test Connection*. Enter your Client ID and Client Secret, then save.
  </Step>

  <Step title="Call the Agentcard API" id="call-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):

    <Tabs>
      <Tab title="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>

      <Tab title="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({ secretKey: '<NANGO-API-KEY>' });

        const res = await nango.get({
            endpoint: '/api/v2',
            providerConfigKey: '<INTEGRATION-ID>',
            connectionId: '<CONNECTION-ID>'
        });

        console.log(res.data);
        ```
      </Tab>
    </Tabs>

    Or fetch credentials with the [Node SDK](/docs/reference/sdks/node#get-a-connection-with-credentials) or [API](/docs/reference/api/connection/get).

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

  <Step title="Implement Nango in your app" id="implement-nango">
    Follow our [Auth implementation guide](/docs/guides/auth/auth-guide) to integrate Nango in your app.

    To obtain your own production credentials, follow the setup guide linked below.
  </Step>
</Steps>

## Agentcard integration guides

Nango maintained guides for common use cases.

* [How to get your Agentcard OAuth client credentials](/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)</Note>
