Skip to content
TriedDocs
Account

Delete invite

Revoke an invite so its link stops working.

DELETEhttps://api.tried.com.au/workspace/invites/{id}

Deletes an invite. Its accept link stops working. Admin only.

Request#

Field Type Required Description
id string Yes The invite_id from List invites.

Example request#

curl -X DELETE https://api.tried.com.au/workspace/invites/invite_4a6c8e0b2d4f6a8c0e2b4d6f \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/workspace/invites/invite_4a6c8e0b2d4f6a8c0e2b4d6f", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
console.log(res.status); // 204
import os, requests

res = requests.delete(
    "https://api.tried.com.au/workspace/invites/invite_4a6c8e0b2d4f6a8c0e2b4d6f",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
print(res.status_code)  # 204

Response#

204 No Content

The response has no body.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the admin scope. A dashboard user without the right role gets Requires role: admin. API keys act as admin.
404 Invite not found.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.