Skip to content

Developers

REST API reference

Version 1, at https://ebrbe.com/api/v1. The machine-readable spec is openapi.json (OpenAPI 3.1).

Authentication

Create a key in Settings → Developers and send it as a bearer token. A key acts as the person who created it, with their role, limited to its scopes (:write includes :read). Personal keys work in every workspace you belong to; pick one with the eBRBe-Workspace header (slug or id). Workspace keys only work in their own workspace.

Request
curl https://ebrbe.com/api/v1/me \
  -H "Authorization: Bearer $EBRBE_API_KEY"
time:readRunning timer, time entries and timesheets.
time:writeStart and stop the timer, log and edit time, submit timesheets (and their Proof Capture thumbnails, where enabled).
work:readClients, projects, work items and comments.
work:writeCreate and update clients, projects, work items and comments.
agent_runs:readThe AI-agent cost ledger.
agent_runs:writeLog AI-agent runs and their costs.
reports:readSummary reports, unbilled amounts, project status and insights.
invoices:readInvoices and their lines.
invoices:writeCreate draft invoices.
telemetry:writeSend OpenTelemetry gen-AI spans (OTLP); each model call becomes an agent run.
approvals:readProposals eBRBe's agents made and their decisions.
approvals:writeApprove internal proposals, reject proposals and ask agents to run. Client, money, rate and pay actions are never approved through the API.

CORS is closed: the API and MCP endpoint never send Access-Control-Allow-Origin, so call them from servers, scripts and agents, not from web pages.

Errors

Every error has the same shape. Messages are written for people and safe to show to users.

422 Unprocessable Content
{
  "error": {
    "code": "invalid",
    "message": "model: Choose a model.",
    "details": [{ "path": "model", "message": "Choose a model." }]
  }
}

400 malformed JSON · 401 missing or bad key · 402 plan limit · 403 role or scope · 404 not found (or not yours to see) · 409 locked, wrong state or Idempotency-Key conflict · 413 body over 1 MB · 415 not JSON · 422 validation · 429 rate limited · 501 not available yet · 500 our fault.

Pagination, formats and money

Lists take limit (1–200, default 50) and offset, and return pagination with total, has_more and next_offset. Fields are snake_case, timestamps ISO 8601 in UTC, dates YYYY-MM-DD. Money is an integer in minor units with a currency code (12000 USD is $120.00). Agent costs are micro-USD (cost_micros, one dollar is 1,000,000).

Idempotency

Send an Idempotency-Key header (e.g. a UUID) with any POST. Repeating the request with the same key and body within 24 hours returns the first response with Idempotent-Replayed: true instead of acting twice. The same key with a different body is a 409. Agent runs also dedupe on external_id.

Rate limits

Per key, per minute, by the workspace's plan: Free 60, Pro 300, Team 600, Business 1,200. Each IP address may make twice its key's limit, and repeated failed authentication from an address is blocked for the rest of the minute. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 also has Retry-After (seconds).

Webhooks

Owners and admins add HTTPS endpoints in Settings → Webhooks. Each event is POSTed as JSON: { id, type, created_at, workspace_id, data }, where data has the same shape as the API resource. Any 2xx response is success; anything else (including redirects, which are never followed) is retried after 1 min, 5 min, 30 min, 2 h, 5 h, 7 h and 8 h: 8 attempts over about 23 hours. Endpoints whose last 5 deliveries all failed are disabled and admins are notified; every delivery can be replayed from the log.

time_entry.createdtime_entry.updatedtime_entry.deletedtimesheet.submittedtimesheet.approvedtimesheet.rejectedtimesheet.reopenedwork_item.createdwork_item.updatedwork_item.deletedagent_run.createdinvoice.createdinvoice.sentinvoice.paidinvoice.voidedpayment.succeeded

Verify every request. The eBRBe-Signature header is t=<unix seconds>,v1=<hex> where v1 = HMAC-SHA256(secret, t + "." + raw body). Reject timestamps more than 5 minutes from now. Requests also carry eBRBe-Event and eBRBe-Delivery.

Verify a webhook (Node.js)
import crypto from "node:crypto";
import express from "express";

const app = express();
const secret = process.env.EBRBE_WEBHOOK_SECRET; // whsec_…

