---
title: "Delete invite"
method: DELETE
path: "/v2/invites/{invite_id}"
tags: ["invites"]
---

# Delete invite

`DELETE /v2/invites/{invite_id}`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/invites/{invite_id}`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/invites/:invite_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an invite.

Note: Accepted invites cannot be deleted.

## Path parameters

- `invite_id` integer, required

## Response `204`

Deletion successful

- object
  - `invite` Invite: Invite model
    - `id` integer, required: Invite ID
    - `email` string, required: Invite email
    - `invited_by_id` integer, required: User ID for who created the invite
    - `pay_rate` string: Pay rate
    - `project_ids` integer[], required: Projects to add the user to once invite is accepted
    - `role` string, required: The role they will be added as once accepted
    - `status` string, required: Invite status
    - `accepted_at` string, date-time: When the invite was accepted
    - `trackable` boolean: Whether the user can track time
    - `created_at` string, date-time, required: When the record was created
    - `updated_at` string, date-time, required: When the record was last updated

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
