---
title: "Get Presigned URLs"
method: GET
path: "/esign-partner/v1/submissions/urls"
---

# Get Presigned URLs

`GET /esign-partner/v1/submissions/urls`

Get presigned URLs for you to upload required documents based on the submissionType.
After successful uploads, call the Confirm Upload API to start processing.

## Query parameters

- `submissionType` 'CERT_REG', required

## Headers

- `x-onekyc-token` string, required
- `x-esign-onboarding-partner` string, required
- `x-partner-user-id` string, required
- `x-partner-user-id-type` string, required
- `x-partner-session-id` string, uuid, required

## Response `200`

Successful presigned URL generation

- PresignedUrlsSuccessResponse
  - `success` boolean
  - `data` PresignedUrlsData
    - `submissionId` string, uuid — Unique identification of submission record
    - `status` string — Submission status
    - `documents` DocumentUrls
      - `KTP` DocumentUrlInfo
        - `documentUrl` string, uri — Presigned URL where the document must be uploaded
        - `documentReference` string — Unique reference for the document within the system
        - `expiryInSeconds` string — Time in seconds after which the documentUrl will expire
      - `SELFIE` DocumentUrlInfo
        - `documentUrl` string, uri — Presigned URL where the document must be uploaded
        - `documentReference` string — Unique reference for the document within the system
        - `expiryInSeconds` string — Time in seconds after which the documentUrl will expire

## Other responses

- `400` — Bad Request - Invalid input or missing required parameters
- `401` — Unauthorized - Invalid or missing authentication token
- `500` — Internal Server Error - An unexpected error occurred on the server

---

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