Skip to content
Developers

Walk15 Connect V1

API reference

Every partner-facing Walk15 Connect endpoint with parameters, examples and errors.

All paths are rooted at the issuer origin Walk15 gives you: https://api.walk15.lt in production. Examples use $WALK15_ISSUER for it. Curl's -u passes the client ID and secret as command-line arguments, visible to other users of the machine in the process list (and in your shell history if you paste literal values), so use it only for local experiments.

Conventions

TransportHTTPS only
Browser endpointGET /oauth/authorize is opened in the user's browser. Never call it from your backend.
Backend endpointsEverything else is server-to-server.
Client authenticationHTTP Basic with client ID and secret (token and token revocation endpoints)
User-delegated authenticationAuthorization: Bearer <access_token> (activity and disconnect endpoints). The token identifies the connection; no user or connection ID is sent.
Request bodiesapplication/x-www-form-urlencoded for OAuth endpoints; activity and disconnect requests have no body
DatesCalendar dates YYYY-MM-DD; instants are UTC ISO 8601 with Z. Ride start/end timestamps have six fractional digits; snapshot_at and webhook occurred_at have milliseconds
CachingEvery backend response is Cache-Control: no-store, Pragma: no-cache, Referrer-Policy: no-referrer
CorrelationActivity and disconnect responses carry a server-generated X-Request-ID; include it when contacting Walk15 support. OAuth and discovery responses have none.

Two error shapes exist. OAuth endpoints (token and token revocation) return:

JSON
{ "error": "invalid_grant", "error_description": "The authorization grant is invalid." }

Activity and disconnect endpoints return:

JSON
{
  "error": { "code": "invalid_date_range", "message": "The date range is invalid." },
  "request_id": "44444444-4444-4444-8444-444444444444"
}

All codes are listed in Errors and limits.

Versioning and compatibility

Activity and disconnect endpoints are versioned by the /connect-walk15/v1 path prefix; the OAuth and discovery endpoints have no version prefix. After publication, within a major version Walk15 makes only compatible changes (new optional response fields, optional parameters or new endpoints), so ignore response fields you do not use. Removing or renaming fields or routes, adding required parameters or changing authentication happens only in a new major version, announced with a migration guide and a retirement date for the old one.

connection_version identifies successive authorizations. It is returned as a decimal string and is independent of the API version and the webhook payload version. Each new authorization increases it, including when a different Walk15 account reconnects to the same application_user_id. Token refresh leaves it unchanged.

A revocation webhook carries the version whose credentials stopped working. Values can have gaps, so compare them as BigInt. If two authorizations for one user complete out of order, exchanging the older code returns 400 invalid_grant. Start a fresh authorization.

Discovery

GET/.well-known/oauth-authorization-serverBackend only

Returns RFC 8414 authorization server metadata. No authentication.

Shell
curl "$WALK15_ISSUER/.well-known/oauth-authorization-server"

Response 200: see the full example in Discovery. Fields: issuer, authorization_endpoint, token_endpoint, revocation_endpoint, token_endpoint_auth_methods_supported, revocation_endpoint_auth_methods_supported, code_challenge_methods_supported, scopes_supported, response_types_supported, grant_types_supported.

Start authorization

GET/oauth/authorizeBrowser navigation

Starts the Walk15 sign-in and consent flow. Redirect the user's browser here (HTTP 303 from your backend); do not fetch it server-side. Authentication: none. Your client is identified by client_id and validated against your registration.

Query parameterRequiredDescription
client_idYesYour client UUID
redirect_uriYesExact registered callback, max 2048 bytes
response_typeYescode
scopeYesSpace-separated unique scopes from your allowance, max 512 characters
stateYes22–2048 visible ASCII characters; returned unchanged
code_challengeYes43-character unpadded base64url SHA-256 of your PKCE verifier
code_challenge_methodYesS256

Every parameter must appear exactly once; unknown parameters are rejected. The whole URL may not exceed 16 KB.

