Wexa AI
  1. Create apikey
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
    • 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
    • Tasks
      • get tasks
      • get task by id
      • Pause running task
      • resume task
      • Stop task
    • Tables
      • Dashboard
        • get dashboard
        • refresh dashboard
        • delete component in dashboard
      • Insert row in a table
      • Get records
      • Get record by id
      • Update record by id
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a column
    • 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
    • Project member
      • project_member_summary
      • project_member
    • Available Connectors
      • Actions
    • Execution Details
      • Execution details
    • Knowledge Base
      • File Upload
    • Create apikey
      • Generate apikey
        POST
  1. Create apikey

Generate apikey

Developing
POST
https://api.wexa.ai/api-keys/generate
Last modified:2025-10-08 09:42:09

Create apikey#

This API allows you to generate an API key that can be used to authenticate and access various APIs within Wexa. For authorization, you must pass a bearer token.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wexa.ai/api-keys/generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "userId":"6745c8658f9228c7af116a1e",
    "orgId":"6745c8658f9228c7af116a20"
}'
Response Response Example
{
    "success": true,
    "data": {
        "secret_key": "string",
        "userId": "string",
        "orgId": "string",
        "is_active": true,
        "created_at": 0,
        "expiry_date": 0,
        "permissions": [
            "string"
        ],
        "_id": "string",
        "createdAt": "string",
        "updatedAt": "string"
    }
}
Modified at 2025-10-08 09:42:09
Previous
File Upload