---
title: "Release an orphan allocated user.id"
method: DELETE
path: "/internal/allocate-user-id"
tags: ["internal"]
---

# Release an orphan allocated user.id

`DELETE /internal/allocate-user-id`

Service-to-service RPC. Bearer ALLOCATE_USER_ID_SECRET. Deletes the reservation when no local user row exists. Canada calls this after a rolled-back remote allocate. Never send raw email.

## Request body

- ReleaseAllocatedUserIdRequest
  - `user_id` integer, required

## Response `200`

released or already gone

- AllocateUserIdResponse
  - `user_id` integer, required

## Other responses

- `400` — invalid body (raw email or bad user_id)
- `401` — missing or wrong service secret
- `404` — allocator is not hosted on this deploy

## Changes

- **2026-09-24** `a61b77b30e63` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/changes/internal/allocate-user-id/delete.md)

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/750cc0d96a93?raw)