HTTP
GET /oauth/authorize?client_id=11111111-1111-4111-8111-111111111111
  &redirect_uri=https%3A%2F%2Fpartner.example%2Foauth%2Fwalk15%2Fcallback
  &response_type=code
  &scope=daily_steps%3Aread+cycling_activities%3Aread
  &state=EjzQZI751F_PEmxjmkfXDfqM8cL--2DKrXcjVV0jO3w
  &code_challenge=v8yANszyUApYb9P0q-VnGZQ5F5PTNrC06lSrGHkfJGw
  &code_challenge_method=S256
Host: api.walk15.lt

Result. Walk15 responds 303 to its own sign-in pages. After the user decides, the browser is redirected to your callback:

HTTP
HTTP/1.1 303 See Other
Location: https://partner.example/oauth/walk15/callback?state=EjzQZI751F_PEmxjmkfXDfqM8cL--2DKrXcjVV0jO3w&code=w15c_<authorization-code>

or, when the user cancels:

HTTP
HTTP/1.1 303 See Other
Location: https://partner.example/oauth/walk15/callback?state=EjzQZI751F_PEmxjmkfXDfqM8cL--2DKrXcjVV0jO3w&error=access_denied

Errors. An invalid request (invalid_request, unauthorized_client, unsupported_response_type, invalid_scope) or an expired request renders a generic Walk15 error page with status 400 (503 while Walk15 is temporarily unavailable, 500 on a server error). It is never redirected to your callback.

Caveats. The flow must finish within 10 minutes. For a user who is already connected, see How do we reconnect a user?

Exchange code

POST/oauth/tokenBackend only

Redeems a single-use authorization code (valid for at most 5 minutes) for tokens. Authentication: HTTP Basic.

HeaderValue
AuthorizationBasic base64(urlencode(client_id) ":" urlencode(client_secret)) (exactly one)
Content-Typeapplication/x-www-form-urlencoded (optionally ; charset=utf-8)
Form fieldRequiredDescription
grant_typeYesauthorization_code
codeYesThe code from your callback
redirect_uriYesThe same registered callback
application_user_idYesYour stable ID for this user: 1–128 letters, digits, ., _ or -, scoped to your client. No email addresses or other personal data.
code_verifierYesYour PKCE verifier, 43–128 characters of [A-Za-z0-9._~-]

No other fields are allowed. The body may not exceed 8 KB, and the request may not have a query string.

Shell
curl -X POST "$WALK15_ISSUER/oauth/token" \
  -u "$WALK15_CLIENT_ID:$WALK15_CLIENT_SECRET" \
  --data-urlencode "grant_type=authorization_code" \
  --data-urlencode "code=$AUTHORIZATION_CODE" \
  --data-urlencode "redirect_uri=https://partner.example/oauth/walk15/callback" \
  --data-urlencode "application_user_id=partner-user-123" \
  --data-urlencode "code_verifier=$CODE_VERIFIER"

Response 200

JSON
{
  "application_user_id": "partner-user-123",
  "history_from": "2026-10-10",
  "connection_version": "1",
  "access_token": "w15a_<access-token>",
  "token_type": "Bearer",
  "expires_in": 300,
  "refresh_token": "w15r2_<refresh-token>",
  "scope": "daily_steps:read cycling_activities:read"
}
FieldDescription
application_user_idThe user ID you sent with the code exchange. Webhooks carry the same value.
history_fromThe user's authorization calendar day. You may request dates from the later of history_from and 30 days before today in UTC
connection_versionAuthorization generation as a decimal string: larger for every new authorization, unchanged by refresh (details)
access_tokenOpaque Bearer token
token_typeBearer
expires_inSeconds until the access token expires (at most 300, five minutes)
refresh_tokenOpaque, single-use refresh token
scopeSpace-separated scopes approved by the user

