Get Data Request

Fetch a data request to check the status.

HTTP Request



You must send an Authorization header with the value Basic followed by base 64 encoded token_id:token_secret.

For example: Authorization: Basic dG9rZW5faWQ6dG9rZW5fc2VjcmV0Cg==

See the Authentication documentation for more information.

Example Response

  "id": "drq_000000000000000001",
  "email": "[email protected]",
  "name": "John Doe",
  "order": 1,
  "fields": ["phone_number"],
  "metadata": {
    "user_id": 42
  "state": "complete",
  "viewed_at": "2018-10-23T13:00:00Z",
  "completed_at": "2018-10-23T13:05:00Z"

Example Code

var DocSpring = require('docspring')

client = new DocSpring.Client(config)

client.getDataRequest('drq_000000000000000001', function (error, dataRequest) {
  if (error) throw error
require 'docspring'

docspring =

data_request = docspring.get_data_request('drq_000000000000000001')
puts data_request
import docspring

client = docspring.Client()
data_request = client.get_data_request("drq_000000000000000001")
$docspring = new DocSpring\Client();
$data_request_id = 'drq_000000000000000001';
$data_request = $docspring->getDataRequest($data_request_id);
echo $data_request;
using System;
using System.Diagnostics;
using DocSpring.Client.Api;
using DocSpring.Client.Client;
using DocSpring.Client.Model;

namespace Example
    public class DocSpringExample
        public void main()
          var apiInstance = new PDFApi();
          string dataRequestId = "drq_000000000000000001";
          var data_request = apiInstance.GetDataRequest(dataRequestId);
export DATA_REQUEST_ID="drq_000000000000000001"

curl -s "$DATA_REQUEST_ID" \

results matching ""

    No results matching ""