Skip to content
PayloadPuffin.
Join the waitlist

Delete a source

DELETE/v1/sources/{sourceId}preview

Delete a source. Its URL stops working within a minute, and its events stay available. Deleting it again answers 404.

Path parameters

  • sourceId string Required

    A source ID, starting with src_.

Returns

200

The command completed.

  • data object Required

    The deleted source.

    • id string Required

      A source ID, starting with src_.

Example

Request
curl -X DELETE "https://api.payloadpuffin.com/v1/sources/$SOURCEID" \
  -H "Authorization: Bearer $PAYLOADPUFFIN_API_KEY"
Response 200
{
  "data": {
    "id": "id"
  }
}

Errors

Errors use application/problem+json. The code member is stable; branch on it rather than on title or detail.

  • 4XX application/problem+json

    The request was rejected.