Errors: 400 invalid_request (malformed body, unknown or duplicate fields, invalid user reference), 400 unsupported_grant_type, 400 invalid_grant (unknown, expired or used code; wrong redirect_uri or verifier; connection changed; user reference already bound to another active account or different from the current connection), 401 invalid_client, 500 server_error, 503 temporarily_unavailable.

Refresh tokens

POST/oauth/tokenBackend only

Rotates a refresh token. Authentication: HTTP Basic. Same headers and body rules as the code exchange.

Form fieldRequiredDescription
grant_typeYesrefresh_token
refresh_tokenYesThe current refresh token for the connection
Shell
curl -X POST "$WALK15_ISSUER/oauth/token" \
  -u "$WALK15_CLIENT_ID:$WALK15_CLIENT_SECRET" \
  --data-urlencode "grant_type=refresh_token" \
  --data-urlencode "refresh_token=$WALK15_REFRESH_TOKEN"

Response 200: the same fields as the code exchange, with a new access_token and a new refresh_token. application_user_id, scope, history_from and connection_version are unchanged.

Errors: 400 invalid_request, 400 unsupported_grant_type, 400 invalid_grant (expired by inactivity, revoked, already used, user deleted, scope no longer allowed), 401 invalid_client, 500 server_error, 503 temporarily_unavailable. After 503 temporarily_unavailable, retry later with the same refresh token. Treat any other 5xx like no response: the refresh outcome is unknown.

Revoke token

POST/oauth/revokeBackend only

RFC 7009 token revocation. Authentication: HTTP Basic.

Form fieldRequiredDescription
tokenYesAn access token or refresh token issued to you
token_type_hintNoaccess_token or refresh_token; any other value returns 400 unsupported_token_type. Walk15 determines the real type itself, so a wrong but valid hint does no harm.
Shell
curl -X POST "$WALK15_ISSUER/oauth/revoke" \
  -u "$WALK15_CLIENT_ID:$WALK15_CLIENT_SECRET" \
  --data-urlencode "token=$WALK15_REFRESH_TOKEN" \
  --data-urlencode "token_type_hint=refresh_token"

Response 200 with an empty body, including for unknown, foreign or already-revoked tokens, so the response never reveals whether a token existed.

  • An access token revokes only that token.
  • A refresh token revokes every token of that connection version and sends a connection.revoked webhook. The consent itself remains: re-authorizing with the same scopes keeps history_from.

To end a user's connection completely, use Disconnect connection instead.

Errors: 400 invalid_request, 400 unsupported_token_type (unknown hint), 401 invalid_client, 500 server_error, 503 temporarily_unavailable.

Daily summary

GET/connect-walk15/v1/summaryBackend only

Fetch a day-by-day snapshot. Authentication: Bearer access token. Requires daily_steps:read or cycling_activities:read.

Authorized scopeResponse
daily_steps:readEach day has steps and walking_activity_minutes
cycling_activities:readEach day has cycling_activities
BothAll three fields per day

Unauthorized fields are absent. Every eligible requested date appears. A day without recorded steps has steps: 0 and walking_activity_minutes: 0; a day without qualifying rides has cycling_activities: [].

ParameterInRequiredDescription
fromqueryYesFirst date, YYYY-MM-DD, on or after the later of history_from and 30 days before today in UTC; with daily_steps:read also not before the Walk15 registration day, which then applies to the whole request
toqueryYesInclusive last date, at most 30 days after from, no later than tomorrow in UTC

Unknown or repeated parameters and request bodies are rejected. One summary request consumes one shared customer budget unit and counts as one concurrent activity read, including when both datasets are returned.

Shell
curl "$WALK15_ISSUER/connect-walk15/v1/summary?from=2026-10-13&to=2026-10-19" \
  -H "Authorization: Bearer $WALK15_ACCESS_TOKEN"

Response 200 with both scopes (full seven-day example):

