Skip to main content
Often after signing a document your company might want to redirect the user to a specific web page like a thank you or an onboarding page. There are two features to support these requirements. When the signer completes the signature process, they can be redirected to a web page. The same can happen when the signer declines the signature request. We can customize these pages by passing the redirect_url and decline_redirect_url parameters. Custom redirect pages For example:
curl --location 'https://api.box.com/2.0/sign_requests' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer ej...3t' \
    --data-raw '{
      "is_document_preparation_needed": true,
      "redirect_url": "https://community.box.com/",
      "declined_redirect_url": "https://developer.box.com/",
      "parent_folder": {
        "id": "234102987614",
        "type": "folder"
      },
      "source_files": [
        {
          "id": "1358047520478",
          "type": "file"
        }
      ],
      "signers": [
        {
          "email": "[email protected]",
          "role": "signer"
        }
      ]
    }'
If you sign you’ll be redirected to our forum page. If you decline you’ll be redirected to our developer page.