---
title: "Revoke a machine access credential"
method: DELETE
path: "/v1/spaces/{spaceId}/machine-credentials/{credentialId}"
tags: ["Access"]
---

# Revoke a machine access credential

`DELETE /v1/spaces/{spaceId}/machine-credentials/{credentialId}`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/machine-credentials/{credentialId}`
- Auth: HTTP bearer

Revokes the machine credential and its canonical grant so the bearer token immediately loses authority.

## Path parameters

- `spaceId` string, required
- `credentialId` string, required

## Response `204`

The machine credential was revoked.

---

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