JSON
{
  "start_date": "2026-10-13",
  "end_date": "2026-10-19",
  "days": [
    { "date": "2026-10-13", "steps": 7200, "walking_activity_minutes": 72, "cycling_activities": [] },
    { "date": "2026-10-14", "steps": 8430, "walking_activity_minutes": 84, "cycling_activities": [{ "id": "ca_AHOVcjqx4_GNUbipw3-FMTahov29ELSZgnu18DKRYfm", "started_at": "2026-10-14T07:15:00.000000Z", "ended_at": "2026-10-14T07:45:00.000000Z", "distance_km": 12.4, "cycling_activity_minutes": 30 }] },
    { "date": "2026-10-15", "steps": 6100, "walking_activity_minutes": 61, "cycling_activities": [] },
    { "date": "2026-10-16", "steps": 9750, "walking_activity_minutes": 98, "cycling_activities": [{ "id": "ca_NUbipw3-FMTahov29ELSZgnu18DKRYfmt07CJQXelsz", "started_at": "2026-10-16T17:00:00.000000Z", "ended_at": "2026-10-16T17:42:00.000000Z", "distance_km": 18.6, "cycling_activity_minutes": 42 }, { "id": "ca_ahov29ELSZgnu18DKRYfmt07CJQXelsz6BIPWdkry5A", "started_at": "2026-10-16T18:10:00.000000Z", "ended_at": "2026-10-16T18:34:00.000000Z", "distance_km": 9.2, "cycling_activity_minutes": 24 }] },
    { "date": "2026-10-17", "steps": 0, "walking_activity_minutes": 0, "cycling_activities": [] },
    { "date": "2026-10-18", "steps": 11200, "walking_activity_minutes": 112, "cycling_activities": [{ "id": "ca_nu18DKRYfmt07CJQXelsz6BIPWdkry5AHOVcjqx4_GN", "started_at": "2026-10-18T08:00:00.000000Z", "ended_at": "2026-10-18T08:55:00.000000Z", "distance_km": 21.3, "cycling_activity_minutes": 55 }] },
    { "date": "2026-10-19", "steps": 7860, "walking_activity_minutes": 79, "cycling_activities": [{ "id": "ca_07CJQXelsz6BIPWdkry5AHOVcjqx4_GNUbipw3-FMTa", "started_at": "2026-10-19T06:30:00.000000Z", "ended_at": "2026-10-19T07:05:00.000000Z", "distance_km": 13.8, "cycling_activity_minutes": 35 }, { "id": "ca_BIPWdkry5AHOVcjqx4_GNUbipw3-FMTahov29ELSZgn", "started_at": "2026-10-19T12:00:00.000000Z", "ended_at": "2026-10-19T12:28:00.000000Z", "distance_km": 10.5, "cycling_activity_minutes": 28 }, { "id": "ca_OVcjqx4_GNUbipw3-FMTahov29ELSZgnu18DKRYfmt0", "started_at": "2026-10-19T18:20:00.000000Z", "ended_at": "2026-10-19T19:02:00.000000Z", "distance_km": 17.4, "cycling_activity_minutes": 42 }] }
  ]
}
FieldDescription
start_date, end_dateRequested inclusive range
days[].dateOne calendar date in ascending order
days[].stepsNon-negative adjusted Walk15 daily steps, when authorized
days[].walking_activity_minutesround(steps / 100), when authorized
days[].cycling_activitiesQualifying rides whose UTC start date is this day, when authorized

The authorized datasets share one consistent snapshot and one shared customer budget unit.

Errors: 400 invalid_request, 400 invalid_date_range, 401 invalid_access_token, 403 insufficient_scope, 429 rate_limited, 503 data_unavailable.

Activities

GET/connect-walk15/v1/activitiesBackend only

Returns individual cycling activities whose UTC start date is in the range, oldest first, with cursor pagination. Authentication: Bearer access token. Scope: cycling_activities:read.

Each eligible provider record is a separate activity. If two providers record the same real-world ride, both can appear with distinct IDs; Connect does not infer and merge them.

