> ## Documentation Index
> Fetch the complete documentation index at: https://chatobserver.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How do spreadsheet clients request user authorisation?

> Authorise spreadsheet clients using a user-approved challenge exchange.

Authorise spreadsheet clients using a user-approved challenge exchange.

Read [authentication](https://chatobserver.com/docs/developers/authentication.md), [pagination and filters](https://chatobserver.com/docs/developers/pagination-and-filters.md), and [safe writes and retries](https://chatobserver.com/docs/developers/safe-writes.md) before integrating. Each endpoint below includes its request parameters, response schema, and code examples.

## Endpoints

* [Create an authorisation challenge](https://chatobserver.com/docs/api-reference/client-authorisation/post-v2-metrics-client-auth-challenges.md) — `POST /api/v2/metrics/client-auth/challenges`
* [Exchange an approved authorisation challenge](https://chatobserver.com/docs/api-reference/client-authorisation/post-v2-metrics-client-auth-challenges-challenge-id-exchange.md) — `POST /api/v2/metrics/client-auth/challenges/{challengeId}/exchange`
* [Renew a spreadsheet connection](https://chatobserver.com/docs/api-reference/client-authorisation/post-v2-metrics-client-auth-sessions-session-id-renew.md) — `POST /api/v2/metrics/client-auth/sessions/{sessionId}/renew`
* [Revoke a spreadsheet connection](https://chatobserver.com/docs/api-reference/client-authorisation/post-v2-metrics-client-auth-sessions-session-id-revoke.md) — `POST /api/v2/metrics/client-auth/sessions/{sessionId}/revoke`

[Download the complete OpenAPI specification](https://chatobserver.com/docs/openapi.json) for client generation and schema validation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.