Build on the platform your team already runs.

The partner API is the REST API our partner portal runs on, and webhooks tell your systems when something changes. Put your own AI on a call: stream its audio, hand it to an agent, or steer it.

Your order system

Order ORD-20417 sends one request.

POST /v1/p/accounts Selected fields

Content-Type: application/json
Idempotency-Key: order-20417

{
  "kind": "business",
  "name": "Ridgeway Associates",
  "billing_reference": "ORD-20417",
  "active_services": ["hosted_pbx"]
}
Complete request

POST /v1/p/accounts Complete body

Content-Type: application/json
Idempotency-Key: order-20417

{
  "kind": "business",
  "name": "Ridgeway Associates",
  "timezone": "America/Phoenix",
  "billing_reference": "ORD-20417",
  "active_services": ["hosted_pbx"],
  "service_address": {
    "address1": "1450 E Indian School Rd",
    "city": "Phoenix",
    "state": "AZ",
    "zip": "85014"
  },
  "owner": {
    "first_name": "Maya",
    "email": "owner@ridgeway.example",
    "send_link_now": false
  }
}

The API

Answers with the account, in Onboarding.

201 Created Selected fields

{
  "data": {
    "account": {
      "name": "Ridgeway Associates",
      "account_number": 100050,
      "billing_reference": "ORD-20417",
      "status": "onboarding"
    },
    "setup_link_held": true
  }
}

Your partner portal

The same account, ready for your team.

Four ways to build on it.

Your systems drive the platform through the API and hear back through webhooks. Inside a business’s portal, an AI agent, HubSpot or Sonar joins its calls. All four work on the same accounts.

Your systems

Inside a business’s portal

Into the platform

The partner API

Create customers, change their services, give them numbers and phones, and read their calls, through the API the partner portal runs on.

Eight operations

Out to your systems

Webhooks

Your systems hear when something changes, such as an order filled, a port scheduled or rejected, an account marked live, or a site’s phones going offline.

On a business’s line

An OpenAI or Grok agent

A business connects its own voice agent to a line, and its routing decides which calls the agent answers. A recorded call becomes a transcript and summary when someone asks.

Your own AI on the call

On a business’s calls

HubSpot or Sonar

Who’s calling, from HubSpot or Sonar, as the phone rings, and the call logged there afterward.

Integrations

Put your own AI on the call.

Stream a call’s audio to your AI over WebSockets, hand the call to an agent over SIP, and steer it through the call control API Everyline runs on.

  • WebSockets

    Stream the audio

    The call’s audio reaches your own service as it happens, and your service can speak back into the call.

  • SIP

    Hand it to an agent

    A line hands its calls to an AI agent over SIP. Businesses connect their own OpenAI or Grok agent today.

    AI receptionists
  • Call control

    Steer the call

    Answer, hold, transfer, park, conference and hang up from your own software, and end any live call across your accounts.

SIP registration

Not on our phone system? An agent can register as an extension on a business’s own PBX, even one we don’t host, so its dial plan, queues and extensions reach it like any phone.

After the callA recorded call becomes a transcript and summary when someone asks, and every call’s record reaches your systems through the partner API.

Eight operations, one at a time.

From the four parts of a provider’s day, each one something your team already does by hand in the partner portal.

Interactive example

Choose an operation to inspect its request, response and result.

Operations

Customer accounts

Numbers and ports

Phones and adapters

Calls and operations

Customer accounts

List accounts still onboarding

Accounts by status, kind, service or health, as the Accounts list filters them.

In your partner portal Accounts · Onboarding

  • Brightline Physical TherapyBusiness · #1000032 numbers · 5 phonesOnboarding
  • Keystone Property ManagementBusiness · #10001415 numbers · 31 phonesOnboarding
  • Ridgeway AssociatesBusiness · #100050No numbers or phones yetOnboarding

The same three accounts your Accounts list shows under Onboarding, for your own dashboards.

