Skip to main content
The Deck Sustainability platform (including Bill and Credit Risk products) was a previous generation of the Deck platform with a fundamentally different architecture. v2 is a complete replacement. If you are on the legacy platform, this guide covers what you need to know.

New account required

The legacy Sustainability platform and Deck v2 are separate systems. You will need a new Deck account to use v2.
  • Data does not transfer. Credentials, statements, and historical data from the legacy platform are not accessible in v2.
  • API keys are not compatible. Legacy API credentials do not work with v2.
  • Create a new account at console.deck.co and generate a v2 API key (sk_live_).
Your legacy account continues to function while you migrate.

Architecture differences

The legacy platform was built around pre-defined data products (Sustainability, Bill, Credit Risk) with Deck-managed schemas. v2 is a general-purpose platform where you define your own agents, tasks, and schemas.

Concept mapping

Source changes

On the legacy platform, sources were pre-configured and managed by Deck. You connected to utility providers and other institutions from a fixed catalog. You could not add sources yourself. In v2, you create sources directly. Provide a name, type, and URL, and Deck handles the rest:
This gives you access to any source, rather than being limited to ones predefined by Deck. If you were connecting to a utility provider or financial institution on the legacy platform, recreate it in v2 with the provider’s login URL. Sources belong to your organization and can be shared across multiple agents. A single source can be used by both a sustainability agent and a bill pay agent.

Authentication changes

The legacy platform used a multi-step Link flow to establish credentials:
v2 replaces this entire flow with a single API call:
The response gives you a credential_id immediately. If MFA is required, the credential status becomes interaction_required and you submit the code through the interaction endpoint.

Data retrieval changes

The legacy platform had fixed endpoints for each data product. You called an endpoint and received data in a predefined format.

Legacy pattern

v2 pattern

In v2, you define what data to fetch through task definitions with custom input and output schemas. This gives you full control over the data structure instead of working within fixed product schemas.

What v2 gives you

Capabilities in v2 that did not exist on the legacy platform:
  • Custom agents and tasks. Define exactly what data to fetch and what actions to perform. Not limited to pre-built products.
  • Any website as a source. Create your own sources by URL. Not limited to the pre-configured catalog from the legacy platform.
  • Typed schemas. Define input and output schemas per task. Deck validates both ends.
  • Interaction system. Handle MFA, security questions, and account selection through a single, consistent API.
  • Multiple event destinations. Deliver events to webhooks, AWS SQS, GCP Pub/Sub, Azure Service Bus, and more. Subscribe each destination to specific event types.
  • Idempotency. All create endpoints accept idempotency keys for safe retries.
  • Prefixed resource IDs. Every ID encodes its type (agt_, cred_, trun_).

Migration checklist

1

Create a new Deck account

Sign up at console.deck.co. Legacy accounts cannot be upgraded.
2

Generate a v2 API key

Get your sk_live_ API key from the Console.
3

Create agents for your use cases

Map your legacy data products to agents. A Sustainability integration becomes an agent with tasks for fetching statements, downloading files, etc.
4

Create sources

Add the websites you were previously connecting to as sources. Provide the URL and Deck handles the rest.
5

Define tasks with schemas

Create tasks that replicate the data you were fetching from legacy endpoints. Define input and output schemas that match your application’s needs.
6

Replace Link with direct credentials

Replace the link_token / public_token / access_token exchange flow with POST /v2/credentials. Build your own credential collection UI.
7

Update data retrieval logic

Replace calls to product endpoints with POST /v2/tasks/{task_id}/run. Results arrive via events, not synchronous responses.
8

Set up event destinations

Create event destinations to receive task results, credential status updates, and other notifications.
9

Update error handling

v2 uses a consistent error format with type, code, and message fields. See the API Error Handling page.