---
title: List unassigned stops
description: List unassigned stops
url: /api/unassigned-stops/listUnassignedStops
---

# List unassigned stops

`GET /unassignedStops`

````yaml
openapi: 3.1.0
info:
  title: Spoke API
  version: v1
servers:
  - url: https://api.spoke.com/public/v1
security:
  - BasicAuth: []
paths:
  /unassignedStops:
    get:
      operationId: listUnassignedStops
      summary: List unassigned stops
      tags:
        - Unassigned Stops
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 255
          in: query
          name: pageToken
          required: false
          description: The page token to continue from.
        - schema:
            default: 20
            type: number
            minimum: 1
            maximum: 20
          in: query
          name: maxPageSize
          required: false
          description: The maximum number of unassigned stops to return per page.
        - schema:
            type: object
            properties:
              externalId:
                description: Filter by the `recipient.externalId` field, exact match
                type: string
                minLength: 1
                maxLength: 255
          in: query
          name: filter
          required: false
          description: The filter to apply to the list of unassigned stops.
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  unassignedStops:
                    type: array
                    items:
                      $ref: "#/components/schemas/unassignedStopSchema"
                    description: The unassignedStops.
                  nextPageToken:
                    description: The next page token.
                    type:
                      - "null"
                      - string
                required:
                  - unassignedStops
                  - nextPageToken
                definitions:
                  unassignedStopSchema:
                    type: object
                    properties:
                      id:
                        type: string
                        pattern: ^unassignedStops\/[a-zA-Z0-9---_]{1,50}$
                        description: The id of the unassigned stop, in the format `unassignedStops/<id>`.
                      depot:
                        type: string
                        pattern: ^depots\/[a-zA-Z0-9---_]{1,50}$
                        description: The depot that this unassigned stop belongs to.
                      address:
                        type: object
                        properties:
                          address:
                            type: string
                            description: The address of the stop.
                          addressLineOne:
                            type: string
                            description: The first line of the address.
                          addressLineTwo:
                            type: string
                            description: The second line of the address.
                          latitude:
                            anyOf:
                              - type: number
                                minimum: -90
                                maximum: 90
                              - type: "null"
                            description: The latitude of the address in decimal degrees.
                          longitude:
                            anyOf:
                              - type: number
                                minimum: -180
                                maximum: 180
                              - type: "null"
                            description: The longitude of the address in decimal degrees.
                          placeId:
                            description: The identifier of the place corresponding to this stop on Google Places
                            type:
                              - "null"
                              - string
                          placeTypes:
                            type: array
                            items:
                              type: string
                            description: Array of strings that is provided by the Google AutoCompleteAPI
                        required:
                          - address
                          - addressLineOne
                          - addressLineTwo
                          - latitude
                          - longitude
                          - placeId
                          - placeTypes
                        additionalProperties: false
                        description: The address of the stop.
                      barcodes:
                        type: array
                        items:
                          type: string
                        description: List of Barcode IDs associated with the stop.
                      allowedDrivers:
                        type: array
                        items:
                          type: string
                          pattern: ^drivers\/[a-zA-Z0-9---_]{1,50}$
                        description: The driver IDs that can be assigned to this stop.
                      notes:
                        description: Notes for the stop.
                        type:
                          - "null"
                          - string
                      packageCount:
                        description: The number of packages.
                        type:
                          - "null"
                          - number
                      weight:
                        anyOf:
                          - type: object
                            properties:
                              amount:
                                type: number
                                minimum: 0
                                description: The weight amount for this stop.
                              unit:
                                type: string
                                enum:
                                  - kilogram
                                  - pound
                                  - metric-ton
                                description: The weight unit in which the amount is specified (defined at team's capacity unit).
                            required:
                              - amount
                              - unit
                            additionalProperties: false
                            description: Weight information for the stop.
                          - type: "null"
                      orderInfo:
                        type: object
                        properties:
                          products:
                            type: array
                            items:
                              type: string
                            description: The products of the stop.
                          invoiceNumber:
                            description: Invoice number associated with the order.
                            type:
                              - "null"
                              - string
                          sellerName:
                            description: Name of the seller where the order is from.
                            type:
                              - "null"
                              - string
                          sellerOrderId:
                            description: Id of the seller where the order is from.
                            type:
                              - "null"
                              - string
                          sellerWebsite:
                            description: Website of the seller where the order is from.
                            type:
                              - "null"
                              - string
                        required:
                          - products
                          - invoiceNumber
                          - sellerName
                          - sellerOrderId
                          - sellerWebsite
                        additionalProperties: false
                        description: The order information of the stop.
                      recipient:
                        type: object
                        properties:
                          name:
                            description: The name of the recipient.
                            type:
                              - "null"
                              - string
                          email:
                            description: The email of the recipient.
                            type:
                              - "null"
                              - string
                          phone:
                            description: The phone of the recipient.
                            type:
                              - "null"
                              - string
                          externalId:
                            description: The external id of the recipient.
                            type:
                              - "null"
                              - string
                        required:
                          - name
                          - email
                          - phone
                          - externalId
                        additionalProperties: false
                        description: The recipient of the stop.
                      activity:
                        default: delivery
                        type: string
                        enum:
                          - delivery
                          - pickup
                      trackingLink:
                        description: The recipient tracking link.
                        type:
                          - "null"
                          - string
                      timing:
                        type: object
                        properties:
                          timeWindows:
                            maxItems: 2
                            type: array
                            items:
                              type: object
                              properties:
                                earliestAttemptTime:
                                  anyOf:
                                    - type: object
                                      properties:
                                        hour:
                                          type: integer
                                          minimum: 0
                                          maximum: 23
                                          description: Hour of the day
                                        minute:
                                          type: integer
                                          minimum: 0
                                          maximum: 59
                                          description: Minute of the hour
                                      required:
                                        - hour
                                        - minute
                                      additionalProperties: false
                                      description: Time of day in hours and minutes. Uses a 24 hour clock.
                                    - type: "null"
                                  description: Earliest attempt time in this window. Null means there is no earliest time constraint.
                                latestAttemptTime:
                                  anyOf:
                                    - type: object
                                      properties:
                                        hour:
                                          type: integer
                                          minimum: 0
                                          maximum: 23
                                          description: Hour of the day
                                        minute:
                                          type: integer
                                          minimum: 0
                                          maximum: 59
                                          description: Minute of the hour
                                      required:
                                        - hour
                                        - minute
                                      additionalProperties: false
                                      description: Time of day in hours and minutes. Uses a 24 hour clock.
                                    - type: "null"
                                  description: Latest attempt time in this window. Null means there is no latest time constraint.
                              required:
                                - earliestAttemptTime
                                - latestAttemptTime
                              additionalProperties: false
                              description: An arrival window for the stop.
                            description: Ordered arrival windows for this stop.
                          estimatedAttemptDuration:
                            description: Time that the driver estimates to spend on the stop to do his job (deliver a parcel, visit a client, etc) in seconds.
                            type:
                              - "null"
                              - number
                          earliestAttemptTime:
                            anyOf:
                              - type: object
                                properties:
                                  hour:
                                    type: integer
                                    minimum: 0
                                    maximum: 23
                                    description: Hour of the day
                                  minute:
                                    type: integer
                                    minimum: 0
                                    maximum: 59
                                    description: Minute of the hour
                                required:
                                  - hour
                                  - minute
                                additionalProperties: false
                                description: Time of day in hours and minutes. Uses a 24 hour clock.
                              - type: "null"
                            description: The earliest time that the driver should arrive at the stop
                          latestAttemptTime:
                            anyOf:
                              - type: object
                                properties:
                                  hour:
                                    type: integer
                                    minimum: 0
                                    maximum: 23
                                    description: Hour of the day
                                  minute:
                                    type: integer
                                    minimum: 0
                                    maximum: 59
                                    description: Minute of the hour
                                required:
                                  - hour
                                  - minute
                                additionalProperties: false
                                description: Time of day in hours and minutes. Uses a 24 hour clock.
                              - type: "null"
                            description: The latest time that the driver should arrive at the stop.
                        required:
                          - timeWindows
                          - estimatedAttemptDuration
                          - earliestAttemptTime
                          - latestAttemptTime
                        additionalProperties: false
                        description: The timing data of the stop.
                      optimizationOrder:
                        default: default
                        type: string
                        enum:
                          - first
                          - last
                          - default
                      paymentOnDelivery:
                        anyOf:
                          - type: object
                            properties:
                              amount:
                                anyOf:
                                  - type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  - type: "null"
                                description: The amount *in minor units* (e.g. cents) to be collected upon delivery.
                              currency:
                                type: string
                                description: The payment's currency in ISO 4217 standard.
                            required:
                              - amount
                              - currency
                            additionalProperties: false
                            description: The payment due upon delivery also known as "Cash on Delivery".
                          - type: "null"
                      proofOfAttemptRequirements:
                        type: object
                        properties:
                          enabled:
                            description: Whether the proof of attempt is enabled.This only works if the team subscription has access to proof of delivery
                            type:
                              - "null"
                              - boolean
                        required:
                          - enabled
                        additionalProperties: false
                        description: The proof of attempt requirements of the stop.
                      customProperties:
                        anyOf:
                          - type: object
                            propertyNames:
                              type: string
                            additionalProperties:
                              type:
                                - string
                                - "null"
                          - type: "null"
                        description: Custom properties of the stop, can be used to store additional information.
                      clientId:
                        description: The associated Client ID of the Spoke Connect
                        type:
                          - "null"
                          - string
                    required:
                      - id
                      - depot
                      - address
                      - barcodes
                      - allowedDrivers
                      - notes
                      - packageCount
                      - weight
                      - orderInfo
                      - recipient
                      - trackingLink
                      - timing
                      - paymentOnDelivery
                      - proofOfAttemptRequirements
                      - customProperties
                      - clientId
                    additionalProperties: false
                    description: An unassigned stop.
                description: Success
        "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
components:
  schemas:
    timeOfDaySchema:
      type: object
      properties:
        hour:
          type: integer
          minimum: 0
          maximum: 23
          description: Hour of the day
        minute:
          type: integer
          minimum: 0
          maximum: 59
          description: Minute of the hour
      required:
        - hour
        - minute
      additionalProperties: false
      description: Time of day in hours and minutes. Uses a 24 hour clock.
    unassignedStopIdSchema:
      type: string
      pattern: ^unassignedStops\/[a-zA-Z0-9---_]{1,50}$
    unassignedStopSchema:
      type: object
      properties:
        id:
          allOf:
            - $ref: "#/components/schemas/unassignedStopIdSchema"
          description: The id of the unassigned stop, in the format `unassignedStops/<id>`.
        depot:
          type: string
          pattern: ^depots\/[a-zA-Z0-9---_]{1,50}$
          description: The depot that this unassigned stop belongs to.
        address:
          type: object
          properties:
            address:
              type: string
              description: The address of the stop.
            addressLineOne:
              type: string
              description: The first line of the address.
            addressLineTwo:
              type: string
              description: The second line of the address.
            latitude:
              anyOf:
                - type: number
                  minimum: -90
                  maximum: 90
                - type: "null"
              description: The latitude of the address in decimal degrees.
            longitude:
              anyOf:
                - type: number
                  minimum: -180
                  maximum: 180
                - type: "null"
              description: The longitude of the address in decimal degrees.
            placeId:
              description: The identifier of the place corresponding to this stop on Google Places
              type:
                - "null"
                - string
            placeTypes:
              type: array
              items:
                type: string
              description: Array of strings that is provided by the Google AutoCompleteAPI
          required:
            - address
            - addressLineOne
            - addressLineTwo
            - latitude
            - longitude
            - placeId
            - placeTypes
          additionalProperties: false
          description: The address of the stop.
        barcodes:
          type: array
          items:
            type: string
          description: List of Barcode IDs associated with the stop.
        allowedDrivers:
          type: array
          items:
            type: string
            pattern: ^drivers\/[a-zA-Z0-9---_]{1,50}$
          description: The driver IDs that can be assigned to this stop.
        notes:
          description: Notes for the stop.
          type:
            - "null"
            - string
        packageCount:
          description: The number of packages.
          type:
            - "null"
            - number
        weight:
          anyOf:
            - type: object
              properties:
                amount:
                  type: number
                  minimum: 0
                  description: The weight amount for this stop.
                unit:
                  type: string
                  enum:
                    - kilogram
                    - pound
                    - metric-ton
                  description: The weight unit in which the amount is specified (defined at team's capacity unit).
              required:
                - amount
                - unit
              additionalProperties: false
              description: Weight information for the stop.
            - type: "null"
        orderInfo:
          type: object
          properties:
            products:
              type: array
              items:
                type: string
              description: The products of the stop.
            invoiceNumber:
              description: Invoice number associated with the order.
              type:
                - "null"
                - string
            sellerName:
              description: Name of the seller where the order is from.
              type:
                - "null"
                - string
            sellerOrderId:
              description: Id of the seller where the order is from.
              type:
                - "null"
                - string
            sellerWebsite:
              description: Website of the seller where the order is from.
              type:
                - "null"
                - string
          required:
            - products
            - invoiceNumber
            - sellerName
            - sellerOrderId
            - sellerWebsite
          additionalProperties: false
          description: The order information of the stop.
        recipient:
          type: object
          properties:
            name:
              description: The name of the recipient.
              type:
                - "null"
                - string
            email:
              description: The email of the recipient.
              type:
                - "null"
                - string
            phone:
              description: The phone of the recipient.
              type:
                - "null"
                - string
            externalId:
              description: The external id of the recipient.
              type:
                - "null"
                - string
          required:
            - name
            - email
            - phone
            - externalId
          additionalProperties: false
          description: The recipient of the stop.
        activity:
          default: delivery
          type: string
          enum:
            - delivery
            - pickup
        trackingLink:
          description: The recipient tracking link.
          type:
            - "null"
            - string
        timing:
          type: object
          properties:
            timeWindows:
              maxItems: 2
              type: array
              items:
                type: object
                properties:
                  earliestAttemptTime:
                    anyOf:
                      - $ref: "#/components/schemas/timeOfDaySchema"
                      - type: "null"
                    description: Earliest attempt time in this window. Null means there is no earliest time constraint.
                  latestAttemptTime:
                    anyOf:
                      - $ref: "#/components/schemas/timeOfDaySchema"
                      - type: "null"
                    description: Latest attempt time in this window. Null means there is no latest time constraint.
                required:
                  - earliestAttemptTime
                  - latestAttemptTime
                additionalProperties: false
                description: An arrival window for the stop.
              description: Ordered arrival windows for this stop.
            estimatedAttemptDuration:
              description: Time that the driver estimates to spend on the stop to do his job (deliver a parcel, visit a client, etc) in seconds.
              type:
                - "null"
                - number
            earliestAttemptTime:
              anyOf:
                - $ref: "#/components/schemas/timeOfDaySchema"
                - type: "null"
              description: The earliest time that the driver should arrive at the stop
            latestAttemptTime:
              anyOf:
                - $ref: "#/components/schemas/timeOfDaySchema"
                - type: "null"
              description: The latest time that the driver should arrive at the stop.
          required:
            - timeWindows
            - estimatedAttemptDuration
            - earliestAttemptTime
            - latestAttemptTime
          additionalProperties: false
          description: The timing data of the stop.
        optimizationOrder:
          default: default
          type: string
          enum:
            - first
            - last
            - default
        paymentOnDelivery:
          anyOf:
            - type: object
              properties:
                amount:
                  anyOf:
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    - type: "null"
                  description: The amount *in minor units* (e.g. cents) to be collected upon delivery.
                currency:
                  type: string
                  description: The payment's currency in ISO 4217 standard.
              required:
                - amount
                - currency
              additionalProperties: false
              description: The payment due upon delivery also known as "Cash on Delivery".
            - type: "null"
        proofOfAttemptRequirements:
          type: object
          properties:
            enabled:
              description: Whether the proof of attempt is enabled.This only works if the team subscription has access to proof of delivery
              type:
                - "null"
                - boolean
          required:
            - enabled
          additionalProperties: false
          description: The proof of attempt requirements of the stop.
        customProperties:
          anyOf:
            - type: object
              propertyNames:
                type: string
              additionalProperties:
                type:
                  - string
                  - "null"
            - type: "null"
          description: Custom properties of the stop, can be used to store additional information.
        clientId:
          description: The associated Client ID of the Spoke Connect
          type:
            - "null"
            - string
      required:
        - id
        - depot
        - address
        - barcodes
        - allowedDrivers
        - notes
        - packageCount
        - weight
        - orderInfo
        - recipient
        - trackingLink
        - timing
        - paymentOnDelivery
        - proofOfAttemptRequirements
        - customProperties
        - clientId
      additionalProperties: false
      description: An unassigned stop.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: Use the API key as the username and leave the password empty.
````