---
title: List pickup locations
description: List the authenticated retailer's pickup locations.
url: /api/pickup-locations/listPickupLocations
---

# List pickup locations

`GET /pickupLocations`

````yaml
openapi: 3.2.0
info:
  title: Spoke Connect API
  version: v1
servers:
  - url: https://api.spoke.com/connect/v1
security:
  - BearerAuth: []
  - BasicAuth: []
paths:
  /pickupLocations:
    get:
      operationId: listPickupLocations
      summary: List pickup locations
      tags:
        - Pickup Locations
      description: List the authenticated retailer's pickup locations.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 255
          in: query
          name: pageToken
          required: false
          description: The page token to continue from.
        - schema:
            default: 100
            type: integer
            minimum: 1
            maximum: 100
          in: query
          name: maxPageSize
          required: false
          description: The maximum number of pickup locations to return.
      responses:
        "200":
          description: The retailer's pickup locations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  pickupLocations:
                    type: array
                    items:
                      $ref: "#/components/schemas/connectPickupLocationSchema"
                    description: The retailer's pickup locations.
                  nextPageToken:
                    description: The token for the next page, or null when there are no more pickup locations.
                    type:
                      - "null"
                      - string
                required:
                  - pickupLocations
                  - nextPageToken
                definitions:
                  connectPickupLocationSchema:
                    type: object
                    properties:
                      id:
                        allOf:
                          - $ref: "#/components/schemas/connectPickupLocationIdSchema"
                        description: Pickup location identifier.
                      name:
                        type: string
                        description: The location's display name.
                    required:
                      - id
                      - name
                    additionalProperties: false
                    description: A retailer pickup location.
                  connectPickupLocationIdSchema:
                    type: string
                    pattern: ^pickupLocations\/[a-zA-Z0-9_-]{1,50}$
                    description: Unique identifier of a pickup location, in the format `pickupLocations/{id}`.
                description: The retailer's pickup locations.
        "400":
          description: Query parameters are invalid
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The error message.
                  code:
                    type: string
                    description: The error code.
                  param:
                    type: string
                    description: The parameter that caused the error.
                  url:
                    type: string
                    description: The URL with more information about the error.
                required:
                  - message
                description: Query parameters are invalid
        "401":
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The error message.
                  url:
                    type: string
                    description: The URL with more information about the error.
                required:
                  - message
                description: Unauthorized
        "500":
          description: An internal server error occurred
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The error message.
                  code:
                    type: string
                    description: The error code.
                  param:
                    type: string
                    description: The parameter that caused the error.
                  url:
                    type: string
                    description: The URL with more information about the error.
                required:
                  - message
                description: An internal server error occurred
        default:
          description: The default error model
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The error message.
                  code:
                    type: string
                    description: The error code.
                  param:
                    type: string
                    description: The parameter that caused the error.
                  url:
                    type: string
                    description: The URL with more information about the error.
                required:
                  - message
                description: The default error model
components:
  schemas:
    connectPickupLocationIdSchema:
      type: string
      pattern: ^pickupLocations\/[a-zA-Z0-9_-]{1,50}$
      description: Unique identifier of a pickup location, in the format `pickupLocations/{id}`.
    connectPickupLocationSchema:
      type: object
      properties:
        id:
          allOf:
            - $ref: "#/components/schemas/connectPickupLocationIdSchema"
          description: Pickup location identifier.
        name:
          type: string
          description: The location's display name.
      required:
        - id
        - name
      additionalProperties: false
      description: A retailer pickup location.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Pass the API key directly as the token.
    BasicAuth:
      type: http
      scheme: basic
      description: Use the API key as the username and leave the password empty.
````