{ "opencollection": "1.0.0", "info": { "name": "Loops OpenAPI Spec API key Campaigns API", "version": "1.8.0" }, "items": [ { "info": { "name": "Campaigns", "type": "folder" }, "items": [ { "info": { "name": "List campaigns", "type": "http" }, "http": { "method": "GET", "url": "https://app.loops.so/api/v1/campaigns", "params": [ { "name": "perPage", "value": "", "type": "query", "description": "How many results to return in each request. Must be between 10 and 50. Default is 20." }, { "name": "cursor", "value": "", "type": "query", "description": "A cursor to return a specific page of results. Cursors can be found from the `pagination.nextCursor` value in each response." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieve a paginated list of campaigns." }, { "info": { "name": "Create a campaign", "type": "http" }, "http": { "method": "POST", "url": "https://app.loops.so/api/v1/campaigns", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a new draft campaign. An empty email message is created automatically and its `emailMessageId` is returned. Use the `/email-messages/{emailMessageId}` endpoint to set subject, sender, preview text, and LMX content." }, { "info": { "name": "Get a campaign", "type": "http" }, "http": { "method": "GET", "url": "https://app.loops.so/api/v1/campaigns/:campaignId", "params": [ { "name": "campaignId", "value": "", "type": "path", "description": "The ID of the campaign." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieve a single campaign by ID." }, { "info": { "name": "Update a campaign", "type": "http" }, "http": { "method": "POST", "url": "https://app.loops.so/api/v1/campaigns/:campaignId", "params": [ { "name": "campaignId", "value": "", "type": "path", "description": "The ID of the campaign." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update a draft campaign's name. Campaigns can only be updated while in draft status." } ] } ], "bundled": true }