Recovering incomplete submissions as an unauthenticated user

In some situations, a caller may start but not complete a submission in the first session. They wish to continue the work in some subsequent session. The second session could occur because the first session timed out, or the caller switched to a different device. The caller can execute a POST /recover-new-jobs endpoint to recover any incomplete job associated with the account and a new self-signed JWT.

Note: In the base configuration, the POST /recover-new-jobs endpoint returns no results and no JWT. The insurer must configure the endpoint. For more information, see Configuring the reauthorize anonymous user flow.

Once you have implemented the /recover-new-jobs endpoint, you can use it in the same way that you would use a base configuration search endpoint. The request includes a body with the appropriate search criteria. The response includes a collection of jobs meeting the implicit and configured search criteria. If the response includes one or more jobs, the response header also contains a self-signed JWT that can be used for subsequent calls.

For example, suppose you configure the /recover-new-jobs endpoint so that an anonymous user can locate incomplete submissions by providing their first and last name. Then, suppose you wanted to find all incomplete submissions where the primary insured's first name is "Francine" and last name is "Michaels". The request would look like this.
POST /job/v1/recover-new-jobs
                
{
  "data": {
    "attributes": {
      "firstName_Ext": "Francine",
      "lastName_Ext": "Michaels"
    }
  }
}
Suppose there is one job that matches the search criteria. The response would look like this. For the sake of clarity, some properties have been omitted.
RESPONSE BODY:
{
    "count": 1,
    "data": [
        {
            "attributes": {
                "account": {
                    "displayName": "C000143542",
                    "id": "pc:Srx-YL_xDmdj455LyQtIu",
                    "type": "Account",
                    "uri": "/account/v1/accounts/pc:Srx-YL_xDmdj455LyQtIu"
                },
                "id": "pc:SVAyPWiBiNuBrYFPjd7ZX",
                "jobNumber": "47586734721",
                "jobStatus": {
                    "code": "Quoted",
                    "name": "Quoted"
                },
                "jobType": {
                    "code": "Submission",
                    "name": "Submission"
                },
                "policy": {
                    "displayName": "P000143542",
                    "id": "pc:SH21ByixaZ0O-2Hteuwc8",
                    "type": "Policy",
                    "uri": "/policy/v1/policies/pc:SH21ByixaZ0O-2Hteuwc8"
                },
                "policyNumber": "P000143542",
                "primaryInsured": {
                    "displayName": "Francine Michaels",
                    "id": "test_pp:2",
                    "type": "PolicyContact",
                    "uri": "/job/v1/jobs/pc:SVAyPWiBiNuBrYFPjd7ZX/contacts/test_pp:2"
                }
            },
            ...

RESPONSE HEADER:
GW-Access-Token:
eyJhbGciOiJIUzUxMiIsImtpZCI6ImN1cnJlbnRfa2V5IiwidHlwIjoiSldUIn0.eyJleHAiOjE1OTU1NjYzN
jksImdyb3VwcyI6WyJwYy5hbm9ueW1vdXMiXSwiaWF0IjoxNTk1NTU1NTY5LCJpc3MiOiJQQyIsImp0aSI6In
JCMEVDYVdoOVh1Y2U5M3cyYkFETnVXOUszdkZoUGxuS0FpbVR3NVdFNWNueW9VM0FBQUFCQS4uIiwicGNfYWN
jb3VudE51bWJlcnMiOlsiMjU1ODM2MzEzOCJdLCJzdWIiOiJhdXRoIiwidGVuYW50X2lkIjoiTm9UZW5hbnQi
LCJ0eXBlIjoiYWNjb3VudEhvbGRlciJ9.Ix4GCz4nJg_QM3AsC-jVyZU_V8ysGBgWfvIxAIS59t7EN2C6Pi2Q
gJRs09y0ThqFX-_1-ucD58Vunqs5dMivJg