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_).
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:Authentication changes
The legacy platform used a multi-step Link flow to establish credentials:credential_id immediately. The credential starts as unverified and becomes verified the first time a task run authenticates with it. If the source asks for an MFA code or a security question during that run, the task run pauses with status interaction_required and you submit the answer through the interaction endpoint. See Building your auth flow for the full sequence.
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
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.
- Workflows. Chain tasks into a multi-step workflow with conditions and loops, so a login, a document fetch, and an extraction run as one unit.
- Triggers. Run a task or workflow on a cron schedule across all of your credentials with a trigger. No scheduler on your side.
- 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
Replace the
link_token / public_token / access_token exchange flow. Drop in the Auth Component, or store credentials from your own UI with POST /v2/credentials.7
Update data retrieval logic
Replace calls to product endpoints with
POST /v2/tasks/{task_id}/run. Results arrive via events, or poll the task run until it completes.8
Replace scheduled refreshes with triggers
If you refreshed data on a schedule, create a trigger instead of running your own cron.
9
Set up event destinations
Create event destinations to receive task results, credential status updates, and other notifications.
10
Update error handling
v2 uses a consistent error format with
type, code, and message fields. See the API Error Handling page.