// Use the raw body: re-serialised JSON won't match the signature.
app.post("/webhooks/ebrbe", express.raw({ type: "application/json" }), (req, res) => {
  const header = req.get("eBRBe-Signature") ?? "";
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
  const t = Number(parts.t);
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${req.body}`).digest("hex");
  const given = Buffer.from(parts.v1 ?? "", "hex");
  const ok =
    Number.isFinite(t) &&
    Math.abs(Date.now() / 1000 - t) <= 300 && // 5-minute tolerance
    given.length === 32 &&
    crypto.timingSafeEqual(given, Buffer.from(expected, "hex"));
  if (!ok) return res.status(400).send("bad signature");

  const event = JSON.parse(req.body.toString("utf8"));
  // event.id is stable across retries and replays: ignore ids you've already handled.
  console.log(event.type, event.data);
  res.sendStatus(200);
});

Account

The key's user and workspaces.

get/api/v1/me

Who am I

The user the API key acts as, the workspace this request acts in, and the key's scopes. Works with any valid key. Any valid key.

Response 200

data*object

Other responses: 401, 429, 500

delete/api/v1/me/api-key

Revoke the key making this request

Signs a client out for good: the API key used for this request stops working at once (audit api_key.revoked). Works with any valid key and needs no scope. The browser extension calls it when you sign out. Any valid key.

Response 204

Revoked.

Other responses: 401, 429, 500

get/api/v1/workspaces

List workspaces

Workspaces this key can act in. Personal keys work in every workspace the user belongs to (choose one per request with the eBRBe-Workspace header); workspace keys only in their own. Any valid key.

Parameters

limitinteger
offsetinteger

Response 200

data*Workspace[]
pagination*object

Other responses: 401, 429, 500

Clients

get/api/v1/clients

List clients

Required scope: work:read.

Parameters

include_archived"0" | "1" | "true" | "false"
limitinteger
offsetinteger

Response 200

data*Client[]
pagination*object

Other responses: 401, 429, 500

post/api/v1/clients

Create a client

Owners, admins and managers. Free workspaces are limited to 3 active clients (402). Required scope: work:write.

Request body

name*string
billing_emailstring | null
addressstring | null
tax_idstring | null
currencystring
default_rateinteger | null
notesstring | null

Response 201

data*Client

Other responses: 401, 402, 403, 413, 422, 429, 500

get/api/v1/clients/{id}

Get a client

Required scope: work:read.

Parameters

id (path)*string (uuid)

Response 200

data*Client

Other responses: 401, 404, 429, 500

patch/api/v1/clients/{id}

Update a client

Send only the fields to change. archived: true archives the client. Required scope: work:write.

Parameters

id (path)*string (uuid)

Request body

namestring
billing_emailstring | null
addressstring | null
tax_idstring | null
currencystring
default_rateinteger | null
notesstring | null
archivedboolean

Response 200

data*Client

Other responses: 401, 402, 403, 404, 413, 422, 429, 500

Projects

get/api/v1/projects

List projects

Projects you can see: all for owners and admins, member projects for everyone else. Required scope: work:read.

Parameters

client_idstring (uuid)
include_archived"0" | "1" | "true" | "false"
limitinteger
offsetinteger

Response 200

data*Project[]
pagination*object

Other responses: 401, 429, 500

post/api/v1/projects

Create a project

Owners, admins and managers. The creator becomes a project manager. Required scope: work:write.

Request body

name*string
keystring
client_idstring (uuid) | null
descriptionstring | null
colorstring
billing_model"hourly" | "fixed_fee" | "retainer" | "non_billable"
hourly_rateinteger | null
budget_minutesinteger | null
budget_amountinteger | null
fee_amountinteger | null
currencystring
start_datestring (date) | null
end_datestring (date) | null
lead_idstring (uuid) | null
status"active" | "on_hold" | "completed"

Response 201

data*object

Other responses: 401, 403, 413, 422, 429, 500

get/api/v1/projects/{id}

Get a project

Required scope: work:read.

Parameters

id (path)*string (uuid)

Response 200

data*object

Other responses: 401, 403, 404, 429, 500

patch/api/v1/projects/{id}

Update a project

Send only the fields to change. Needs project manager rights. archived: true archives it. Required scope: work:write.

Parameters

id (path)*string (uuid)

Request body

namestring
keystring
client_idstring (uuid) | null
descriptionstring | null
colorstring
billing_model"hourly" | "fixed_fee" | "retainer" | "non_billable"
hourly_rateinteger | null
budget_minutesinteger | null
budget_amountinteger | null
fee_amountinteger | null
currencystring
start_datestring (date) | null
end_datestring (date) | null
lead_idstring (uuid) | null
status"active" | "on_hold" | "completed"
archivedboolean

Response 200

data*object

Other responses: 401, 403, 404, 413, 422, 429, 500

get/api/v1/projects/{id}/status

Project status: budget, burn, overdue work and risks

Required scope: reports:read.

Parameters

id (path)*string (uuid)

Response 200

data*object

Other responses: 401, 403, 404, 429, 500

Work items

get/api/v1/work-items

List or search work items

With assigned=me: your open items across projects. With project_id (and no q): every item in the project you can see, in board order. With q: search titles, or a key like WEB-12. Required scope: work:read.

Parameters

project_idstring (uuid)
qstring
assigned"me"
open"0" | "1" | "true" | "false"
limitinteger
offsetinteger

Response 200

data*WorkItem[]
pagination*object

Other responses: 401, 429, 500

post/api/v1/work-items

Create a work item

Required scope: work:write.

Request body

project_id*string (uuid)
title*string
descriptionstring
status_idstring (uuid)
parent_idstring (uuid)
type"epic" | "task" | "subtask"
priority"none" | "low" | "medium" | "high" | "urgent"
estimate_minutesinteger | null
due_datestring (date) | null
assignee_idsstring (uuid)[]

Response 201

data*object

Other responses: 401, 403, 404, 413, 422, 429, 500

get/api/v1/work-items/lookup

Suggest work items for a web page

Matches a page (GitHub PR or issue, Linear or Jira ticket, Notion page, Google Doc, Figma file…) to work items you can see: evidence on that URL linked to an item, item keys (WEB-12) in the title or URL, then open items with a similar title. project is the project the page points at (evidence or your GitHub repo mapping), when there is one. Used by the browser extension. Required scope: work:read.

Parameters

url*string
titlestring
limitinteger

Response 200

data*object[]
project*object | null

Other responses: 401, 422, 429, 500

get/api/v1/work-items/{id}

Get a work item

Required scope: work:read.

Parameters

id (path)*string (uuid)

Response 200

data*object

Other responses: 401, 403, 404, 429, 500

patch/api/v1/work-items/{id}

Update a work item

Send only the fields to change. Contractors may change only status_id on items assigned to them. Required scope: work:write.

Parameters

id (path)*string (uuid)

Request body

titlestring
descriptionstring | null
status_idstring (uuid)
parent_idstring (uuid) | null
type"epic" | "task" | "subtask"
priority"none" | "low" | "medium" | "high" | "urgent"
estimate_minutesinteger | null
due_datestring (date) | null
assignee_idsstring (uuid)[]

Response 200

data*object

Other responses: 401, 403, 404, 413, 422, 429, 500

delete/api/v1/work-items/{id}

Delete a work item and its sub-items

Required scope: work:write.

Parameters

id (path)*string (uuid)

Response 204

Deleted.

Other responses: 401, 403, 404, 429, 500

get/api/v1/work-items/{id}/comments

List comments on a work item

Required scope: work:read.

Parameters

id (path)*string (uuid)
limitinteger
offsetinteger

Response 200

data*Comment[]
pagination*object

Other responses: 401, 403, 404, 429, 500

post/api/v1/work-items/{id}/comments

Comment on a work item

Required scope: work:write.

Parameters

id (path)*string (uuid)

Request body

text*string

Response 201

data*Comment

Other responses: 401, 403, 404, 413, 422, 429, 500

Time

Time entries.

get/api/v1/time-entries

List your time entries

Your own entries that start in [from, to). Defaults to the last 7 days; at most 92 days per request. Required scope: time:read.

Parameters

fromstring (date-time) | string (date)
tostring (date-time) | string (date)
limitinteger
offsetinteger

Response 200

data*TimeEntry[]
pagination*object

Other responses: 401, 429, 500

post/api/v1/time-entries

Log time

Give a duration, or a start and end time (or start/end plus a duration), on a date in your timezone. Required scope: time:write.

Request body

project_idstring (uuid) | null
work_item_idstring (uuid) | null
descriptionstring
billableboolean
datestring (date)
startstring
endstring
durationstring
duration_secondsinteger

Response 201

Other responses: 401, 403, 404, 409, 413, 422, 429, 500

get/api/v1/time-entries/{id}

Get one of your time entries

Required scope: time:read.

Parameters

id (path)*string (uuid)

Response 200

Other responses: 401, 404, 429, 500

patch/api/v1/time-entries/{id}

Edit a time entry

Send only what changes. Changing times needs date plus start/end/duration. Approved and invoiced entries are locked (409). Required scope: time:write.

Parameters

id (path)*string (uuid)

Request body

project_idstring (uuid) | null
work_item_idstring (uuid) | null
descriptionstring
billableboolean
datestring (date)
startstring
endstring
durationstring
duration_secondsinteger

Response 200

Other responses: 401, 403, 404, 409, 413, 422, 429, 500

delete/api/v1/time-entries/{id}

Delete a time entry

Required scope: time:write.

Parameters

id (path)*string (uuid)

Response 204

Deleted.

Other responses: 401, 403, 404, 409, 429, 500

Timer

get/api/v1/timer

Get your running timer

Required scope: time:read.

Response 200

data*RunningTimer | null

Other responses: 401, 429, 500

post/api/v1/timer/start

Start the timer

Starting while a timer runs stops it first and saves its entry (returned as stopped_entry). Required scope: time:write.

Request body

project_idstring (uuid) | null
work_item_idstring (uuid) | null
descriptionstring
billableboolean
started_atstring (date-time)
source"api" | "desktop"

Response 201

data*RunningTimer
stopped_entry*TimeEntry | null

Other responses: 401, 403, 404, 413, 422, 429, 500

post/api/v1/timer/stop

Stop the timer

Saves the running timer as a time entry. data is null when nothing was running (or it ran under a second). Required scope: time:write.

Request body

end_atstring (date-time)

Response 200

data*TimeEntry | null

Other responses: 401, 413, 422, 429, 500

Timesheets

get/api/v1/timesheets

List your recent timesheets

Required scope: time:read.

Parameters

limitinteger
offsetinteger

Response 200

data*Timesheet[]
pagination*object

Other responses: 401, 429, 500

get/api/v1/timesheets/{week}

Get your timesheet for a week

Required scope: time:read.

Parameters

week (path)*string (date)

Response 200

data*Timesheet
entries*TimeEntry[]

Other responses: 401, 429, 500

post/api/v1/timesheets/{week}/submit

Submit your timesheet for approval

Required scope: time:write.

Parameters

week (path)*string (date)

Request body

commentstring

Response 200

Other responses: 401, 409, 413, 422, 429, 500

Proof Capture

Opt-in, contractor-reviewed screen thumbnails from the desktop app (Business plan, off by default).

get/api/v1/proof-capture/projects

Projects with Proof Capture on (for you)

Projects you track on where an Admin turned Proof Capture on, with each project's settings, the transparency notice to show and whether you accepted it. available is false (and the list empty) when the workspace doesn't have Proof Capture. Required scope: time:read.

Response 200

available*boolean
data*object[]

Other responses: 401, 429, 500

post/api/v1/proof-capture/consents

Accept the Proof Capture notice for a project

Send the notice's version and sha256 exactly as GET /proof-capture/projects returned them; a changed notice is refused (409) so it can be shown again. Required scope: time:write.

Request body

project_id*string (uuid)
notice_version*string
notice_sha256*string

Response 201

data*object

Other responses: 401, 404, 409, 413, 422, 429, 500

delete/api/v1/proof-capture/consents/{id}

Withdraw your Proof Capture consent for a project

id is the project id. Idempotent. Required scope: time:write.

Parameters

id (path)*string (uuid)

Response 204

Withdrawn (or there was nothing to withdraw).

Other responses: 401, 429, 500

post/api/v1/proof-captures

Submit a reviewed capture

One thumbnail the person reviewed and kept (≤ 512 KB JPEG, PNG or WebP, ≤ 1280px; the type and size are read from the bytes). Send client_capture_id as the Idempotency-Key too; the same id again returns the stored capture (200). Refused without a consent on record at captured_at, for an approved week, or unblurred where the project requires blur. Required scope: time:write.

Request body

client_capture_id*string (uuid)
project_id*string (uuid)
work_item_idstring (uuid) | null
captured_at*string (date-time)
reviewed_atstring (date-time) | null
notestring | null
mime_type*"image/jpeg" | "image/png" | "image/webp"
image_base64*string
width*integer
height*integer
blurred*boolean
activityobject[]

Response 201

data*object

Other responses: 401, 402, 404, 409, 413, 415, 422, 429, 500

delete/api/v1/proof-captures/{id}

Delete one of your submitted captures

Required scope: time:write.

Parameters

id (path)*string (uuid)

Response 204

Deleted.

Other responses: 401, 404, 429, 500

Agent runs

The AI-agent cost ledger.

post/api/v1/agent-runs

Log an AI-agent run

Records tokens and cost for one agent run. Cost is calculated from the model's list price unless you send cost_usd. Returns 201 for a new run, or 200 with the existing run when external_id was already logged. Required scope: agent_runs:write.

Request body

providerstring
model*string
toolstring
descriptionstring
input_tokensinteger
output_tokensinteger
cache_read_tokensinteger
cache_write_tokensinteger
cost_usdnumber | null
duration_msinteger | null
started_atstring (date-time)
project_idstring (uuid) | null
client_idstring (uuid) | null
work_item_idstring (uuid) | null
external_idstring | null
billableboolean

Response 201

Other responses: 401, 403, 404, 413, 422, 429, 500

get/api/v1/agent-runs

List agent runs

Your runs; managers also see runs on their projects; owners and admins see every run. Newest first, up to 1,000 per query window. Required scope: agent_runs:read.

Parameters

fromstring (date-time) | string (date)
tostring (date-time) | string (date)
project_idstring (uuid)
client_idstring (uuid)
modelstring
toolstring
limitinteger
offsetinteger

Response 200

data*AgentRun[]
totals*object
pagination*object

Other responses: 401, 429, 500

Reports

get/api/v1/reports/summary

Summary report: time, money, profit and agent cost

The same numbers as Reports in the app: totals and breakdowns by client, project and member, agent cost, and budget burn. Owners, admins and managers (their projects). Give a period preset, or from and to for a custom range (in your timezone). Required scope: reports:read.

Parameters

period"this-week" | "last-week" | "this-month" | "last-month" | "last-30" | "this-quarter" | "this-year" | "custom"
fromstring (date)
tostring (date)
client_idstring (uuid)
project_idstring (uuid)
user_idstring (uuid)
billable"all" | "billable" | "non_billable"

Response 200

data*object

Other responses: 401, 403, 429, 500

get/api/v1/reports/unbilled

Unbilled time and agent costs

Billable time and agent runs not yet on an invoice, per project, with values (agent costs after markup). Required scope: reports:read.

Parameters

client_idstring (uuid)
project_idstring (uuid)

Response 200

data*object

Other responses: 401, 429, 500

Invoices

Read invoices and create drafts. Sending happens in the app, after a person reviews the draft.

get/api/v1/invoices

List invoices

Owners and admins see every invoice; managers only when the workspace lets managers invoice, for their projects' clients. Required scope: invoices:read.

Parameters

status"draft" | "sent" | "viewed" | "partially_paid" | "paid" | "overdue" | "void"
client_idstring (uuid)
limitinteger
offsetinteger

Response 200

data*Invoice[]
pagination*object

Other responses: 401, 403, 429, 500

post/api/v1/invoices

Create a draft invoice

Builds a draft for a client from approved, unbilled time and agent runs (with markup) in the period. Drafts only: a person reviews and sends it in the app. Free workspaces are limited to 5 invoices a month (402). Required scope: invoices:write.

Request body

client_id*string (uuid)
period_start*string (date)
period_end*string (date)
group_by"project" | "task" | "person" | "none"
include_timeboolean
include_agentboolean
fixed_project_idsstring (uuid)[]

Response 201

data*object

Other responses: 401, 402, 403, 404, 413, 422, 429, 500

get/api/v1/invoices/{id}

Get an invoice with its lines

Required scope: invoices:read.

Parameters

id (path)*string (uuid)

Response 200

data*object

Other responses: 401, 403, 404, 429, 500

Schemas

User

id*string (uuid)
name*string
email*string
timezone*string

Workspace

id*string (uuid)
slug*string
name*string
role*string

Client

id*string (uuid)
name*string
billing_email*string | null
address*string | null
tax_id*string | null
currency*string
default_rate*integer | nullDefault hourly bill rate in minor units of `currency`.
notes*string | null
archived*boolean
created_at*string (date-time)
updated_at*string (date-time)

Project

id*string (uuid)
key*stringShort key used in work item references, e.g. WEB in WEB-12.
name*string
description*string | null
color*string
client_id*string (uuid) | null
billing_model*"hourly" | "fixed_fee" | "retainer" | "non_billable"
status*string
currency*string
budget_minutes*integer | null
budget_amount*integer | nullMoney budget in minor units of `currency`.
fee_amount*integer | null
start_date*string (date) | null
end_date*string (date) | null
lead_id*string (uuid) | null
archived*boolean
created_at*string (date-time) | null

WorkItem

id*string (uuid)
project_id*string (uuid)
key*string | null
number*integer
title*string
type*"epic" | "task" | "subtask"
parent_id*string (uuid) | null
status_id*string (uuid) | null
priority*"none" | "low" | "medium" | "high" | "urgent"
estimate_minutes*integer | null
due_date*string (date) | null
assignee_ids*string (uuid)[] | nullNull when not loaded (webhook payloads of updates).
completed_at*string (date-time) | null
created_at*string (date-time)

Comment

id*string (uuid)
work_item_id*string (uuid)
author_id*string (uuid) | null
text*string
body*object
created_at*string (date-time)

TimeEntry

id*string (uuid)
user_id*string (uuid)
project_id*string (uuid) | null
work_item_id*string (uuid) | null
description*string
started_at*string (date-time)
ended_at*string (date-time)
duration_seconds*integer
billable*boolean
bill_rate*integer | nullHourly bill rate in minor units of `currency`.
cost_rate*integer | nullHourly cost rate in minor units of `currency`.
currency*string
source*stringtimer, manual, autopilot, mcp, api, import or desktop.
timesheet_id*string (uuid) | null
locked*booleanApproved (or invoiced) entries are locked.
invoiced*boolean

RunningTimer

id*string (uuid)
started_at*string (date-time)
elapsed_seconds*integer
description*string
billable*boolean
source*string
project_id*string (uuid) | null
project_name*string | null
work_item_id*string (uuid) | null
work_item_key*string | null
work_item_title*string | null

Timesheet

id*string (uuid) | null
user_id*string (uuid)
week_start*string (date)
status*"draft" | "submitted" | "approved" | "rejected"
total_seconds*integer
billable_seconds*integer | null
submitted_at*string (date-time) | null
decided_at*string (date-time) | null

AgentRun

id*string (uuid)
user_id*string (uuid) | null
provider*string
model*string
tool*string
description*string
input_tokens*integer
output_tokens*integer
cache_read_tokens*integer
cache_write_tokens*integer
cost_micros*integer
cost_usd*number
cost_source*"calculated" | "supplied"
duration_ms*integer | null
started_at*string (date-time)
project_id*string (uuid) | null
client_id*string (uuid) | null
work_item_id*string (uuid) | null
external_id*string | null
source*string
billable*boolean
invoiced*boolean

InvoiceLine

id*string (uuid)
kind*stringtime, agent, fixed, expense or manual.
description*string
quantity*number
unit*string
unit_price*integer
amount*integer
project_id*string (uuid) | null

Invoice

id*string (uuid)
number*string
status*stringdraft, sent, viewed, partially_paid, paid, overdue or void.
client_id*string (uuid)
currency*string
issue_date*string (date)
due_date*string (date)
period_start*string (date) | null
period_end*string (date) | null
subtotal*integer
discount_amount*integer
tax_amount*integer
total*integer
amount_paid*integer
balance_due*integer
sent_at*string (date-time) | null
paid_at*string (date-time) | null
voided_at*string (date-time) | null
created_at*string (date-time)
linesInvoiceLine[]Included on single-invoice responses.

Error

error*object

Prefer to let an AI assistant do it? See the MCP server.