Skip to main content

Overview

In sandbox mode, you can simulate different job outcomes by passing specific values in the x-deck-sandbox header.
curl --location https://sandbox.deck.co/api/v1/test/api_keys \
    --header 'x-deck-client-id: <insert client_id>' \
    --header 'x-deck-secret: <insert secret>' \
    --header 'x-deck-sandbox: <insert value>' \
    --header 'Content-Type: application/json' \
Here is a list of potential results:
Header valueOutcomeOccurrence
job-failedGeneric job failureThe job execution failed due to an agent error or unexpected condition.
error-input-valuesInput validation errorThe input provided for the job is invalid, incomplete, or does not match the expected schema.
error-not-foundData not foundThe specified resource required for the job could not be found.
error-system-errorSystem errorAn unexpected system error occurred during the connection attempt.
error-action-rejectedAction rejectedThe requested action was rejected by the system or source.
error-unexpected-errorUnexpected errorAn unexpected error occurred that does not fit into other error categories.