---
title: Retrieve a courier
description: Retrieve a single courier connected to the authenticated retailer.
url: /api/couriers/getCourier
---

# Retrieve a courier

`GET /couriers/{id}`

````yaml
openapi: 3.2.0
info:
  title: Spoke Connect API
  version: v1
servers:
  - url: https://api.spoke.com/connect/v1
security:
  - BearerAuth: []
  - BasicAuth: []
paths:
  /couriers/{id}:
    get:
      operationId: getCourier
      summary: Retrieve a courier
      tags:
        - Couriers
      description: Retrieve a single courier connected to the authenticated retailer.
      parameters:
        - schema:
            type: string
            pattern: ^[a-zA-Z0-9_-]{1,50}$
          in: path
          name: id
          required: true
          description: The courier id.
      responses:
        "200":
          description: The requested courier.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    allOf:
                      - $ref: "#/components/schemas/connectCourierIdSchema"
                    description: Courier identifier.
                  name:
                    type: string
                    description: The courier's display name.
                required:
                  - id
                  - name
                additionalProperties: false
                description: The requested courier.
                definitions:
                  connectCourierIdSchema:
                    type: string
                    pattern: ^couriers\/[a-zA-Z0-9_-]{1,50}$
                    description: Unique identifier of a courier, in the format `couriers/{id}`.
        "400":
          description: ID format is 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: ID format is invalid
                title: The request is 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
        "404":
          description: The courier is not connected to the retailer, or does not exist.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: The error message.
                  code:
                    type: string
                    enum:
                      - courier_not_found
                required:
                  - message
                  - code
                description: The courier is not connected to the retailer, or does not exist.
                title: Courier not found
        "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:
    connectCourierIdSchema:
      type: string
      pattern: ^couriers\/[a-zA-Z0-9_-]{1,50}$
      description: Unique identifier of a courier, in the format `couriers/{id}`.
  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.
````