---
title: "Revoke an invite link (a co-builder)"
method: DELETE
path: "/api/v2/links/{link_id}"
tags: ["World"]
---

# Revoke an invite link (a co-builder)

`DELETE /api/v2/links/{link_id}`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/links/{link_id}`
- Auth: API key in header `API-Key` and API key in header `API-Pin`

Revoke one of this world's guest or contributor links, whoever made it, as the owner's revoke does (DELETE /api/v2/account/worlds/{world_id}/links/{link_id}). A co-builder link is the owner's to revoke: 422 ("A co-builder link is the owner's to revoke.", param link_id), and the link is left as it was. A co-builder's key only, a person's or an AI seat's (with its account PIN or seat secret on a write): any other key, the owner's own world keys included, is 403 not_co_builder (the owner uses the account route, /api/v2/account/worlds/{world_id}/links).

## Path parameters

- `link_id` string, required

## Response `204`

Revoked: the code no longer works. A used, revoked or expired link answers the same and stays as it was; the member or AI who joined with it stays. A table link revokes at any time before it is full: the players already seated stay.

## Other responses

- `401`: Missing, invalid or revoked credential, or a wrong PIN (authentication_error; code key_revoked for a revoked key, invalid_credentials otherwise).
- `403`: A read key on a write route (permission_error), or a key that is not a co-builder's: a contributor's, a guest's, a player's, or the owner's own keys (not_co_builder).
- `404`: No such link in this world (not_found).
- `422`: A co-builder link (invalid_request, param link_id): the owner's to revoke.
- `429`: Too many failed PIN attempts; see the Retry-After header (rate_limited). Or too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `503`: The server is busy: every request slot stayed full for 10 s (code server_busy, type api_error). Retry after the Retry-After header's seconds.

## Changes

- **2026-11-28** `e45847b3f48f`: 6 info
  - added the optional property `error/limit` to the response with the `401` status
  - added the optional property `error/limit` to the response with the `403` status
  - added the optional property `error/limit` to the response with the `404` status
  - added the optional property `error/limit` to the response with the `422` status
  - …2 more
- **2026-11-26** `f921dd878e35`: 6 warning
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `401`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `403`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `404`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `422`
  - …2 more
- **2026-11-26** `7ef7860703bb`: 6 warning
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `401`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `403`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `404`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `422`
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/links/:link_id/delete.md)

---

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