The MySign API · Enterprise plan
MySign uses secure API authentication with personal access tokens.
Overview
MySign uses bearer token authentication. Each API request must include an API token in the Authorization header.
Tokens are organisation-scoped, meaning all resources created via the API belong to your organisation. This provides complete data isolation between different organisations.
Setup
Sign in to MySign
Log into your MySign account at mysign.co.uk
Navigate to settings
Go to Settings → API Tokens from your dashboard
Create a new token
Click "Create New Token" and give it a descriptive name (e.g., "Production API", "Development")
Copy the token immediately
Copy and store the token securely. It won't be shown again.
Shown once. Only once.
Important security notice.
Your API token will only be displayed once when created. Make sure to copy it and store it securely. If you lose it, you'll need to create a new token.
Usage
Include your API token in the Authorization header of every API request using the Bearer scheme.
curl -X POST https://api.mysign.co.uk/api/v1/native/envelopes/create \
-H "Authorization: Bearer YOUR_API_TOKEN_HERE" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"template_id": "01ABCD..."}'
PHP (using Guzzle)
$client = new GuzzleHttp\Client();
$response = $client->post('https://api.mysign.co.uk/api/v1/native/envelopes/create', [
'headers' => [
'Authorization' => 'Bearer ' . $apiToken,
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'template_id' => '01ABCD...'
]
]);
JavaScript (using fetch)
const response = await fetch('https://api.mysign.co.uk/api/v1/native/envelopes/create', {
method: 'POST',
headers: {
'Authorization': `Bearer ${apiToken}`,
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify({
template_id: '01ABCD...'
})
});
const data = await response.json();
When it goes wrong
Returned when the token is missing, invalid, or revoked.
{
"message": "Unauthenticated."
}
Returned when attempting to access resources outside your organisation.
{
"message": "Forbidden."
}
Stop polling. Let envelope events come to you.