Remote API - Complete Endpoint Reference
Complete reference for all endpoints in the AGNT Remote API (https://api.agnt.gg).
Table of Contents
- Marketplace
- Users & Subscriptions
- Executions
- Custom Tools
- Content Outputs
- Streaming
- Email Services
- Webhooks
- Referrals
- Waitlist & Onboarding
- Auth Providers
Marketplace
Browse, publish, and install marketplace items.
Base: /marketplace
Browse Items
GET /marketplace/itemsAuth: Optional
Query Params:
category- Filter by categorysearch- Search querysort- Sort field (popularity, rating, recent)page- Page numberlimit- Items per page
Response:
{
"success": true,
"items": [
{
"id": "item-123",
"name": "SEO Optimizer",
"description": "Automated SEO optimization workflow",
"type": "workflow",
"category": "marketing",
"price": 0,
"rating": 4.8,
"downloads": 1250,
"author": {
"id": "user-456",
"name": "John Doe"
}
}
],
"pagination": {
"page": 1,
"total": 100
}
}Get Item Details
GET /marketplace/items/:idAuth: Optional
Featured Items
GET /marketplace/items/featuredAuth: Optional
Install Item
POST /marketplace/items/:id/installAuth: Required
Response:
{
"success": true,
"message": "Item installed successfully",
"installedId": "local-workflow-789"
}Purchase Item
POST /marketplace/items/:id/purchaseAuth: Required
Body: { "paymentMethodId": "pm_123" }
Publish Item
POST /marketplace/publishAuth: Required
Body:
{
"type": "workflow",
"itemId": "workflow-123",
"name": "My Workflow",
"description": "Description",
"category": "automation",
"price": 0,
"tags": ["automation", "productivity"]
}Update Listing
PUT /marketplace/items/:idAuth: Required (must be owner)
Remove Listing
DELETE /marketplace/items/:idAuth: Required (must be owner)
Get My Published Items
GET /marketplace/my-workflowsAuth: Required
Get My Purchases
GET /marketplace/my-purchasesAuth: Required
Get My Installs
GET /marketplace/my-installsAuth: Required
Check for Updates
GET /marketplace/updatesAuth: Required
Reviews
Submit Review
POST /marketplace/reviewsAuth: Required
Body:
{
"itemId": "item-123",
"rating": 5,
"comment": "Excellent workflow!",
"title": "Great tool"
}Get Item Reviews
GET /marketplace/items/:id/reviewsAuth: Optional
Update Review
PUT /marketplace/reviews/:idAuth: Required (must be author)
Delete Review
DELETE /marketplace/reviews/:idAuth: Required (must be author)
Vote on Review
POST /marketplace/reviews/:id/voteAuth: Required | Body: { "vote": "up" | "down" }
Analytics (Publishers)
Get Item Analytics
GET /marketplace/workflows/:id/analyticsAuth: Required (must be owner)
Response:
{
"views": 1500,
"installs": 250,
"revenue": 1250.0,
"rating": 4.8,
"reviews": 45,
"trend": "up"
}Get Earnings
GET /marketplace/my-earningsAuth: Required
Users & Subscriptions
User management and billing.
Base: /users
Register
POST /users/registerAuth: Not required
Body:
{
"email": "user@example.com",
"password": "secure-password",
"name": "John Doe"
}Login
POST /users/loginAuth: Not required
Body: { "email": "...", "password": "..." }
Response:
{
"success": true,
"token": "jwt-token",
"user": {
"id": "user-123",
"email": "user@example.com",
"name": "John Doe"
}
}Get Profile
GET /users/profileAuth: Required
Update Profile
PUT /users/profileAuth: Required
Body:
{
"name": "New Name",
"bio": "User bio",
"avatar": "https://..."
}Generate API Key
POST /users/generate-api-keyAuth: Required
Get User Stats
GET /users/user-statsAuth: Required
Response:
{
"totalAgents": 15,
"totalWorkflows": 8,
"totalExecutions": 1250,
"creditsUsed": 5000,
"creditsRemaining": 5000
}Get Credits
GET /users/creditsAuth: Required
Subscriptions
Create Subscription
POST /users/subscription/createAuth: Required
Body:
{
"planId": "personal_monthly",
"paymentMethodId": "pm_123"
}Get Subscription Status
GET /users/subscription/statusAuth: Required
Cancel Subscription
POST /users/subscription/cancelAuth: Required
Reactivate Subscription
POST /users/subscription/reactivateAuth: Required
Update Subscription
POST /users/subscription/updateAuth: Required
Body: { "planId": "business_monthly" }
Executions
View execution history and analytics.
Base: /executions
List Executions
GET /executionsAuth: Required
Query Params:
page- Page numberlimit- Items per pagestatus- Filter by status (success, failed, running)agentId- Filter by agentworkflowId- Filter by workflow
Get Execution Details
GET /executions/:idAuth: Required
Response:
{
"id": "exec-123",
"agentId": "agent-456",
"workflowId": "workflow-789",
"status": "success",
"startedAt": "2025-11-25T10:00:00Z",
"completedAt": "2025-11-25T10:05:00Z",
"duration": 300000,
"tokensUsed": 1500,
"cost": 0.03,
"steps": [
{
"name": "Research",
"status": "success",
"output": "..."
}
]
}Get Agent Activity
POST /executions/activityAuth: Required
Body:
{
"agentId": "agent-123",
"startDate": "2025-11-01",
"endDate": "2025-11-30"
}Custom Tools
Manage custom tool definitions.
Base: /custom-tools
List Custom Tools
GET /custom-toolsAuth: Required
Get Custom Tool
GET /custom-tools/:idAuth: Required
Save Custom Tool
POST /custom-tools/save
PUT /custom-tools/:idAuth: Required
Body:
{
"name": "Custom API Tool",
"description": "Calls external API",
"type": "api",
"config": {
"url": "https://api.example.com",
"method": "POST",
"headers": {},
"body": {}
},
"inputSchema": {},
"outputSchema": {}
}Delete Custom Tool
DELETE /custom-tools/:idAuth: Required
Content Outputs
Manage generated content.
Base: /content-outputs
List Content Outputs
GET /content-outputsAuth: Required
Get Content Output
GET /content-outputs/:idAuth: Required
Save Content Output
POST /content-outputs/saveAuth: Required
Get by Workflow
GET /content-outputs/workflow/:workflowIdAuth: Required
Get by Tool
GET /content-outputs/tool/:toolIdAuth: Required
Streaming
Real-time AI streaming endpoints.
Base: /stream
Start Tool Forge Stream
POST /stream/start-tool-forge-streamAuth: Required
Content-Type: multipart/form-data
Body:
message- User messagefiles- Optional file uploadsconfig- Stream configuration
Response: Server-Sent Events (SSE) stream
Cancel Tool Forge Stream
POST /stream/cancel-tool-forge-streamAuth: Required
Start Chat Stream
POST /stream/start-chat-streamAuth: Required | Content-Type: multipart/form-data
Cancel Chat Stream
POST /stream/cancel-chat-streamAuth: Required
Generate Tool
POST /stream/generate-toolAuth: Required
Body:
{
"description": "A tool that fetches weather data",
"requirements": ["API integration", "Error handling"]
}Generate Workflow
POST /stream/generate-workflowAuth: Required
Body:
{
"description": "Automated content creation workflow",
"steps": ["Research", "Write", "Publish"]
}Email Services
Email integration and notifications.
Base: /email
Initialize Email
POST /email/initializeAuth: Required
Poll Emails
GET /email/pollAuth: Required
Send Email
POST /email/sendAuth: Required
Body:
{
"to": "recipient@example.com",
"subject": "Subject",
"body": "Email body",
"html": "<p>HTML body</p>"
}Send Feedback
POST /email/send-feedbackAuth: Required
Body:
{
"type": "bug" | "feature" | "general",
"message": "Feedback message",
"email": "user@example.com"
}Send Enterprise Inquiry
POST /email/send-enterprise-inquiryAuth: Required
Webhooks
Webhook management for event notifications.
Base: /webhooks
Poll Webhooks
GET /webhooks/pollAuth: Required
Confirm Processed Triggers
POST /webhooks/confirm-processedAuth: Required
Body: { "triggerIds": ["trigger-1", "trigger-2"] }
Webhook Receiver
ALL /webhooks/:workflowIdAuth: Not required (uses webhook secret)
Receives webhook payloads and triggers workflows.
Referrals
Referral program management.
Base: /referrals
Get Referral Count
GET /referrals/countAuth: Not required
Create Referral
POST /referrals/createAuth: Required
Body:
{
"userId": "user-123",
"referralCode": "ABC123"
}Get Network Score
GET /referrals/network-score/:emailAuth: Not required
Response:
{
"personalBalance": 500,
"networkScore": 1250,
"totalScore": 1750,
"breakdown": {
"personal": 500,
"network": 1250,
"total": 1750
}
}Verify Referral Code
GET /referrals/verify/:codeAuth: Not required
Get Leaderboard
GET /referrals/leaderboard?limit=10Auth: Optional
Process Referral
POST /referrals/referralAuth: Not required
Body:
{
"referralCode": "ABC123",
"newUserEmail": "newuser@example.com"
}Get User Referral Info
GET /referrals/user/:emailAuth: Not required
Get Referral Tree
GET /referrals/tree/:userEmailAuth: Not required
Returns 3-level deep referral tree with activity data.
Update Pseudonym
POST /referrals/update-pseudonymAuth: Required
Body: { "newPseudonym": "CoolUser123" }
Check Pseudonym Availability
POST /referrals/check-availabilityAuth: Not required
Body: { "pseudonym": "CoolUser123" }
Commission Endpoints
Get Commission Summary
GET /referrals/commissions/summaryAuth: Required
Get Commission History
GET /referrals/commissions/historyAuth: Required
Waitlist & Onboarding
Waitlist and user onboarding management.
Waitlist
Base: /waitlist
Get Waitlist Count
GET /waitlist/countAuth: Not required
Join Waitlist
POST /waitlist/joinAuth: Not required
Body:
{
"email": "user@example.com",
"interest": "AI automation"
}Onboarding
Base: /onboarding
Get Progress
GET /onboarding/progressAuth: Required
Complete Onboarding
POST /onboarding/completeAuth: Required
Get Analytics
GET /onboarding/analyticsAuth: Required
Unsubscribe
GET /onboarding/unsubscribe?email=user@example.com
POST /onboarding/unsubscribeAuth: Not required
Track Event
GET /onboarding/track/:sequenceId/:eventTypeAuth: Not required
Auth Providers
OAuth provider and API key management.
Base: /auth
List Providers
GET /auth/providersAuth: Required
Create Provider
POST /auth/providersAuth: Required
Body:
{
"name": "custom-api",
"type": "api_key",
"config": {}
}Update Provider
PUT /auth/providers/:idAuth: Required
Delete Provider
DELETE /auth/providers/:idAuth: Required
Get Provider
GET /auth/providers/:idAuth: Required
Store API Key
POST /auth/apikeys/:providerIdAuth: Required
Body: { "apiKey": "sk-..." }
Retrieve API Key
GET /auth/apikeys/:providerIdAuth: Required
Connect OAuth Provider
GET /auth/connect/:providerAuth: Required
Initiates OAuth flow for provider (google, zapier, etc.)
Disconnect Provider
POST /auth/disconnect/:providerAuth: Required
Get Connected Apps
GET /auth/connectedAuth: Required
Get Valid Token
GET /auth/valid-token?provider=googleAuth: Required
Returns a valid access token for the provider.
Common Patterns
Pagination
Most list endpoints support pagination:
GET /endpoint?page=1&limit=20Filtering
GET /endpoint?status=active&category=automationSorting
GET /endpoint?sort=createdAt&order=descSearch
GET /endpoint?search=keywordError Handling
All endpoints return consistent error responses:
{
"success": false,
"error": "Error message",
"statusCode": 400,
"details": "Additional error details"
}Next Steps
- Local API Reference - Desktop backend API
- Local API Overview - Local API features
- Authentication Guide - Auth methods
- Examples - Code examples