Uploads

Upload user documents

STAGING_URL: https://switch-api-staging.herokuapp.com
LIVE_URL: https://switchapi.azurewebsites.net

Upload

POST https://switch-api-staging.herokuapp.com/user/upload

Upload user documents. Documents can only be uploaded individually.

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

Request Body

Name
Type
Description

photo_id

object

an image of the user's identity document i.e travel document page

image_selfie

object

an image of the user i.e a selfie or a headshot

signature

object

an image of the user's signature

{
    "message": "File uploaded successfully",
    "data": {
        "file_url": "/switchcontainer/some_passport.jpg",
        "full_file_url": "https://someplace/some_passport.jpg"
    }
}

Last updated

Was this helpful?