---
updatedAt: 2026-03-13T17:01:00.000Z
agentTools:
  projectIndex: https://developers.masspay.io/llms.txt
---

# Upload ID photos

Upload IDs for the provided user. This is an optional endpoint if the images are captured through means other than the link that is generated in the attributes.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "MassPay API",
    "version": "1.0.0",
    "title": "MassPay API",
    "termsOfService": "https://www.masspay.io/terms/",
    "contact": {
      "name": "MassPay",
      "email": "info@masspay.io",
      "url": "https://www.masspay.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "KYC",
      "description": "MassPay KYC operations."
    }
  ],
  "paths": {
    "/payout/user/{user_token}/kyc/id": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "user_token",
          "description": "Token representing the user to retrieve attributes for",
          "in": "path",
          "required": true
        }
      ],
      "post": {
        "summary": "Upload ID photos",
        "tags": [
          "KYC"
        ],
        "security": [
          {
            "AUTHORIZER_NAME": []
          },
          {
            "api_key": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "x-examples": {
                    "Example 1": [
                      {
                        "type": "face",
                        "content": "data:image/png;base64,R0lGODlhAQABAAAAACw="
                      }
                    ]
                  },
                  "nullable": true
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          },
          "504": {
            "description": "Gateway Timeout"
          }
        },
        "operationId": "upload-id-photos",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "x-examples": {
                  "Example 1": [
                    {
                      "type": "",
                      "content": ""
                    }
                  ]
                },
                "items": {
                  "$ref": "#/components/schemas/IDUpload"
                }
              }
            }
          }
        },
        "description": "Upload IDs for the provided user. This is an optional endpoint if the images are captured through means other than the link that is generated in the attributes."
      }
    }
  },
  "servers": [
    {
      "url": "https://{environment}.masspay.io/{VERSION}",
      "description": "MassPay's API server",
      "variables": {
        "VERSION": {
          "default": "v1.0.0",
          "enum": [
            "v1.0.0"
          ]
        },
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "staging-api"
          ]
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "IDUpload": {
        "title": "IDUpload",
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of image being uploaded",
            "enum": [
              "face",
              "document-front",
              "document-back"
            ],
            "example": "document-front"
          },
          "content": {
            "type": "string",
            "description": "Base64 encoded image (png|jpg|jpeg). Maximum total images size is 10MB"
          }
        },
        "required": [
          "type",
          "content"
        ]
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "AUTHORIZER_NAME": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey"
      }
    }
  }
}
```