---
title: "Upload SubTpp document"
method: POST
path: "/member/sub-tpps/{sub_tpp_id}/upload-document/{document_id}"
tags: ["Sub-TPPs"]
---

# Upload SubTpp document

`POST /member/sub-tpps/{sub_tpp_id}/upload-document/{document_id}`

## Request

- Base URL: `https://api.token.io`
- URL: `https://api.token.io/member/sub-tpps/{sub_tpp_id}/upload-document/{document_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

The `POST /member/sub-tpps/{sub_tpp_id}/upload-document/{document_id}` endpoint upload the document for SubTpp.

## Path parameters

- `sub_tpp_id` string, required
- `document_id` string, required

## Request body

- UploadDocumentRequest
  - `file_type` string, required: Type or format of the uploaded file. Typically corresponds to file extension or MIME type.
  - `file` Payload, required
    - `owner_id` string: Identifier of the blob owner (member id).
    - `type` string, required: MIME type of the file.
    - `name` string, required: Original file name.
    - `data` string, byte, required: File content.
    - `access_mode` 'DEFAULT' | 'PUBLIC': Access mode for the blob. - DEFAULT: Owner or token participants can read the blob. - PUBLIC: Anyone can read the blob (for example profile pictures).

## Response `200`

Successful response

- EmptyResponse: No data returned in the successful response.

## Other responses

- `400`: The client specified an invalid argument
- `401`: The authorization information is missing or invalid
- `403`: Permission to access this endpoint is denied
- `404`: The requested entity, such as a sub-tpp, was not found
- `429`: Too many requests
- `500`: An unexpected or internal server error
- `501`: The operation was not implemented
- `503`: Service is unavailable
- `504`: Gateway has timed out

---

[API](https://skmtc.dev/token/apis/token-io-s-open-banking-api-for-tpps.md) - [All operations](https://skmtc.dev/token/apis/token-io-s-open-banking-api-for-tpps/llms.txt) - [OpenAPI document](https://skmtc.dev/token/apis/token-io-s-open-banking-api-for-tpps/revisions/f705d3537678?raw)
