Simple APIs to Integrate Security into Your PDF Document Workflows

Our RESTful document APIs are easy to use and even easier to implement. Complete integrations with a few lines of code.

JavaScript iOS Java Python Android Ruby PHP Microsoft .NET

Take Control

Designed to give developers the flexibility and extensibility they need to be productive.

Get to market faster

Start building now. With production-ready, highly available APIs, you can add document security to your applications in a fraction of the time.

Scale

Control your costs and scale easily as your business grows. Customers in every industry use Docrity to secure millions of documents a month.

Built for Developers

Docrity helps developers overcome challenges with document security by taking complex processes and abstracting them with just a few lines of code.


  # You can also use wget
  curl -X POST https://www.docrity.com/connect/token \
    -H 'Content-Type: application/x-www-form-urlencoded'

  

  POST https://www.docrity.com/connect/token HTTP/1.1
  Host: www.docrity.com
  Content-Type: application/x-www-form-urlencoded

  

    var headers = {
      'Content-Type':'application/x-www-form-urlencoded'

    };

    $.ajax({
      url: 'https://www.docrity.com/connect/token',
      method: 'post',

      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })

  

  const request = require('node-fetch');
  const inputBody = '{
    "grant_type": "string",
    "client_id": "string",
    "client_secret": "string",
    "scope": "string"
  }';
  const headers = {
    'Content-Type':'application/x-www-form-urlencoded'

  };

  fetch('https://www.docrity.com/connect/token',
  {
    method: 'POST',
    body: inputBody,
    headers: headers
  })
  .then(function(res) {
      return res.json();
  }).then(function(body) {
      console.log(body);
  });

  

  require 'rest-client'
  require 'json'

  headers = {
    'Content-Type' => 'application/x-www-form-urlencoded'
  }

  result = RestClient.post 'https://www.docrity.com/connect/token',
    params: {
    }, headers: headers

  p JSON.parse(result)

  

  import requests
  headers = {
    'Content-Type': 'application/x-www-form-urlencoded'
  }

  r = requests.post('https://www.docrity.com/connect/token', params={

  }, headers = headers)

  print r.json()

  

  URL obj = new URL("https://www.docrity.com/connect/token");
  HttpURLConnection con = (HttpURLConnection) obj.openConnection();
  con.setRequestMethod("POST");
  int responseCode = con.getResponseCode();
  BufferedReader in = new BufferedReader(
      new InputStreamReader(con.getInputStream()));
  String inputLine;
  StringBuffer response = new StringBuffer();
  while ((inputLine = in.readLine()) != null) {
      response.append(inputLine);
  }
  in.close();
  System.out.println(response.toString());

  

  var request = WebRequest.Create(@"https://www.docrity.com/connect/token");
  request.Method = "POST";

  var response = request.GetResponse();
  var stream = response.GetResponseStream();

  var reader = new StreamReader(stream, Encoding.UTF8);
  var result = reader.ReadToEnd();

  reader.Close();
  stream.Close();

  Console.WriteLine(result);

  

Body Paramenter


  grant_type: string
  client_id: string
  client_secret: string
  scope: string

  

Resources

Complete resources to get your started with your project.

API Documentation

Complete with examples for all languages

Resource Center

Start within minutes with our articles and Quick Starts

Security

Find out how we secure our platform

Want to Learn More about the Docrity Document Security Platform?

Request a Demo