FRAYT match estimates API

The match estimates API from FRAYT — 2 operation(s) for match estimates.

Operations 2

POST /api/v2.2/matches/estimate Create an estimate for a Match without authorizing #
PATCH /api/v2.2/matches/estimate/{id} Update and/or authorize a Match estimate #

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/frayt:frayt-match-estimates-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

frayt-match-estimates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Introduction


    Welcome to the FRAYT''s REST API. Each endpoint is documented individually, and the endpoints are categorized by the resource that they primarily affect (Matches, and OAuth). By following the outlined schema of each endpoint, our API allows you to integrate FRAYT''s logistics services seamlessly into your application.


    FRAYT Terminology


    The logistics industry tends to have a wide variety of terms for a single item. So let''s make sure we define our terms before getting into the API:


    Match: this is an individual order placed in the FRAYT system for a driver to deliver


    Estimate: this provides a dollar amount in the response prior to it becoming a match. Estimates can be authorized into matches by passing the same payload but to the matches endpoint


    FRAYT Workflows


    Now that we have our terms defined, let''s paint a bigger picture of what the life of a match looks like. These examples are the most common but are by no means exhaustive.


    Golden Path: Pending (estimate)->Assigning Driver (live match to whole marketplace)->Accepted (by a driver)->En Route to Pickup->Arrived at Pickup->Picked Up*->Completed (delivered)->Charged


    Unable to Pickup: Pending->Assigning Driver->Accepted>En Route to Pickup->Arrived at Pickup->Unable to Pickup


    Unable to Dropoff: Pending->Assigning Driver->Accepted->En Route to Pickup->Arrived at Pickup->Picked Up*->En Route to Return->Arrived at Return->Charged


    Preferred Driver: Pending->Offered (only to preferred driver, not marketplace)->Accepted->En Route to Pickup->Arrived at Pickup->Picked Up*->Completed->Charged


    *Once a match is picked up, the match.stop state changes from Pending–>En Route–>Arrived–>Signed–>Delivered or Returned


    Endpoints and Requests


    The FRAYT API endpoints are organized as matches, match estimates, and oauth. Once authentication has been made, the primary endpoint used will be the Matches endpoint for all estimates and matches.


    Our endpoints have a base url of https://api.frayt.com/api/v2.2/


    The schema for each endpoint lists the properties and provides a brief description to provide context for your mapping needs. Additionally, all required properties are listed with a red asterisk (*).


    Authentication


    All FRAYT API requests require a valid bearer token. To generate your bearer token, you will need to hit the OAuth endpoint passing your Client ID and Secret in the payload.

    To acquire your Client ID and Secret, reach out to the FRAYT team at dev@frayt.com.


    Match Estimates


    The match estimates endpoint provides the ability to get a rate estimate, create a match, update an estimate, or turn an estimate into a match.


    To receive an estimated rate for a delivery without creating the match itself, hit the POST match estimates endpoint.


    To turn the estimate into a delivery (what we call a match at FRAYT), make a call to ouar PATCH match estimates endpoint.


    Matches


    The matches endpoint provides the ability to create a match, update a match, add a tip, or cancel a match.


    To tender a delivery (what we call a match at FRAYT), pass the required payload to our POST matches endpoint.


    To fetch data on a match at any point, hit the GET /matches/{id} endpoint.


    Webhooks


    Webhook payloads are defined in the callbacks of each method below. You can find detailed state information under the response Schema of each callback.


    To receive webhook updates from FRAYT, contact the FRAYT team for setup and configuration at dev@frayt.com'
  title: FRAYT Client match estimates API
  version: '2.2'
servers:
- url: https://api.frayt.com
  variables: {}
security: []
tags:


# --- truncated at 32 KB (98 KB total) ---
# Full source: https://artifacts.apis.io/frayt/openapi/frayt-match-estimates-api-openapi.yml