Headscale unofficial
POST/api/v1/auth/reject

Reject a pending authentication session

Rejects a pending authentication session. Supply the session's authId to identify the request you want to reject. The response confirms the operation with an empty object.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 body field

Authentication session details for the rejection request.

authIdstringoptional
The identifier of the pending authentication session to reject.

2 status codes
200Returns an empty JSON object.
defaultError
detailstringoptional
A human-readable explanation specific to this occurrence of the problem.
errorsarray<object>optional
Optional list of individual error details
instancestringoptional
A URI reference that identifies the specific occurrence of the problem.
statusintegeroptional
HTTP status code
titlestringoptional
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
typestringoptional
A URI reference to human-readable documentation for the error.
Default:about:blank

Error handling

If provided, authId must be a string identifying the pending authentication session. The schema does not require authId in the request body.