Overview
Jobs can be either read or write. Read jobs will fetch data from your source while write jobs can perform actions such as filling out a form or making a payment. Jobs run asynchronously and Deck notifies you of progress and status via webhooks.Custom jobs within your link
Your new Link will appear in the left navigation of the Deck Dashboard. You’ll see a list of jobs created under your link:EnsureConnection: This is a job created by Deck and used to open connections to your source. It will always be your first job you call, whether you call it directly or via the Deck Widget.- Your source-specific jobs: Deck generates one to several jobs that match your use case and work to fetch your target data or write to a source.
CloseConnection: Another Deck-provided job to close your open connections.
Run a Job
Once you’ve received anaccess_token, you can use that token to run a job. To run a job, include the access_token and job_code in your request as well as any custom inputs scoped to your job. Deck will run the job against the active connection and a webhook will return the output of the job.
Handle Job Success
When a job succeeds, Deck sends a webhook with the job ID and any output (such as documents). At that point you can process the results in your system: store them, trigger downstream jobs, or present them to the user.CloseConnection, an auto-provisioned job similar to EnsureConnection, ends the active session and revokes access. If you expect to run more jobs soon for the same user, you can leave the connection open. If you don’t close a connection, it will close automatically 1 hour after it was opened.
Run the CloseConnection job:
