Loop Returns Destinations API

The Destinations API from Loop Returns — 2 operation(s) for destinations.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /destinations List return destinations · Get All Destinations #
Ask an LLM
“Which warehouses and donation centers can I send returns to?”
“Can I see all my return destinations in one list?”
Tell an agent
List all return destinations.
Show every warehouse and donation center I have set up.
POST /destinations Create a return destination · Create Destination #
Ask an LLM
“How do I add a new warehouse for returns?”
“Can I create a destination that starts out disabled?”
Tell an agent
Create a {type} named {name} at {address}.
Add {name} as a {type} at {address} with enabled set to {enabled}.
GET /destinations/{id} Get a return destination · Get Destination Details #
Ask an LLM
“What address and status does a specific return destination have?”
“Can I look up one warehouse by its ID?”
Tell an agent
Get destination {id}.
Show the address and enabled status of return destination {id}.
PUT /destinations/{id} Update a return destination · Update Destination #
Ask an LLM
“How do I change the address of an existing return destination?”
“Can I disable a warehouse without deleting it?”
Tell an agent
Update destination {id}.
Change the address of return destination {id}.
DELETE /destinations/{id} Delete a return destination · Delete Destination #
Ask an LLM
“How do I remove a warehouse from my return destinations?”
“Can I delete a donation center I no longer use?”
Tell an agent destructive · confirm first
Delete destination {id}.
Remove return destination {id} from my list.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/loop-returns:loop-returns-destinations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

loop-returns-destinations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Loop Returns Destinations API
  description: API for managing return destinations (warehouses and donation centers).
  version: v1
servers:
- url: https://api.loopreturns.com/api/v1
tags:
- name: Destinations
paths:
  /destinations:
    get:
      summary: Get All Destinations
      operationId: getAllDestinations
      description: Retrieve all destinations.
      tags:
      - Destinations
      security:
      - api_key: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  destinations:
                    type: array
                    items:
                      $ref: '#/components/schemas/Destination'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
    post:
      summary: Create Destination
      description: Create a destination.
      operationId: createDestination
      tags:
      - Destinations
      security:
      - api_key: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDestinationRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '422':
          description: Unprocessable
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/UnprocessableResponse'
                - $ref: '#/components/schemas/DestinationLimitExceeded'
  /destinations/{id}:
    get:
      summary: Get Destination Details
      operationId: getDestinationDetails
      description: Get details for a single destination.
      tags:
      - Destinations
      security:
      - api_key: []
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
        example: 12345
        description: The destination's unique identifier.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '404':
          description: Destination not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
    put:
      summary: Update Destination
      description: Update a destination.
      operationId: updateDestination
      tags:
      - Destinations
      security:
      - api_key: []
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
        example: 12345
        description: The destination's unique identifier.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '404':
          description: Destination not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
    delete:
      summary: Delete Destination
      description: Delete a destination.
      operationId: deleteDestination
      tags:
      - Destinations
      security:
      - api_key: []
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        required: true
        example: 12345
        description: The destination's unique identifier.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
                example: Success
        '404':
          description: Destination not found.
        '500':
          description: Error deleting the destination.
components:
  schemas:
    CreateDestinationRequest:
      type: object
      required:
      - name
      - type
      - address
      properties:
        name:
          type: string
          example: Example Destination
        type:
          type: string
          enum:
          - warehouse
          - donate
          example: warehouse
        enabled:
          type: boolean
          example: true
        address:
          $ref: '#/components/schemas/Address'
    NotFoundResponse:
      type: object
      properties:
        code:
          type: string
          example: NOT_FOUND
        message:
          type: string
          example: The destination could not be found.
    UnauthorizedResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: '401'
            http_code:
              type: string
              example: GEN-UNAUTHORIZED
            message:
              type: string
              example: Unauthorized.
    UnprocessableResponse:
      type: object
      properties:
        message:
          type: string
          example: The name field is required.
    Address:
      type: object
      description: The destination's address.
      properties:
        address1:
          type: string
          example: 123 Main St
        address2:
          type:
          - string
          - 'null'
          example: Unit 456
        city:
          type: string
          example: Columbus
        state:
          type:
          - string
          - 'null'
          example: Ohio
        zip:
          type:
          - string
          - 'null'
          example: '43210'
        country:
          type: string
          example: United States
        country_code:
          type: string
          example: US
    Destination:
      type: object
      description: A physical location such as a warehouse or donation center to which returns are shipped.
      properties:
        id:
          type: integer
          example: 1
          description: The destination's unique identifier.
        type:
          type: string
          enum:
          - warehouse
          - donate
          example: warehouse
          description: The type of location.
        name:
          type: string
          example: Example Destination
          description: The destination's name.
        enabled:
          type: boolean
          example: true
          description: Whether the destination is enabled as a return destination.
        provider_location_id:
          type:
          - integer
          - 'null'
          example: 42424242
          description: The numeric location identifier from the commerce platform (e.g. Shopify).
        address:
          $ref: '#/components/schemas/Address'
    DestinationLimitExceeded:
      type: object
      properties:
        code:
          type: string
          example: DESTINATION_LIMIT_EXCEEDED
        message:
          type: string
          example: You have reached the destination limit. Please check your settings.
  securitySchemes:
    api_key:
      type: apiKey
      name: X-Authorization
      in: header