For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Help CenterOpenAPI SpecStatus
OverviewInquiriesTransactionsRelaysAPI ReferenceChangelog
OverviewInquiriesTransactionsRelaysAPI ReferenceChangelog
  • Getting Started
    • Introduction
    • Quickstart Tutorial
  • API Overview
    • API Keys
    • Authentication
    • Protocol
    • Response Body
    • Idempotence
    • Pagination
    • Rate Limiting
    • Downloading Files
    • API Logs
    • Request IDs
  • Versioning
    • API Changelog
    • Versioning
  • Troubleshooting
    • Error Handling
  • API Reference
    • OpenAPI Specification
    • Cases
    • Connect
    • Documents
    • Inquiries
    • List Items
    • Lists
    • OAuth
    • Reports
    • Transactions
    • Verifications
    • Workflows
  • Webhooks
      • POSTDocument created
      • POSTDocument submitted
      • POSTDocument processed
      • POSTDocument errored
      • POSTDocument extracted
      • POSTDocument pending
LogoLogo
Help CenterOpenAPI SpecStatus
WebhooksDocument Events

Document created

Payload
1{
2 "data": {
3 "attributes": {
4 "created-at": "2024-02-15T23:48:17.732Z",
5 "name": "document.created",
6 "payload": {
7 "data": {
8 "type": "document/generic",
9 "attributes": {
10 "created-at": "2023-12-20T00:47:09.000Z",
11 "extraction-responses": [],
12 "fields": {},
13 "files": [],
14 "files-normalized": [],
15 "kind": "document",
16 "status": "initiated"
17 },
18 "id": "doc_bzyijToBPnSHtbW2mMdpKM8W",
19 "relationships": {
20 "inquiry": {
21 "data": {
22 "id": "inq_5noeVrHSRUWeFMv5T6wLA8qt",
23 "type": "inquiry"
24 }
25 },
26 "template": {
27 "data": {
28 "id": "tmpl_jGTjQgGMyei68sdf8NyCeDMh",
29 "type": "template"
30 }
31 },
32 "inquiry-template-version": {},
33 "inquiry-template": {},
34 "transaction": {},
35 "document-files": {
36 "data": []
37 }
38 }
39 },
40 "included": [
41 {
42 "type": "inquiry",
43 "attributes": {
44 "status": "pending",
45 "behaviors": {},
46 "tags": [],
47 "creator": "jane@doe.com",
48 "created-at": "2023-12-20T00:47:09.000Z",
49 "updated-at": "2023-12-20T00:47:09.000Z",
50 "previous-step-name": "start",
51 "next-step-name": "verification_document",
52 "fields": {}
53 },
54 "id": "inq_5noeVrHSRUWeFMv5T6wLA8qt",
55 "relationships": {
56 "account": {
57 "data": {
58 "id": "act_n2uq9eKMboaCQzu9ALWYcVdN",
59 "type": "account"
60 }
61 },
62 "documents": {
63 "data": [
64 {
65 "id": "doc_bzyijToBPnSHtbW2mMdpKM8W",
66 "type": "document/generic"
67 }
68 ]
69 },
70 "template": {
71 "data": {
72 "id": "tmpl_jGTjQgGMyei68sdf8NyCeDMh",
73 "type": "template"
74 }
75 },
76 "inquiry-template": {},
77 "inquiry-template-version": {},
78 "reports": {
79 "data": []
80 },
81 "reviewer": {
82 "data": {}
83 },
84 "selfies": {
85 "data": []
86 },
87 "sessions": {
88 "data": []
89 },
90 "verifications": {
91 "data": []
92 }
93 }
94 },
95 {
96 "type": "template",
97 "attributes": {
98 "name": "Government ID Front and Back"
99 },
100 "id": "tmpl_jGTjQgGMyei68sdf8NyCeDMh"
101 }
102 ]
103 }
104 },
105 "id": "evt_9RkPmXvN3bQwYsL7tHdFc2jE",
106 "type": "event"
107 }
108}
Webhook for the `document.created` event. For more info see [Webhooks Overview](https://docs.withpersona.com/webhooks).
Was this page helpful?
Previous

Document submitted

Next
Built with

Webhook for the document.created event. For more info see Webhooks Overview.

Headers

Persona-SignaturestringOptional

Header. An HMAC that you should use to check that requests are authentic. Compare this value with your own digest, computed from the request body and your webhook secret. For more info see Webhook Best Practices.

Persona-Webhook-Attempts-MadeintegerOptional
The number of times that Persona has attempted to deliver this webhook. This value is incremented each time Persona attempts to deliver the webhook, regardless of whether the delivery was successful.
Persona-Webhook-Attempts-LeftintegerOptional
The number of times that Persona will attempt to deliver this webhook. This value is decremented each time Persona attempts to deliver the webhook.
Persona-Webhook-First-Attempted-AtintegerOptional
The time at which Persona first attempted to deliver this webhook. This value is a Unix timestamp in seconds.

Payload

The payload of this webhook request is an object.
dataobjectOptional

Response

200

Return a 2xx status code to indicate that the data was received successfully. Any other status will trigger retries. For more info see Retry Logic.