Delete Post
POST/instagram/page/deletePost
This endpoint allows you to delete a post you previously created (using our API or directly on Instagram).
warning
This is a permanent action and can't be undone.
Settings:
| Setting | Value |
|---|---|
| URL | https://api.99digital.co.il/instagram/page/deletePost |
| Method | JSON via POST |
| Header | Your API key for the service (the apiKey header) |
Body:
| Parameter | Description / Example | Mandatory | Example |
|---|---|---|---|
| from | The ID you received for the connection | yes | 463745743546345 |
| mediaId | The media ID you wish to delete: the mediaId you received from Create Post, or the post's id in All Posts | yes | 15625364215_56994166514 |
Response:
{
"status": "OK",
"mediaId": "15234562345623_952362434423178",
"timestamp": 1600115719,
"from": "463745743546345",
"reason": 1,
"deleted": true
}
Response-Explain:
| Parameter | Description |
|---|---|
| status | OK or FAIL |
| mediaId | The media ID of the post that you deleted |
| timestamp | Time stamp of the message |
| from | Your ID for the service |
| deleted | true if the delete was successful. A delete that fails answers with status FAIL and a reason instead, so in an OK response it is always true |
reason:
| Value | Information |
|---|---|
| 1 | Not FAIL. The status is OK |
| 2 | Your "from" account does not exist (for example, its onboarding is not finished yet) or is missing, or JSON syntax error |
| 3 | Wrong apiKey (the apiKey header is missing or wrong) |
| 4 | mediaId is missing (or is not a valid media ID) |
| 6 | Wrong connection type. Your keys/ID are correct, but you are using the wrong endpoint (for example: your onboarding was for Facebook Messenger, but you are using this Instagram endpoint) |
| 7 | The connection is not active (it was disabled) |
| 10 | You must do the onboarding again, the connection has expired |
| 11 | A permission is missing: the connection does not have Meta's permission for this action |
| 12 | Rate limit error. Too many requests. Please wait a few minutes and try again |
| 13 | The mediaId you provided is invalid or wrong: the post was not found, or it is not accessible |
| 15 | Meta rejected the request: an invalid parameter, or a policy violation |
| 18 | General error, try again |
Request
Responses
- 200
The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.