Docs Quickstart
Quickstart
Five steps, all in test mode, no phone needed.
1. Get a test key
Create an account, then open Developers in the dashboard and choose New test key. Test keys start with sk_test_. Keep the key on your server; never put it in a mobile app or web page.
2. Create a capture request
Pick a template or list your own shots. The response holds link, the address you send to the person taking the photos, and whatsapp_url when you pass a phone number.
curl https://authintix.com/v1/requests \
-H "Authorization: Bearer $AUTHINTIX_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: SHP-20418" \
-d '{
"template": "proof_of_delivery",
"reference": "SHP-20418",
"phone": "+201001234567"
}'$ax = new Authintix\Client(getenv('AUTHINTIX_KEY'));
$req = $ax->requests->create([
'template' => 'proof_of_delivery',
'reference' => 'SHP-20418',
'phone' => '+201001234567',
], ['idempotency_key' => 'SHP-20418']);
echo $req['link'];const Authintix = require('authintix');
const ax = new Authintix(process.env.AUTHINTIX_KEY);
const req = await ax.requests.create(
{ template: 'proof_of_delivery', reference: 'SHP-20418', phone: '+201001234567' },
{ idempotencyKey: 'SHP-20418' }
);
console.log(req.link);import os, authintix
ax = authintix.Client(os.environ['AUTHINTIX_KEY'])
req = ax.requests.create(
{'template': 'proof_of_delivery', 'reference': 'SHP-20418', 'phone': '+201001234567'},
idempotency_key='SHP-20418',
)
print(req['link'])3. Complete it with the simulator
In test mode you can fill the request with sample photos instead of using a phone. They go through the same sealing as real photos.
curl -X POST https://authintix.com/v1/requests/req_…/simulate \
-H "Authorization: Bearer $AUTHINTIX_KEY"$ax->requests->simulate($req['id']);await ax.requests.simulate(req.id);ax.requests.simulate(req['id'])4. Read the sealed result
Sealing takes a few seconds. Poll the request, or better, listen for the request.completed webhook.
curl https://authintix.com/v1/requests/req_… \
-H "Authorization: Bearer $AUTHINTIX_KEY"
curl -o evidence.pdf https://authintix.com/v1/captures/cap_…/evidence \
-H "Authorization: Bearer $AUTHINTIX_KEY"$r = $ax->requests->get($req['id']);
if ($r['status'] === 'completed') {
foreach ($r['captures'] as $cap) {
file_put_contents($cap['id'] . '.pdf', $ax->captures->evidence($cap['id']));
}
}const r = await ax.requests.get(req.id);
if (r.status === 'completed') {
for (const cap of r.captures) {
fs.writeFileSync(cap.id + '.pdf', await ax.captures.evidence(cap.id));
}
}r = ax.requests.get(req['id'])
if r['status'] == 'completed':
for cap in r['captures']:
open(cap['id'] + '.pdf', 'wb').write(ax.captures.evidence(cap['id']))5. Next
- Add a webhook endpoint so you do not need to poll.
- Verify the seal in your own code.
- When you are ready, ask us to activate live mode and create a live key.