Workflow ID Manager

Generate Workflow & Thread IDs

Creates both workflow and thread IDs simultaneously

Workflow ID Format

a91_123456_name_abc12345_123456_xyz123
Structured format with business ID and agent name

Thread ID Format

c47e8344b96180d9f3210e0eb8311f9b
32 random hexadecimal characters

API Endpoints

Use these endpoints to integrate with your applications

Generate Both Workflow & Thread IDs

POST /api/gen

Request Body:

{
  "business_id": "123456",
  "agent_name": "octopus"
}

Response:

{
  "success": true,
  "workflow_id": "a91_123456_octopus_abc12345_123456_xyz123",
  "thread_id": "c47e8344b96180d9f3210e0eb8311f9b",
  "message": "Both IDs generated successfully"
}

Retrieve Existing Workflow ID

GET /api/get/{id}

Example:

GET /api/get/a91_123456_octopus_abc12345_123456_xyz123

Response:

{
  "success": true,
  "id": "a91_123456_octopus_abc12345_123456_xyz123",
  "created_at": "2025-06-19T06:23:30.457502",
  "message": "Workflow ID retrieved successfully"
}

cURL Examples

Generate ID:

curl -X POST https://your-domain.com/api/gen \
  -H "Content-Type: application/json" \
  -d '{"business_id": "123456", "agent_name": "octopus"}'

Fetch ID:

curl https://your-domain.com/api/get/a91_123456_octopus_abc12345_123456_xyz123