Image Media Upload

Upload Image files to use it later in other KYC APIs

API Details

Request

TypeURL
Posthttps://api.attestr.com/api/{version}/public/media/image/multipart

Request Body Parameters

TypeNameDescriptionOptional (Default)Min VersionMax Version
FilefileImage File to be uplaoded. Only jpeg and png files are supported.Requiredv1

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typemultipart/form-dataRequiredv1
StringAuthorizationBasic {authToken}Requiredv1

Response

Http Status Code 200

KeyDescriptionTypeMin VersionMax Version
_idThe media Id.Stringv1
originalNameOriginal name of the image file uploadedStringv1

Sample Response

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004007Incompatible file type
4004005Image file size exceeds the maximum permissible limit of 15MB
4014016Invalid client authorization
4034031Unauthorized access
4034039Client's IP address is not whitelisted
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard