Skip to content

Delete Form DELETE

Permanently delete a form. Its public link stops working at once. Messages the form already produced are kept.

Endpoint

DELETE https://api.pocketalert.app/v1/forms/{tid}

Authentication

Required

Include one of these headers in your request:

  • Token: <your-api-key> — Get it from API Keys
  • Authorization: Bearer <jwt-token> — From Login

Request

Path Parameters

ParameterTypeRequiredDescription
tidstringForm identifier

Example Request

bash
curl -X DELETE "https://api.pocketalert.app/v1/forms/vml19aihrga216gt8apc5e3m9" \
  -H "Token: your-api-key"
javascript
await fetch('https://api.pocketalert.app/v1/forms/vml19aihrga216gt8apc5e3m9', {
  method: 'DELETE',
  headers: { 'Token': 'your-api-key' }
});
python
import requests

requests.delete(
    'https://api.pocketalert.app/v1/forms/vml19aihrga216gt8apc5e3m9',
    headers={'Token': 'your-api-key'}
)

Response

Success Response

200 OK

json
{ "data": "success" }

Not reversible

A deleted form cannot be restored, and its link cannot be reissued. To stop responses without losing the form, set is_active to false with Update Form.

Error Responses

StatusDescription
401Unauthorized — Invalid or missing token
404Form not found, or it belongs to another account
500Failed to delete form

Pocket Alert Documentation