> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bibleit.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bibleit.dev/_mcp/server.

# Revoke delegated access and refresh tokens

POST https://bibleit.app/oauth/revoke
Content-Type: application/x-www-form-urlencoded

Requires registered public client_id plus token possession. Matching access or refresh token revokes its entire grant. Unknown tokens return the same empty 200 response, including tokens belonging to another client. Existing bt_ and svc_ credentials are unaffected. Authorization headers are rejected.

**Response headers:**

- `Cache-Control` (200).
- `Referrer-Policy` (200).
- `Pragma` (200).

Reference: https://docs.bibleit.dev/api-reference/o-auth/revoke-o-auth-token

## Request

### Body (application/x-www-form-urlencoded)

This endpoint expects an object.

- `client_id` (string, required)
- `token` (string, required)
- `token_type_hint` (string, optional)

## Response

### 200

Revocation processed, including unknown tokens.

## Examples

**Request**

```json
{
  "client_id": "string",
  "token": "string"
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://bibleit.app/oauth/revoke"

payload = ""
headers = {"Content-Type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://bibleit.app/oauth/revoke"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```