---
title: "Submit Native Challenge Response"
method: POST
path: "/api/v1/sessions/{sessionId}/native-challenge/submit"
tags: ["Sessions"]
---

# Submit Native Challenge Response

`POST /api/v1/sessions/{sessionId}/native-challenge/submit`

Submits the response from a Native Challenge (e.g., mDL exchange via DC API) and processes the results.

## Path parameters

- `sessionId` string, uuid, required

## Request body

- SubmitNativeChallengeResponseRequest
  - `resultsAccessKey` string, required — The Results Access Key for the Session in question
  - `responseToken` string, required — The response token retrieved from a Trinsic UI SDK's performMdlExchange() call.

## Response `200`

OK

- SubmitNativeChallengeResponseResponse
  - `session` Session, required
    - `id` string, required
    - `done` boolean, required — Whether the Session is in a terminal / final state. If this is `true`, inspect the value of `Success` to determine whether the Session was successful.
    - `success` boolean, required — Whether the Session has completed successfully. If this is `false`, the Session is either not yet done, or has failed. Inspect `Done` and `ErrorCode` for more information. If this is `true`, the Session has completed successfully.
    - `errorCode` 'Internal' | 'Other' | 'Canceled' | 'UserAbandoned' | 'UserTimedOut' | 'Expired' | 'InvalidImage' | 'Inauthentic' | 'UnsupportedDocument' | 'AssuranceLevelNotMet' | 'SecurityValidationFailed' | 'InvalidResponse'
    - `created` integer, required — The unix timestamp, in seconds, when this session was created
    - `updated` integer, required — The unix timestamp, in seconds, when this session's data was last updated

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal server error

---

[API](https://skmtc.net/trinsic/apis/trinsic-api.md) · [All operations](https://skmtc.net/trinsic/apis/trinsic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trinsic/trinsic-api/versions/e57fbc634d48/schema)
