WalkPic DevelopersManage integrations ↗

WalkPic documentation

Authentication

Connect the CLI or API to your WalkPic account, from browser approval to your first request.

Start in WalkPic Studio, then use your token.

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

  1. 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.
  2. 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:read to list your published walks. Choose an Approval duration of 1, 7 or 30 days.
  3. 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.
  4. 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

ItemWhat it doesLifetime
Personal grant / approvalSets the client and allowed read scopes1, 7 or 30 days, or until revoked
Access token (wp_int.)Authenticates ordinary API requests10 minutes
Refresh tokenExplicitly obtains a replacement credential pairOnly 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

ScopeAccess
publications:readRead an accessible publication and its access state
library:owned:readList your published walks
library:received:readList walks and authors shared with you
saved:readList your saved walks
explore:readBrowse accessible public walks
places:readRead 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.

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 seeWhat to check
“Approve selected reads” is disabledChoose an available client, at least one read and the consent checkbox.
Credentials disappearedThe 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: falseSet the API base and a wp_int. access token in the same shell that launches the CLI.
HTTP 401The token may be missing, expired or revoked, or the account no longer authorized. Renew within a valid grant or reapprove in Studio.
HTTP 403Check 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 requestCLI/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.