WalkPic documentation
Authentication
Connect the CLI or API to your WalkPic account, from browser approval to your first request.
WalkPic Studio is the web app for your WalkPic account. Open its Integrations page to approve a tool and receive credentials. The documentation site explains the process; it does not issue tokens. The CLI has no browser sign-in command.
Open Integrations in Studio →Jump to approval · your first CLI/API request · token lifetimes · renewal and revocation · troubleshooting.
1. Approve access in your browser
- Open Integrations and sign in. Go directly to app.walkpic.com/integrations. If signed out, choose Sign in to WalkPic and use your usual WalkPic account. CLI, SDK and MCP do not sign in with Apple/email themselves.
- Choose the tool and the reads it needs. Under Choose a local interface, select WalkPic CLI for the CLI, TypeScript SDK or direct HTTP API, or WalkPic MCP (local stdio) for an agent's local MCP server. For the examples below, select
library:owned:readto list your published walks. Choose an Approval duration of 1, 7 or 30 days. - Confirm your approval. Tick the consent checkbox, then click Approve selected reads. This creates a personal grant: permission for that client to use those reads until the selected expiry. It does not publish your private walks.
- Reveal and copy your access token. In Your approval is ready, choose Reveal credentials, then Copy access token. The access token begins with
wp_int.. Credentials are shown only once; the panel clears when you leave or hide the page. For a first request you need only the access token. If your application will renew access, arrange to receive the refresh token and the displayed client/grant details as well, before that panel clears.
2. Make your first request
For CLI use, first follow the repository installation steps and run these commands from that checkout. Direct HTTP use does not require installing the CLI.
Put the access token in this terminal session
Use Bash or Zsh. Run the following lines, paste the copied token at the prompt and press Enter. The hidden prompt keeps the literal token out of shell history. This temporary environment is the “launcher”: the shell starts the tool and passes its token. No separate launcher product is required.
export WALKPIC_BASE_URL='https://walkpic.com'
printf 'Paste your WalkPic access token: '
IFS= read -r -s WALKPIC_ACCESS_TOKEN
printf '\n'
export WALKPIC_ACCESS_TOKEN
Keep the token out of command arguments, URLs, request JSON, committed files and agent/model messages. For a long-running application, use your own trusted credential provider; this terminal setup is not a persisted secure store.
Option A: CLI
node packages/cli/dist/bin.js auth status
printf '{"query":{"limit":"5"}}\n' | node packages/cli/dist/bin.js call integrationListOwnedPublications --input -
auth status checks local configuration only; it does not validate the token with the server or confirm its expiry. The second command makes the actual request. A successful response lists up to five published walks you own; an empty list is valid if you have not published any. See CLI commands, output and exit codes.
Option B: HTTP API
The same approval works for the eight supported v2 reads. Supply the access token as an Authorization: Bearer header. This cURL example reads the secret header from a pipe rather than putting the token in cURL's command arguments.
printf 'Authorization: Bearer %s\n' "$WALKPIC_ACCESS_TOKEN" | curl --fail-with-body --silent --show-error --header @- --header 'Accept: application/json' 'https://walkpic.com/v2/library/publications?limit=5'
Request details: GET /v2/library/publications. For typed application code, use the TypeScript SDK guide. For an agent, follow the local MCP setup guide; MCP needs its own WalkPic MCP approval.
When finished, remove the token from this shell:
unset WALKPIC_ACCESS_TOKEN
3. Understand the two lifetimes
| Item | What it does | Lifetime |
|---|---|---|
| Personal grant / approval | Sets the client and allowed read scopes | 1, 7 or 30 days, or until revoked |
Access token (wp_int.) | Authenticates ordinary API requests | 10 minutes |
| Refresh token | Explicitly obtains a replacement credential pair | Only within the grant's remaining lifetime; replaced on successful refresh |
A 7-day approval does not make its access token work for 7 days. After 10 minutes, explicitly renew it or revoke that approval and create a new one. The refresh token is not a substitute access token and must not be sent with ordinary read requests.
What your approval can read
| Scope | Access |
|---|---|
publications:read | Read an accessible publication and its access state |
library:owned:read | List your published walks |
library:received:read | List walks and authors shared with you |
saved:read | List your saved walks |
explore:read | Browse accessible public walks |
places:read | Read accessible place visits |
The supported integration surface is eight read-only v2 operations, marked CLI · MCP read in the API reference. The full catalog also describes other API operations; a personal grant does not enable all of them. Sharing rules still apply, and local-only walks on your phone are not uploaded by granting access.
Renew or stop access
Refresh is explicit, not automatic. It replaces both the access and refresh tokens, without extending the approval's scopes or expiry. An expired/revoked approval needs a new browser approval.
- CLI:
auth refreshis an advanced launcher operation. Its--credential-fdmust be a private writable local pipe/socket created by your launcher, separate from standard input/output. It is not a file path or terminal. See CLI refresh requirements. - SDK: use a separate refresh credential session and accept the complete validated replacement pair before replacing the active credentials. See SDK refresh requirements.
- MCP: the server has no login/refresh tool. Renew outside the agent, then restart its local child process with the new access token. See MCP credential handoff.
If you do not have a refresh-capable launcher yet, the simple recovery is to revoke the old approval in Studio and approve a new one. If a refresh result is lost, do not retry the old refresh token; use that same revoke-and-reapprove recovery.
To disconnect a tool, open Manage current approvals and revoke it. Signing out of Studio or unsetting a shell variable does not revoke an independently approved grant. Revocation prevents subsequent authorized requests; an already-sent request may still finish.
If it does not work
| What you see | What to check |
|---|---|
| “Approve selected reads” is disabled | Choose an available client, at least one read and the consent checkbox. |
| Credentials disappeared | The one-time panel clears when hidden/closed. If you did not receive the token, revoke the approval and create a new one. |
CLI reports configured: false | Set the API base and a wp_int. access token in the same shell that launches the CLI. |
HTTP 401 | The token may be missing, expired or revoked, or the account no longer authorized. Renew within a valid grant or reapprove in Studio. |
HTTP 403 | Check the selected scope and your current permission to view the resource. An approval cannot override another person's sharing rules. |
| An operation is denied before a request | CLI/MCP only execute the eight supported reads. Catalog entries do not enable writes or credential-management tools. |
Which credential should I use?
Use your personal integration access token for the supported SDK/CLI/MCP reads above. First-party web sessions, deletion receipts, unlisted-publication links and live-writer capabilities are separate API mechanisms described in the API reference. MeshAgent room/project keys are operator credentials, not WalkPic account credentials. Remote MCP OAuth and device-login flows are not implemented.