Delete Topic

Delete a topic by ID.

DELETE/topics/{topic_id}

Requires a full_access API key.

Path Parameters

topic_idstringrequired

The ID of the topic to delete.

Response Fields

objectstring

Always "topic".

idstring

The topic ID.

deletedboolean

Always true.

curl -X DELETE 'https://api.postflare.app/topics/b2c3d4e5-f6a7-8901-bcde-f12345678901' \
  -H 'Authorization: Bearer re_xxxxxxxxx'
const response = await fetch(
  'https://api.postflare.app/topics/b2c3d4e5-f6a7-8901-bcde-f12345678901',
  {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer re_xxxxxxxxx',
    },
  }
);

const data = await response.json();

Response

Response
{
  "object": "topic",
  "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "deleted": true
}