ParameterInRequiredDescription
fromqueryYesFirst date, on or after the later of history_from and 30 days before today in UTC (date-range troubleshooting)
toqueryYesLast date, inclusive; at most 31 dates; not later than tomorrow in UTC
limitqueryNoPage size 1–500, plain decimal without leading zeros. Default 100
cursorqueryNometa.next_cursor from the previous page, unchanged
Shell
curl "$WALK15_ISSUER/connect-walk15/v1/activities?from=2026-10-13&to=2026-10-19&limit=100" \
  -H "Authorization: Bearer $WALK15_ACCESS_TOKEN"

Response 200

JSON
{
  "data": [
    {
      "id": "ca_07CJQXelsz6BIPWdkry5AHOVcjqx4_GNUbipw3-FMTa",
      "started_at": "2026-10-19T06:30:00.000000Z",
      "ended_at": "2026-10-19T07:05:00.000000Z",
      "distance_km": 13.8,
      "cycling_activity_minutes": 35
    }
  ],
  "meta": {
    "from": "2026-10-13",
    "to": "2026-10-19",
    "date_basis": "utc",
    "time_basis": "utc",
    "snapshot_at": "2026-10-19T20:00:00.000Z",
    "next_cursor": "cc1_<opaque-cursor>"
  }
}
FieldDescription
idOpaque activity ID (ca_…), stable for its provider source record, user and your company; it is not a canonical ID for a real-world ride
started_at, ended_atTrustworthy UTC timestamps with six fractional digits and a Z suffix
distance_kmNon-negative ride distance in kilometres
cycling_activity_minutesStart-to-end elapsed minutes, rounded to the nearest whole minute; pauses are included
meta.date_basis, meta.time_basisutc; date filters use started_at's UTC date
meta.next_cursorCursor for the next page, or null on the last page

Pagination. Request the next page with the same from, to and limit plus cursor. Omitting limit and sending limit=100 are equivalent. A traversal expires 15 minutes after its first page, and a cursor stops working when the connection version changes; restart from the first page on 400 invalid_cursor. Results reflect live data, so rows changed during a traversal can be missed or repeated; upsert by id. See Following cursors.

Errors: 400 invalid_request (including a bad limit), 400 invalid_date_range, 400 invalid_cursor, 401 invalid_access_token, 403 insufficient_scope, 429 rate_limited, 503 data_unavailable.

Disconnect connection

DELETE/connect-walk15/v1/connectionBackend only

Ends the connection the access token belongs to: consent and every code and token of this authorization stop working for new requests, a connection.revoked webhook is sent, and any future connection needs fresh consent and starts a new access window. Authentication: Bearer access token. No query string and no body.

Shell
curl -X DELETE "$WALK15_ISSUER/connect-walk15/v1/connection" \
  -H "Authorization: Bearer $WALK15_ACCESS_TOKEN"

Response 204 with no body. Refresh first if the access token expired; repeating the request with the now-revoked token returns 401 invalid_access_token.

Errors: 400 invalid_request (query string or body present), 401 invalid_access_token, 503 data_unavailable.

Remove your local connection after a 204. If the response is lost, refresh and retry the disconnect. A refresh returning invalid_grant means that refresh token cannot be used; it does not confirm that consent ended. Inactivity, token-family revocation and removed scopes can produce the same error. If you have neither a usable access token nor a usable refresh token, ask the user to disconnect in Walk15 Connected Apps, or contact Walk15 to end the connection.

OpenAPI document

A machine-readable OpenAPI 3.1 document describes the backend HTTP endpoints above (discovery, token, revoke, activity reads and disconnect) and the WebhookEvent payload schema. The browser authorization flow is described on this page and in OAuth and PKCE rather than as an API operation you call.

Not part of the partner API

The Walk15-hosted sign-in, session and consent pages that the browser passes through after /oauth/authorize, and the endpoints the Walk15 app uses to list and disconnect a user's connected companies, are Walk15-owned surfaces. Do not call or automate them from your backend; follow the browser redirects instead.