{ "openapi": "3.0.3", "info": { "title": "Aimtell API", "description": "Aimtell is a platform that enables you to re-engage website visitors with highly targeted browser push notifications. Manage campaigns, subscribers, segments, and analytics.", "version": "1.0.0", "x-jentic-source-url": "https://documentation.aimtell.com/" }, "servers": [ { "url": "https://api.aimtell.com/prod" } ], "paths": { "/analytics": { "get": { "operationId": "getAnalyticsAllSites", "summary": "Get Analytics Over Time (All Sites)", "description": "Get analytics data aggregated across all sites.", "tags": [ "Analytics" ], "parameters": [ { "name": "start", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "end", "in": "query", "schema": { "type": "string", "format": "date" } } ], "responses": { "200": { "description": "Analytics data", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalyticsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/analytics/{siteId}": { "get": { "operationId": "getAnalyticsBySite", "summary": "Get Analytics Over Time (Specific Site)", "description": "Get analytics data for a specific site.", "tags": [ "Analytics" ], "parameters": [ { "name": "siteId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "start", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "end", "in": "query", "schema": { "type": "string", "format": "date" } } ], "responses": { "200": { "description": "Analytics data", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AnalyticsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/push": { "post": { "operationId": "sendPushNotification", "summary": "Send Push Notification", "description": "Send a one-off push notification to subscribers.", "tags": [ "Notifications" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PushNotificationRequest" } } } }, "responses": { "200": { "description": "Notification sent", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/manual": { "get": { "operationId": "listManualCampaigns", "summary": "List Manual Campaigns", "description": "Get all manual push campaigns.", "tags": [ "Campaigns" ], "responses": { "200": { "description": "List of campaigns", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "createManualCampaign", "summary": "Create Manual Campaign", "description": "Create a new manual push campaign.", "tags": [ "Campaigns" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCampaignRequest" } } } }, "responses": { "200": { "description": "Campaign created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/manual/{campaignId}": { "get": { "operationId": "getManualCampaign", "summary": "Get Manual Campaign", "description": "Get a specific manual campaign.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Campaign details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updateManualCampaign", "summary": "Update Manual Campaign", "description": "Update an existing manual campaign.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCampaignRequest" } } } }, "responses": { "200": { "description": "Campaign updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "delete": { "operationId": "deleteManualCampaign", "summary": "Delete Manual Campaign", "description": "Delete a manual campaign.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Campaign deleted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/manual/{campaignId}/results": { "get": { "operationId": "getManualCampaignResults", "summary": "Get Manual Campaign Results", "description": "Get results for a manual campaign by day.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Campaign results", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CampaignResults" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/manual/{campaignId}/clicks": { "get": { "operationId": "getManualCampaignClicks", "summary": "Get Manual Campaign Clicks", "description": "Get click data for a manual campaign.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Click data", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CampaignResults" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/api": { "get": { "operationId": "listApiCampaigns", "summary": "List API Campaigns", "description": "Get all API push campaigns.", "tags": [ "Campaigns" ], "responses": { "200": { "description": "List of API campaigns", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/api/{campaignId}": { "get": { "operationId": "getApiCampaign", "summary": "Get API Campaign", "description": "Get a specific API campaign.", "tags": [ "Campaigns" ], "parameters": [ { "name": "campaignId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Campaign details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/rss": { "get": { "operationId": "listRssCampaigns", "summary": "List RSS Campaigns", "description": "Get all RSS campaigns.", "tags": [ "Campaigns" ], "responses": { "200": { "description": "List of RSS campaigns", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "createRssCampaign", "summary": "Create RSS Campaign", "description": "Create a new RSS campaign.", "tags": [ "Campaigns" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCampaignRequest" } } } }, "responses": { "200": { "description": "Campaign created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/campaigns/event": { "get": { "operationId": "listEventCampaigns", "summary": "List Event Triggered Campaigns", "description": "Get all event triggered campaigns.", "tags": [ "Campaigns" ], "responses": { "200": { "description": "List of event campaigns", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Campaign" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "createEventCampaign", "summary": "Create Event Triggered Campaign", "description": "Create a new event triggered campaign.", "tags": [ "Campaigns" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCampaignRequest" } } } }, "responses": { "200": { "description": "Campaign created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/segments": { "get": { "operationId": "listSegments", "summary": "List Segments", "description": "Get all segments.", "tags": [ "Segments" ], "responses": { "200": { "description": "List of segments", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Segment" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "createSegment", "summary": "Create Segment", "description": "Create a new segment.", "tags": [ "Segments" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSegmentRequest" } } } }, "responses": { "200": { "description": "Segment created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Segment" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/segments/{segmentId}": { "get": { "operationId": "getSegment", "summary": "Get Segment", "description": "Get a specific segment.", "tags": [ "Segments" ], "parameters": [ { "name": "segmentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Segment details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Segment" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updateSegment", "summary": "Update Segment", "description": "Update an existing segment.", "tags": [ "Segments" ], "parameters": [ { "name": "segmentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSegmentRequest" } } } }, "responses": { "200": { "description": "Segment updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Segment" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "delete": { "operationId": "deleteSegment", "summary": "Delete Segment", "description": "Delete a segment.", "tags": [ "Segments" ], "parameters": [ { "name": "segmentId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Segment deleted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/subscribers": { "get": { "operationId": "listSubscribers", "summary": "List Subscribers", "description": "Get subscribers.", "tags": [ "Subscribers" ], "responses": { "200": { "description": "List of subscribers", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Subscriber" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/subscribers/{subscriberId}": { "get": { "operationId": "getSubscriber", "summary": "Get Subscriber", "description": "Get a specific subscriber.", "tags": [ "Subscribers" ], "parameters": [ { "name": "subscriberId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Subscriber details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Subscriber" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/subscribers/{subscriberId}/attributes": { "post": { "operationId": "trackSubscriberAttribute", "summary": "Track Subscriber Attribute", "description": "Track a custom attribute for a subscriber.", "tags": [ "Subscribers" ], "parameters": [ { "name": "subscriberId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "responses": { "200": { "description": "Attribute tracked", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/websites": { "get": { "operationId": "listWebsites", "summary": "List Websites", "description": "Get all websites.", "tags": [ "Websites" ], "responses": { "200": { "description": "List of websites", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Website" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "addWebsite", "summary": "Add Website", "description": "Add a new website.", "tags": [ "Websites" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWebsiteRequest" } } } }, "responses": { "200": { "description": "Website added", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Website" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/websites/{websiteId}": { "get": { "operationId": "getWebsite", "summary": "Get Website", "description": "Get a specific website.", "tags": [ "Websites" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Website details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Website" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updateWebsite", "summary": "Update Website", "description": "Update website settings.", "tags": [ "Websites" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWebsiteRequest" } } } }, "responses": { "200": { "description": "Website updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Website" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "delete": { "operationId": "deleteWebsite", "summary": "Delete Website", "description": "Delete a website.", "tags": [ "Websites" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Website deleted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/pixels": { "get": { "operationId": "listPixels", "summary": "List Pixels", "description": "Get all tracking pixels.", "tags": [ "Pixels" ], "responses": { "200": { "description": "List of pixels", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Pixel" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "createPixel", "summary": "Create Pixel", "description": "Create a new tracking pixel.", "tags": [ "Pixels" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePixelRequest" } } } }, "responses": { "200": { "description": "Pixel created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pixel" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/pixels/{pixelId}": { "get": { "operationId": "getPixel", "summary": "Get Pixel", "description": "Get a specific tracking pixel.", "tags": [ "Pixels" ], "parameters": [ { "name": "pixelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Pixel details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pixel" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updatePixel", "summary": "Update Pixel", "description": "Update a tracking pixel.", "tags": [ "Pixels" ], "parameters": [ { "name": "pixelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePixelRequest" } } } }, "responses": { "200": { "description": "Pixel updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pixel" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "delete": { "operationId": "deletePixel", "summary": "Delete Pixel", "description": "Delete a tracking pixel.", "tags": [ "Pixels" ], "parameters": [ { "name": "pixelId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Pixel deleted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/users/{userId}": { "get": { "operationId": "getUser", "summary": "Get User", "description": "Get user details.", "tags": [ "Users" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "User details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updateUser", "summary": "Update User", "description": "Update user details.", "tags": [ "Users" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateUserRequest" } } } }, "responses": { "200": { "description": "User updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/User" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/logs/notifications": { "get": { "operationId": "getNotificationLogs", "summary": "Get Notification Logs", "description": "Get notification delivery logs.", "tags": [ "Logs" ], "responses": { "200": { "description": "Notification logs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/logs/events": { "get": { "operationId": "getEventLogs", "summary": "Get Event Logs", "description": "Get event tracking logs.", "tags": [ "Logs" ], "responses": { "200": { "description": "Event logs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/logs/aliases": { "get": { "operationId": "getAliasLogs", "summary": "Get Alias Logs", "description": "Get alias tracking logs.", "tags": [ "Logs" ], "responses": { "200": { "description": "Alias logs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/logs/attributes": { "get": { "operationId": "getAttributeLogs", "summary": "Get Attribute Logs", "description": "Get attribute tracking logs.", "tags": [ "Logs" ], "responses": { "200": { "description": "Attribute logs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/logs/pageviews": { "get": { "operationId": "getPageviewLogs", "summary": "Get Pageview Logs", "description": "Get pageview tracking logs.", "tags": [ "Logs" ], "responses": { "200": { "description": "Pageview logs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LogEntry" } } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/welcome": { "get": { "operationId": "getWelcomeCampaign", "summary": "Get Welcome Campaign", "description": "Get the welcome notification campaign.", "tags": [ "Campaigns" ], "responses": { "200": { "description": "Welcome campaign", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "put": { "operationId": "updateWelcomeCampaign", "summary": "Update Welcome Campaign", "description": "Update the welcome notification campaign.", "tags": [ "Campaigns" ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCampaignRequest" } } } }, "responses": { "200": { "description": "Welcome campaign updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Campaign" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } }, "/permissions/{websiteId}": { "get": { "operationId": "getWebsitePermissions", "summary": "Get Website Permissions", "description": "Get permissions for a website.", "tags": [ "Permissions" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Permissions list", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "post": { "operationId": "grantWebsitePermissions", "summary": "Grant Website Permissions", "description": "Grant permissions for a website.", "tags": [ "Permissions" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "description": "Permissions granted", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } }, "delete": { "operationId": "removeWebsitePermissions", "summary": "Remove Website Permissions", "description": "Remove permissions for a website.", "tags": [ "Permissions" ], "parameters": [ { "name": "websiteId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Permissions removed", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SuccessResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "401": { "$ref": "#/components/responses/Unauthorized" } } } } }, "components": { "securitySchemes": { "apiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-Authorization", "description": "Aimtell API key" } }, "responses": { "BadRequest": { "description": "Bad request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "Unauthorized": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } }, "schemas": { "AnalyticsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object" } } } }, "PushNotificationRequest": { "type": "object", "properties": { "title": { "type": "string" }, "body": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "icon": { "type": "string" }, "site_id": { "type": "string" } } }, "Campaign": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" } } }, "CreateCampaignRequest": { "type": "object", "properties": { "name": { "type": "string" }, "title": { "type": "string" }, "body": { "type": "string" }, "url": { "type": "string" }, "icon": { "type": "string" } } }, "CampaignResults": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object" } } } }, "Segment": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "conditions": { "type": "array", "items": { "type": "object" } } } }, "CreateSegmentRequest": { "type": "object", "properties": { "name": { "type": "string" }, "conditions": { "type": "array", "items": { "type": "object" } } } }, "Subscriber": { "type": "object", "properties": { "id": { "type": "string" }, "site_id": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" } } }, "Website": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "url": { "type": "string" } } }, "CreateWebsiteRequest": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string", "format": "uri" } } }, "Pixel": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } } }, "CreatePixelRequest": { "type": "object", "properties": { "name": { "type": "string" } } }, "User": { "type": "object", "properties": { "id": { "type": "string" }, "email": { "type": "string" } } }, "UpdateUserRequest": { "type": "object", "properties": { "email": { "type": "string" } } }, "LogEntry": { "type": "object", "properties": { "id": { "type": "string" }, "timestamp": { "type": "string", "format": "date-time" }, "data": { "type": "object" } } }, "SuccessResponse": { "type": "object", "properties": { "success": { "type": "boolean" } } }, "ErrorResponse": { "type": "object", "properties": { "error": { "type": "string" } } } } }, "security": [ { "apiKeyAuth": [] } ], "tags": [ { "name": "Analytics", "description": "Analytics and reporting" }, { "name": "Notifications", "description": "Push notification delivery" }, { "name": "Campaigns", "description": "Campaign management" }, { "name": "Segments", "description": "Subscriber segment management" }, { "name": "Subscribers", "description": "Subscriber management" }, { "name": "Websites", "description": "Website management" }, { "name": "Pixels", "description": "Tracking pixel management" }, { "name": "Users", "description": "User management" }, { "name": "Logs", "description": "Activity logs" }, { "name": "Permissions", "description": "Website permission management" } ] }