Uploads a file.

Endpoint URL

https://dashboard-api.revnue.com/api/v2/file-upload

Authentication and rate limits

ItemDetails
Authentication methodOAuth 2.0 Bearer token
Rate limitRate Limit

Requests Example

curl --request POST \
  --url 'https://develop-api.revnue.com/api/v2/file-upload' \
  --header 'Authorization: Bearer $BEARER_TOKEN' \
  --form 'company="1"' \
  --form 'filename=@"/path/to/file"'

Form-Data

  • company (integer) --

    [REQUIRED]
    The ID of the specific company your API is calling. For accounts with only one company, the default value is 1.
    To lookup a specific company ID, see the List Company API.

  • filename (string) --

    [REQUIRED]
    The filename including path.
    Allowed file extensions: .jpeg, .jpg, .png, .pdf, .doc, .docx, .xls, .xlsx
    Up to 5MB for images and 10MB for other file types.

Response Syntax

{
    "details": "file uploaded"
}

Response Fields