PactSafe

The PactSafe Developer Hub

Welcome to the PactSafe developer hub. You'll find comprehensive guides and documentation to help you start working with PactSafe as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Guides

Getting your Access Token (REST API)

PactSafe uses OAuth 2 for all API authentication. Authenticating to the API requires an Access Token. Ready to start using the PactSafe API? Read below for directions on generating an Access Token.

Go to your User Profile

In order to get your access token, you'll need an account with API access. Once you have that, just login and go to your user's profile to create a new app.

Go to [your profile](https://app.pactsafe.com/user/profile) to create a new Developer App. Then getting your access token is easy!

Go to your profile to create a new Developer App. Then getting your access token is easy!

Create a new Developer App

Create a new Developer App with a name — don't worry about a callback URL or anything like that. You'll only need that if you're creating an app that uses PactSafe's OAuth 2.0 authentication experience. Questions on that? Email help@pactsafe.com.

Generate an Access Token

After creating your app, click into your freshly created app. You'll be prompted to enter your password (for security reasons), and then you'll see a screen where you can create a new Access Token:

Generate a new access token to grant yourself access to the REST API.

Generate a new access token to grant yourself access to the REST API.

Important: Every REST or Activity API call you make to PactSafe must have the header 'Authorization Bearer {access_token}' in order to get you the data you need.

Once you've generated the token, you can copy it to your clipboard. From there, you can start making API calls! A great example would be...

HTTP GET https://api.pactsafe.com/v1.1/sites/1/requests
Authorization: Bearer {access_token}
Content-type: application/json

What's Next

Now that you've got your access token for the REST API, you can do all sorts of stuff. Try getting started by creating a new Request for signature.

Creating Signature Requests