Quick Start
Get up and running with the Entrust Signhost API in minutes. This guide will walk you through creating your first digital signing transaction.
Prerequisites
Before you begin, you'll need:
- An active Signhost account. Sign up here if you don't have one yet.
- A PDF document that you want to have signed
Step 1: Get Your API Credentials
1.1 Generate Application Key
- Log in to the Signhost Portal
- Navigate to the Application Key page
- Click "Generate New Application Key"
- Copy and securely store your Application Key
1.2 Generate User Token
- Go to the Settings page in the portal
- Click "Generate token"
- Copy and securely store your User Token
Important: Both keys are only shown once during generation. Store them securely - if you lose them, you'll need to generate new ones.
Step 2: Create Your First Transaction
2.1 Create a New Transaction
Make a POST request to create a new transaction:
Response: You'll receive a transaction object with an Id field. This is the transactionId that you'll need for the next steps.
2.2 Upload Your Document
Upload the PDF document to be signed:
Replace:
${TRANSACTION_ID}with the ID from step 2.1document.pdfwith your desired filename/path/to/your/document.pdfwith the actual path to your PDF
2.3 Start the Transaction
Activate the transaction to send signing invitations:
Step 3: Monitor Transaction Status
Recommended Approach: Use Postbacks
The best way to monitor transaction status is by configuring postbacks (webhooks) that notify your application when status changes occur.
The recommended way to set up postbacks is to configure a Global Postback URL. Global postbacks support security features like digest security and security headers.
The example below shows how to set a Dynamic Postback URL when creating a transaction:
Your webhook endpoint will receive real-time notifications when the transaction status changes.
Alternative: Check Status Once
Important: We recommend NOT polling the GET transaction API to monitor status changes. This can impact performance and may result in rate limiting.
If you need to check the current status (not for monitoring), you can query it once:
The response will include a Status field. See the Statuses & Activites page for possible values.
Complete Example
Here's a complete example using curl to create and start a transaction:
Next Steps
Now that you've created your first transaction, explore these advanced features:
- Multiple Documents: Include multiple files in one transaction
- Form Fields: Add fillable form fields to your documents
Need Help?
- API Reference: Explore the full API documentation
- Support: Contact support@signhost.com
- Community: Try our Postman workspace for quick testing