Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. APIs Doc
  • Back to home
  • Sample Flow
  • Send Otp
    POST
  • Submit Otp
    POST
  • Create Runner
    POST
  • PAN or GST
    POST
  • Business Info
    POST
  • Shareholders
    POST
  • Business Extraa Info
    POST
  • Business Assest Detail
    POST
  • Applicant List
    GET
  • Submit Application
    POST
  • Set Current Applicant
    POST
  • Document upload
    POST
  • Get Document
    GET
  • Applicant Pan , Aadhaar and Mobile
    POST
  • Applicant Extraa Info
    POST
  • Applicant Bank Details
    POST
  • Signing Form
    POST
  1. APIs Doc

Document upload

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/documents/
Last modified:2025-03-06 06:37:45

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
secret
string 
optional
Example:
2b7dcd29-3b17-4669-9b41-e04b69c3dff8
Body Params multipart/form-data
files
file 
optional
vendor
string 
optional

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/v1/rego/documents/' \
--header 'secret: 2b7dcd29-3b17-4669-9b41-e04b69c3dff8' \
--form 'files=@""' \
--form 'vendor=""'

Responses

🟢200Success
application/json
Body
created_at
string 
required
created_by
string 
required
vendor
string 
required
secret
string 
required
identifier
string 
required
files
array [object {4}] 
required
id
string 
optional
file_name
string 
optional
mime_type
string 
optional
uploaded_at
integer 
optional
is_public
boolean 
required
path
null 
required
id
string 
required
Example
{
    "created_at": "2025-03-06T06:34:27.741462",
    "created_by": "b415d54c-0105-4ea9-b155-d832f2bc289b",
    "vendor": "s3",
    "secret": "2b7dcd29-3b17-4669-9b41-e04b69c3dff8",
    "identifier": "d055c073-8734-406f-a7ca-7d5f06bc106c",
    "files": [
        {
            "id": "fd28010e-6953-4ba5-b1b6-56bf335f60a5",
            "file_name": "IMG_20210904_135815_e85081d8-e177-471a-baf7-0628a1f95d31.jpg",
            "mime_type": "image/jpeg",
            "uploaded_at": 1741242867
        }
    ],
    "is_public": false,
    "path": null,
    "id": "539e20ea-ed8f-4c3e-aa54-6e263ae398d4"
}
Previous
Set Current Applicant
Next
Get Document
Built with