> ## Documentation Index
> Fetch the complete documentation index at: https://glide-9da73dea.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# curl quickstart

> Call accounts.list over HTTP with an authorized Glide grant.

Use curl to make a read-only MCP request. You need a configured gateway, an active agent and a grant with `accounts:read`. A local gateway does not supply an anonymous demo token.

## Configure access

Obtain `GLIDE_GRANT_TOKEN` through your configured authorization server. Set `GLIDE_BASE_URL` to the gateway origin. Keep the token out of source control.

## Read authorized accounts

```bash theme={null}
curl --request POST "${GLIDE_BASE_URL}/mcp/read" \
  --header "Authorization: Bearer ${GLIDE_GRANT_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"accounts.list","arguments":{}}}'
```

Check for HTTP and JSON-RPC errors, then inspect `result.isError` before reading `result.structuredContent`. A successful call returns the accounts visible to that grant. It does not initiate a payment or produce a settlement receipt.

The source example contains a `Makefile` and `request.http` for this request. Use an environment where `accounts.list` is enabled.

## Add payment calls

Use the input schema and endpoint on [`payments.initiate`](https://glide-9da73dea.mintlify.site/agents/api/payments-initiate). Preserve the payment's idempotency key and track its recorded outcome. A successful submission is not proof of settlement.

## Source

[Read the curl example](https://github.com/glide-co/glide-mono/tree/main/examples/curl-quickstart). Source access is required.

## Next

* [OAuth flow](https://glide-9da73dea.mintlify.site/oss/headless/oauth-flow.md)
* [MCP tool reference](https://glide-9da73dea.mintlify.site/agents/api/index.md)
* [TypeScript quickstart](https://glide-9da73dea.mintlify.site/cookbook/typescript-quickstart.md)


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