{ "openapi": "3.0.3", "info": { "title": "Aimfox API", "description": "LinkedIn automation API for Aimfox platform (formerly LinkedApe) providing campaign management and lead generation functionality", "version": "1.0.0", "x-jentic-source-url": "https://docs.linkedape.com/", "contact": {} }, "servers": [ { "url": "https://api.linkedape.com/v1", "description": "Production server" } ], "paths": { "/campaigns": { "get": { "summary": "List Campaigns", "description": "Returns a list of all LinkedIn automation campaigns", "operationId": "listCampaigns", "tags": [ "Campaigns" ], "parameters": [ { "name": "status", "in": "query", "schema": { "type": "string", "enum": [ "active", "paused", "completed" ] }, "description": "Filter campaigns by status" }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50 } }, { "name": "offset", "in": "query", "schema": { "type": "integer", "default": 0 } } ], "responses": { "200": { "description": "List of campaigns", "content": { "application/json": { "schema": { "type": "object", "properties": { "campaigns": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } }, "total": { "type": "integer" } } } } } }, "401": { "$ref": "#/components/responses/UnauthorizedError" } } }, "post": { "summary": "Create Campaign", "description": "Creates a new LinkedIn automation campaign", "operationId": "createCampaign", "tags": [ "Campaigns" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CampaignCreate" } } } }, "responses": { "201": { "description": "Campaign created successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequestError" } } } }, "/campaigns/{id}": { "get": { "summary": "Get Campaign", "description": "Returns details of a specific campaign", "operationId": "getCampaign", "tags": [ "Campaigns" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Campaign details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "404": { "$ref": "#/components/responses/NotFoundError" } } }, "patch": { "summary": "Update Campaign", "description": "Updates a campaign", "operationId": "updateCampaign", "tags": [ "Campaigns" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CampaignUpdate" } } } }, "responses": { "200": { "description": "Campaign updated successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } } } }, "delete": { "summary": "Delete Campaign", "description": "Deletes a campaign", "operationId": "deleteCampaign", "tags": [ "Campaigns" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "Campaign deleted successfully" } } } }, "/leads": { "get": { "summary": "List Leads", "description": "Returns a list of leads from LinkedIn automation", "operationId": "listLeads", "tags": [ "Leads" ], "parameters": [ { "name": "campaign_id", "in": "query", "schema": { "type": "string" }, "description": "Filter leads by campaign" }, { "name": "status", "in": "query", "schema": { "type": "string", "enum": [ "new", "contacted", "replied", "converted" ] } }, { "name": "limit", "in": "query", "schema": { "type": "integer", "default": 50 } } ], "responses": { "200": { "description": "List of leads", "content": { "application/json": { "schema": { "type": "object", "properties": { "leads": { "type": "array", "items": { "$ref": "#/components/schemas/Lead" } } } } } } } } } }, "/leads/{id}": { "get": { "summary": "Get Lead", "description": "Returns details of a specific lead", "operationId": "getLead", "tags": [ "Leads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Lead details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Lead" } } } } } } }, "/messages": { "post": { "summary": "Send Message", "description": "Sends a LinkedIn message", "operationId": "sendMessage", "tags": [ "Messages" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MessageSend" } } } }, "responses": { "201": { "description": "Message sent successfully" } } } }, "/connections": { "get": { "summary": "List Connections", "description": "Returns LinkedIn connections", "operationId": "listConnections", "tags": [ "Connections" ], "responses": { "200": { "description": "List of connections", "content": { "application/json": { "schema": { "type": "object", "properties": { "connections": { "type": "array", "items": { "$ref": "#/components/schemas/Connection" } } } } } } } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "API key for authentication" } }, "responses": { "UnauthorizedError": { "description": "Unauthorized - Invalid or missing API key", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "BadRequestError": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "NotFoundError": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } }, "schemas": { "Campaign": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "paused", "completed" ] }, "target_audience": { "type": "string" }, "message_template": { "type": "string" }, "daily_limit": { "type": "integer" }, "created_at": { "type": "string", "format": "date-time" }, "updated_at": { "type": "string", "format": "date-time" } } }, "CampaignCreate": { "type": "object", "required": [ "name", "message_template" ], "properties": { "name": { "type": "string" }, "target_audience": { "type": "string" }, "message_template": { "type": "string" }, "daily_limit": { "type": "integer" } } }, "CampaignUpdate": { "type": "object", "properties": { "name": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "paused", "completed" ] }, "message_template": { "type": "string" }, "daily_limit": { "type": "integer" } } }, "Lead": { "type": "object", "properties": { "id": { "type": "string" }, "campaign_id": { "type": "string" }, "linkedin_url": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "company": { "type": "string" }, "status": { "type": "string", "enum": [ "new", "contacted", "replied", "converted" ] }, "created_at": { "type": "string", "format": "date-time" } } }, "MessageSend": { "type": "object", "required": [ "recipient_id", "message" ], "properties": { "recipient_id": { "type": "string" }, "message": { "type": "string" }, "campaign_id": { "type": "string" } } }, "Connection": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "title": { "type": "string" }, "company": { "type": "string" }, "connected_at": { "type": "string", "format": "date-time" } } }, "ErrorResponse": { "type": "object", "properties": { "error": { "type": "string" }, "message": { "type": "string" } } } } }, "security": [ { "ApiKeyAuth": [] } ], "tags": [ { "name": "Campaigns" }, { "name": "Connections" }, { "name": "Leads" }, { "name": "Messages" } ] }