Wexa.ai
  1. Files
Wexa.ai
  • Wexa AI
  • Getting Started
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting
  • API Endpoints
    • Actions
      • create action
      • get action
    • Agentflows
      • get agent flow
      • failover agentflows
      • Get agentflow by projectId and UserId
      • Verify_quota
      • get agentflow by id
      • create agentflow
      • Add skilled agent to agentflow
      • Update skilled agent
    • Analytics
      • Get analytics
    • Customer
      • get customer
      • Get credit history
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Credits
      • Validate user validity
      • validate workspace credits
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Executeflow
      • create executeflow
      • get executions
      • pause executeflow
      • resume execution
      • get execution by execution id
      • cancel executeflow
      • verify quota
      • get execution details for monitoring
      • execute agentflow
    • Files
      • get files by fileid
        GET
      • get connector by fileid
        GET
      • get files by connector_id
        GET
      • get total file size
        GET
      • upload files
        POST
    • Inbox
      • get inbox
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Settings
      • get settings
    • Skills
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
      • create skill
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • resume task
      • Pause running task
      • Stop task
      • Get all tasks
      • get specific task graph
    • Tables
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a coulmn
    • Project member
      • project_member
    • Project
      • Get all projects
      • Get project
      • Get Projects
      • create project
      • update project
      • Delete project
  1. Files

upload files

POST
api.wexa.ai/files/upload
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'api.wexa.ai/files/upload?projectID=67fdea40aac77be632954f13&container_name=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{"filenames":["Durga_prasad_new_resume.pdf"],"tags":["resume"],"projectID":"67fdea40aac77be632954f13","source_type":"STORAGE","org_id":"67fdea40aac77be632954f0f"}'
Response Response Example
{
    "status": "success",
    "upload_urls": [
        {
            "filename": "Durga_prasad_new_resume.pdf",
            "url": "https://klotdev.blob.core.windows.net/67fdea40aac77be632954f13/storage_Durga_prasad_new_resume_19fa.pdf?se=2025-04-22T09%3A54%3A21Z&sp=w&sv=2023-11-03&sr=b&sig=vsSD2Tu5K4LAm/fFoZqZnql2QgopgT7Z4ug%2BaIX2V2k%3D",
            "mimeType": "application/pdf",
            "_id": "68076621be78b76f647715e4"
        }
    ]
}

Request

Query Params
projectID
string 
required
Example:
67fdea40aac77be632954f13
container_name
string 
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
string 
required
Example:
{{x-api-key}}
Body Params application/json
filenames
array[string]
required
tags
array[string]
required
projectID
string 
required
source_type
string 
required
org_id
string 
required
Examples

Responses

🟢200upload files
application/json
Body
status
string 
required
upload_urls
array [object {4}] 
required
filename
string 
optional
url
string 
optional
mimeType
string 
optional
_id
string 
optional
Modified at 2025-04-23 12:28:14
Previous
get total file size
Next
get inbox
Built with