GET /v1/p/accounts?status=onboarding No body

200 OK Selected fields

{
  "data": [
    { "name": "Brightline Physical Therapy" },
    { "name": "Keystone Property Management" },
    { "name": "Ridgeway Associates" }
  ]
}

Customer accounts

Mark an account live

Onboarding to Active, when your team decides. Nothing goes live on its own.

In your partner portal Accounts · Ridgeway Associates

  • Ridgeway AssociatesBusiness · #100050Active

Active from now. Its owner’s setup link, held when the account was created, goes out.

POST /v1/p/accounts/6f1c2d84-0b3e-4a57-9c1d-7e2a5b90c4f3/mark-live No body

200 OK Selected fields

{
  "data": {
    "name": "Ridgeway Associates",
    "account_number": 100050,
    "status": "active"
  }
}

Numbers and ports

Order numbers for an account

Local by area code, city or ZIP, or toll-free, for an account or as spares.

In your partner portal Numbers · Orders

  • Order 3F9A62C12 local numbers in 602 · for Ridgeway Associates0 of 2 filledPending

Pending until our desk fills it, in full or in part. Filled numbers go on the account with its caller ID name.

POST /v1/p/orders Complete body

Content-Type: application/json

{
  "kind": "local",
  "area_code": "602",
  "quantity": 2,
  "caller_id_name": "RIDGEWAY",
  "account_id": "6f1c2d84-0b3e-4a57-9c1d-7e2a5b90c4f3"
}

201 Created Selected fields

{
  "data": {
    "reference": "3F9A62C1",
    "status": "pending",
    "quantity": 2,
    "filled": 0,
    "account_name": "Ridgeway Associates",
    "numbers": []
  }
}

Numbers and ports

Follow a port

A port’s stage, its date once set, and a rejection in the carrier’s words.

In your partner portal Numbers · Porting in

  • (602) 555-0147Port A2D94F17 · for Ridgeway AssociatesNext · Yours to fix and resubmitRejected

The carrier rejected it: the account number doesn’t match its records. Your team fixes it and sends it again.

GET /v1/p/ports/a2d94f17-6c38-4b51-9e0a-58f3c7d21b64 No body

200 OK Selected fields

{
  "data": {
    "reference": "A2D94F17",
    "status": "rejected",
    "account_name": "Ridgeway Associates",
    "numbers": [
      { "number": "+16025550147" }
    ],
    "rejection": "The account number doesn't match the carrier's records."
  }
}

Phones and adapters

Add phones to stock

Up to 200 MAC addresses of one model, to stock or straight onto an account.

In your partner portal Devices · In stock

  • 80:5E:C0:4A:21:07Yealink T46U · Phoenix, shelf BIn stock
  • 80:5E:C0:4A:21:3CYealink T46U · Phoenix, shelf BIn stock

Both on your shelf in Devices, ready for a customer.

POST /v1/p/devices Complete body

Content-Type: application/json

{
  "manufacturer": "Yealink",
  "model": "T46U",
  "macs": ["80:5E:C0:4A:21:07", "80:5E:C0:4A:21:3C"],
  "stock_location": "Phoenix, shelf B"
}

200 OK Selected fields

{
  "data": {
    "rows": [
      { "mac": "80:5E:C0:4A:21:07", "ok": true },
      { "mac": "80:5E:C0:4A:21:3C", "ok": true }
    ]
  }
}

Phones and adapters

Put a phone on an account

One device from stock onto an account, on one of its lines if you name it.

In your partner portal Devices · Ridgeway Associates

  • 80:5E:C0:4A:21:07Yealink T46U · Ridgeway AssociatesNever connected

On the account, and Never connected until the phone first registers.

POST /v1/p/devices/c41e7a90-58d2-4b6f-a3e1-0d9f2b7c6e15/assign Complete body

Content-Type: application/json

{ "account_id": "6f1c2d84-0b3e-4a57-9c1d-7e2a5b90c4f3" }

