{"info":{"name":"Social Media Integration Gateway API","description":"Publish to Facebook Pages and Instagram professional accounts, read posts and comments, reply and moderate. Writes return 202 with an operationId; results arrive by GET /api/v1/operations/{id} and by signed webhooks.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"baseUrl","value":"https://api.crmgateway.brainstorming-solutions.com"},{"key":"apiKey","value":""}],"item":[{"name":"CommentsApi","item":[{"name":"Get /api/v1/comments/{id}","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/comments/{id}","host":["{{baseUrl}}"],"path":["api","v1","comments",":id"],"query":[]}}},{"name":"Delete, where Meta allows it for this comment and the account\u0027s permissions.","request":{"method":"DELETE","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"}],"url":{"raw":"{{baseUrl}}/api/v1/comments/{id}","host":["{{baseUrl}}"],"path":["api","v1","comments",":id"],"query":[]}}},{"name":"Reply as the page/account. The reply\u0027s id arrives in the operation result and the social.comment.replied event.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/comments/{id}/replies","host":["{{baseUrl}}"],"path":["api","v1","comments",":id","replies"],"query":[]},"body":{"mode":"raw","raw":"{ \u0022message\u0022: \u0022Thank you!\u0022 }"}}},{"name":"Post /api/v1/comments/{id}/hide","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/comments/{id}/hide","host":["{{baseUrl}}"],"path":["api","v1","comments",":id","hide"],"query":[]},"body":{"mode":"raw","raw":"{}"}}},{"name":"Post /api/v1/comments/{id}/unhide","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/comments/{id}/unhide","host":["{{baseUrl}}"],"path":["api","v1","comments",":id","unhide"],"query":[]},"body":{"mode":"raw","raw":"{}"}}}]},{"name":"OperationsApi","item":[{"name":"The state of anything that runs in the background: queued, running, succeeded, partially_succeeded, failed, cancelled.","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/operations/{id}","host":["{{baseUrl}}"],"path":["api","v1","operations",":id"],"query":[]}}}]},{"name":"PostsApi","item":[{"name":"Create a publish request for one or more accounts, now or at a scheduled time.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/posts","host":["{{baseUrl}}"],"path":["api","v1","posts"],"query":[]},"body":{"mode":"raw","raw":"{\n  \u0022targets\u0022: [ { \u0022socialAccountId\u0022: \u0022{{socialAccountId}}\u0022, \u0022platform\u0022: \u0022facebook\u0022 } ],\n  \u0022content\u0022: { \u0022type\u0022: \u0022text\u0022, \u0022message\u0022: \u0022Hello from the gateway\u0022 },\n  \u0022publishing\u0022: { \u0022mode\u0022: \u0022immediate\u0022, \u0022scheduledAt\u0022: null },\n  \u0022externalReference\u0022: \u0022CRM-CAMPAIGN-1\u0022\n}"}}},{"name":"List posts, newest first. Cursor pagination: pass pagination.nextCursor back as ?cursor=.","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/posts","host":["{{baseUrl}}"],"path":["api","v1","posts"],"query":[{"key":"status","value":"","disabled":true},{"key":"socialAccountId","value":"","disabled":true},{"key":"platform","value":"","disabled":true},{"key":"externalReference","value":"","disabled":true},{"key":"origin","value":"","disabled":true},{"key":"from","value":"","disabled":true},{"key":"to","value":"","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}}},{"name":"One post with the result of every target.","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/posts/{id}","host":["{{baseUrl}}"],"path":["api","v1","posts",":id"],"query":[]}}},{"name":"Cancel a scheduled post before any account has started publishing it.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"}],"url":{"raw":"{{baseUrl}}/api/v1/posts/{id}/cancel","host":["{{baseUrl}}"],"path":["api","v1","posts",":id","cancel"],"query":[]}}},{"name":"Publish again to the targets that failed.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"}],"url":{"raw":"{{baseUrl}}/api/v1/posts/{id}/retry","host":["{{baseUrl}}"],"path":["api","v1","posts",":id","retry"],"query":[]}}},{"name":"Comments and replies on a post, oldest first, with cursor pagination.","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/posts/{id}/comments","host":["{{baseUrl}}"],"path":["api","v1","posts",":id","comments"],"query":[{"key":"targetId","value":"","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}}}]},{"name":"SandboxApi","item":[{"name":"Make a fake customer comment arrive exactly as a Meta webhook would deliver it.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/sandbox/comments","host":["{{baseUrl}}"],"path":["api","v1","sandbox","comments"],"query":[]},"body":{"mode":"raw","raw":"{ \u0022socialAccountId\u0022: \u0022{{socialAccountId}}\u0022, \u0022text\u0022: \u0022How much is this?\u0022, \u0022authorName\u0022: \u0022Test Customer\u0022 }"}}},{"name":"Send a sample event of the given type to every matching webhook subscription.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/api/v1/sandbox/webhooks/test","host":["{{baseUrl}}"],"path":["api","v1","sandbox","webhooks","test"],"query":[]},"body":{"mode":"raw","raw":"{ \u0022eventType\u0022: \u0022social.comment.created\u0022 }"}}},{"name":"Delete this test company\u0027s posts, comments, operations and deliveries. Settings and credentials stay.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/sandbox/reset","host":["{{baseUrl}}"],"path":["api","v1","sandbox","reset"],"query":[]}}}]},{"name":"SocialAccountsApi","item":[{"name":"The accounts this tenant activated, with what each one can do.","request":{"method":"GET","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/api/v1/social-accounts","host":["{{baseUrl}}"],"path":["api","v1","social-accounts"],"query":[{"key":"includeInactive","value":"","disabled":true}]}}}]},{"name":"TokenApi","item":[{"name":"Post /oauth/token","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"}],"url":{"raw":"{{baseUrl}}/oauth/token","host":["{{baseUrl}}"],"path":["oauth","token"],"query":[]}}}]},{"name":"UploadsApi","item":[{"name":"Upload an image (multipart field \u0022file\u0022). Type, size and dimensions are checked from the bytes themselves.","request":{"method":"POST","header":[{"key":"X-Api-Key","value":"{{apiKey}}"},{"key":"Idempotency-Key","value":"{{$guid}}"}],"url":{"raw":"{{baseUrl}}/api/v1/uploads","host":["{{baseUrl}}"],"path":["api","v1","uploads"],"query":[]}}}]}]}