Wexa AI
  1. Wexa_sdk
Wexa AI
  • Wexa AI
  • Use Cases and Workflows
  • API Reference
  • Troubleshooting Guide
  • Onboarding
    • Getting Started with Wexa
    • Hire your AI Coworker
  • AI Coworker Creation
    • Create your First AI Coworker
    • Process Flows
    • Creating your First Agent
    • Schedule a Process Flow
    • Executing a Process Flow
    • Settings - Input Form
    • History
  • Tables
    • Intro to Tables
    • Adding records to Tables
    • Table Triggers
  • Knowledge Base
    • Intro to Knowledge Base
  • Connectors and MCP Servers
    • Adding a New Connector
    • Adding an MCP Server
    • Setting up Connectors Triggers
  • API Endpoints
    • Project
      • create project
      • Get all projects
      • Get project
      • update project
      • Delete project
      • Get project by proiectName
    • Agentflows
      • create agentflow
      • get agentflows
      • Get agentflow by projectId and UserId
      • get agentflow by id
      • Add skilled agent to agentflow
      • Update skilled agent
    • Connectors
      • Configure connector
      • Get config
      • Retrieve linkedin params
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Skills
      • create skill
      • get skills
      • get skills by category
      • get skills by id
      • skills by name
    • Executeflow
      • create executeflow
      • get executions
      • execute agentflow
      • pause executeflow
      • resume execution
      • cancel executeflow
      • get execution by execution id
      • get execution details for monitoring
    • Actions
      • Customer
        • get customer
        • Get credit history
      • create action
      • get action
    • Files
      • Connectors and MCP Servers
      • upload files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
    • Inbox
      • Create inbox
      • Update inbox at runtime
      • Update anamoly detection inbox
      • Update Preview Inbox
      • get inbox
    • Tags
      • tags
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Tasks
      • get tasks
      • get task by id
      • Pause running task
      • resume task
      • Stop task
    • Tables
      • Insert row in a table
      • Get records
      • Get record by id
      • Update record by id
      • create table
      • create database
      • get tables
      • get table names
      • delete record
      • delete a column
      • Insert column in a table
    • Settings
      • get settings
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Analytics
      • Get analytics
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Available Connectors
      • Actions
    • Execution Details
      • Execution details
    • Knowledge Base
      • File Upload
    • Create apikey
      • Generate apikey
  • Wexa_sdk
    • Wexa Python SDK
    • Use Cases and Workflows
    • API Reference
    • Troubleshooting Guide
    • Onboarding
      • Getting Started with Wexa
      • Hire Your AI Coworker
    • AI Coworker Creation
      • Create Your First AI Coworker
      • Process Flows
      • Schedule a Process Flow
      • Creating Your First Agent
      • Executing a Process Flow
      • Settings - Input Form
      • History
    • Tables
      • Intro to Tables
      • Adding Records to Tables
      • Table Triggers
    • Knowledge Base
      • Intro to Knowledge Base
    • Connectors and MCP Servers
      • Adding a New Connector
      • Adding an MCP Server
      • Setting up Connector Triggers
    • API Endpoints
      • Project
        • Create Project
        • Get Projects
        • Get Project by ID
        • Update
        • Delete Project
        • Get project by proiectName
  1. Wexa_sdk

API Reference

API Reference#

To use the Wexa Python SDK, you'll need to authenticate your requests using an API key. This guide will walk you through creating and using API keys with the SDK.

Creating an API Key#

Before making API requests with the SDK, you must generate an API key from your Wexa account:
1.
Log in to your Wexa account
Go to https://app.wexa.ai and log in with your credentials.
2.
Open Profile Settings
In the top-right corner of the Dashboard, click on your profile avatar and select Manage Account from the dropdown menu.
3.
Access the API Keys Section
Within the Manage Account page, navigate to the API Keys tab in the left-hand menu.
4.
Create a New API Key
If you haven't created any keys yet, you'll see an empty state and a button labeled Create API Key.
Click Create API Key, provide a name for the key (e.g., ProductionKey, TestEnvKey), and confirm the creation.
5.
Copy and Store the API Key Securely
After generation, your new API key will be displayed once. The key is partially masked for security.
⚠️ Important: Copy your API key immediately and store it securely (e.g., in an environment variable or secrets manager). You won't be able to retrieve it again after navigating away.

Using Your API Key#

Once you have your API key, you can use it with the Wexa Python SDK in several ways:

Method 1: Environment Variables (Recommended)#

Method 2: Direct Initialization#

Method 3: Using .env File#

Create a .env file in your project root:
WEXA_BASE_URL=https://api.wexa.ai
WEXA_API_KEY=your-api-key-here
WEXA_PROJECT_ID=your-project-id

Authentication Header#

The SDK automatically includes the API key in the x-api-key header for all requests. You don't need to manually set headers when using the SDK.
Example Request (what the SDK does internally):

Base URL Configuration#

The SDK supports different environments:
Production: https://api.wexa.ai
Staging: https://api.staging.wexa.ai

Complete Example#

Modified at 2026-01-02 08:28:45
Previous
Use Cases and Workflows
Next
Troubleshooting Guide