200 OK Selected fields

{
  "data": {
    "mac_address": "80:5E:C0:4A:21:07",
    "state": "never_connected",
    "account_name": "Ridgeway Associates",
    "last_registered_at": null
  }
}

Calls and operations

Today’s poor-quality calls

Calls across every account by time, account, direction, outcome and quality.

In your partner portal Call logs · Poor quality

  • Morgan Hale · (480) 555-0142Harbor Point Marina · in · 9:05 AM · 4:12RecordedPoor

One poor call in the last 24 hours. The record says it was recorded; the recording stays in the account.

GET /v1/p/calls?range=day&quality=poor No body

200 OK Selected fields

{
  "data": [
    {
      "account_name": "Harbor Point Marina",
      "start_time": "2026-11-18T16:05:12Z",
      "from": {
        "number": "+14805550142",
        "name": "Morgan Hale"
      },
      "talk_seconds": 252,
      "quality": "poor",
      "has_recording": true
    }
  ]
}

Calls and operations

What needs attention

Home’s morning list: what changed across your Active accounts, and who is still onboarding.

In your partner portal Home · Needs attention

  • Harbor Point Marina1 phone offlineNeeds attention

The account with a phone offline, for your support desk or your own alerting.

GET /v1/p/home No body

200 OK Selected fields

{
  "data": {
    "attention": [
      {
        "kind": "phones_offline",
        "account_name": "Harbor Point Marina",
        "count": 1
      }
    ]
  }
}

Built to be called by your systems.

A refusal names the field, a retried account isn’t made twice, the larger requests finish whole, and nothing reaches past the accounts you serve.

A refusal that names the field

POST /v1/p/devices Complete body

Content-Type: application/json

{
  "manufacturer": "Yealink",
  "model": "T46U",
  "macs": ["80:5E:C0:4A:21:07", "00:0B:82:6D:10:F2"],
  "stock_location": "Phoenix, shelf B"
}

422 Unprocessable Entity Complete response

{
  "error": {
    "code": "validation_error",
    "message": "Check the highlighted addresses.",
    "fields": [
      {
        "path": "macs.1",
        "message": "This is a Grandstream address."
      }
    ]
  }
}
The second address belongs to another maker, so neither phone is added.

A retry returns the same account

POST /v1/p/accountsIdempotency-Key: order-20417

  1. First201 Created6f1c2d84-0b3e-4a57-9c1d-7e2a5b90c4f3 #100050
  2. Again, same key200 OK6f1c2d84-0b3e-4a57-9c1d-7e2a5b90c4f3 #100050
The same key returns the account it made: no second account and no second invitation. Account creation is the request that takes a key, up to 80 characters.

All or nothing

  • POST /v1/p/accountsThe account with its numbers, phones, starter setup, first 911 location and owner’s login.
  • POST /v1/p/devicesUp to 200 phones of one model, by MAC address.
  • POST /v1/p/numbers/assignSpare numbers onto one account.

Each succeeds whole or changes nothing. The 911 address review that follows a new account never undoes it, and neither does its owner’s email.

Your accounts only

GET /v1/p/accounts/{an account you don't serve} No body

404 Not Found Complete response

{
  "error": {
    "code": "not_found",
    "message": "Resource not found."
  }
}
An account, number, phone or port you don’t serve answers as if it didn’t exist.

A call’s details, not its contents

Quality is graded from the apps’ and browser’s side. Desk phones and trunks don’t report their own measurements yet. Each search and opened call is in your Activity.

Who can reach call content
One address
JSON over HTTPS at api.carriergrade.com/v1; partner routes under /v1/p.
Results in data
A list adds paging, up to 100 items a page.
Errors in error
A code, a message a person can read, and the fields at fault.

Get started with one real workflow.

Reference documentation and API keys come with your partner account. Bring one workflow you want automated, and we’ll walk through its requests and webhooks with your team.