Developer docsSocial Gateway API reference Postman العربية

Sandbox

The sandbox is a separate deployment with the same contracts, its own database and sgk_test_ keys. It never reaches Meta unless a platform administrator turns that on.

Simulation

POST /api/v1/sandbox/comments       { "socialAccountId": "...", "text": "How much?", "authorName": "Test Customer" }
POST /api/v1/sandbox/webhooks/test  { "eventType": "social.comment.created" }
POST /api/v1/sandbox/reset

To simulate Meta failures, put one of these markers in the message when publishing or replying:

[simulate:rate_limit]Rate limited (retried automatically)
[simulate:token_expired]Token expired
[simulate:permission]Permission missing
[simulate:media_rejected]Media rejected
[simulate:outage]Temporary Meta outage (retried)
[simulate:failure]Invalid request