PYLO Docs
Contents

Home and My Board

Leads

Webinars

Resources

Settings: Integrations and automations

Settings: Billing

Settings: Data

Reference

Public API reference

Every endpoint of the public API, generated from its live OpenAPI document.

Read as MarkdownGenerated from PYLO's live description of itself.

Generated from the live OpenAPI document at https://api.pylosystem.com/api/v1/openapi.json. Read the API overview first for tokens and limits.

Read-only access to one PYLO workspace's sales figures, for dashboards and tools that read PYLO live. Create a token in PYLO under Settings, API tokens, and send it as Authorization: Bearer <token>. A token reads exactly one workspace, the one it was created in, and can never write: PYLO stays the system of record.

Base URL

  • https://api.pylosystem.com

Authentication

  • bearerToken: HTTP bearer. A PYLO API token, pylo_ followed by 64 hex characters.

Endpoints

GET /api/v1/whoami

Check a token

The workspace and token this request is authenticated as. The first call any integration should make. Read only.

ResponseMeaning
200The answer. Returns object.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/calls

Call figures

Calls booked, taken, closed and the rates between them, for the period, each with both sides of every rate. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/outcomes

Call outcomes

Every call outcome in the period, counted. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/payments

Cash and revenue

Cash collected and revenue booked in the period, on the workspace's currency. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/leads

Leads

Leads created in the period, newest first, at most 500. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
limitqueryintegernoAt most 500; a larger number is capped, not refused.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/leads/{id}/journey

One lead's journey

Everything PYLO holds about one lead, in order: how they arrived, their calls, outcomes and payments. Read only.

ParameterInTypeRequiredDescription
idpathstringyes
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/speed-to-lead

Waiting leads

Leads still waiting for a first contact, how long each has waited, and where to open them. Read only.

ParameterInTypeRequiredDescription
withinMinutesqueryintegerno
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/eod

End of day reports

EOD submissions and compliance for the period. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/attribution

Attribution

Leads, closes and cash by UTM source, medium, campaign and content. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/commission

Commission

Commission owed per member for the period. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/funnel

Funnel

One funnel's stages for the period, each with its count and the rate from the stage before. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
funnelquerystringnoWhich funnel. An unknown name answers 400 naming the ones that exist.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/webinar

Webinar

Registrations, attendance, stay to pitch and bookings, for one webinar event or all of them. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
eventIdquerystringnoOne webinar event. Omit for all of them.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

GET /api/v1/audit-events

Audit log

Every write recorded for this workspace in the period, with the actor, the target and the reason. Read only.

ParameterInTypeRequiredDescription
fromquerystringnoFirst day, YYYY-MM-DD. Defaults to 29 days before to.
toquerystringnoLast day, YYYY-MM-DD. Defaults to today.
ResponseMeaning
200The answer. Returns Envelope.
400A parameter PYLO cannot use, named. Returns Error.
401No token, or one PYLO does not accept. Returns Error.

Schemas

Envelope

Every answer. notes names anything PYLO could not answer, so a short list and a broken one never look the same.

FieldTypeRequiredDescription
workspaceobjectyes
periodobjectno
dataobjectyesThe answer. Figures inside it have the Field shape.
notesarray of objectyes

Field

One figure. value is null whenever PYLO could not honestly draw it, and unavailable then says why. A rate is a fraction, never a percentage, and carries both of its sides.

FieldTypeRequiredDescription
metricstringyesThe metric registry id.
labelstringyes
unitstring: count, money, rateyes
valuenumberyes
currencystringnoMoney only. ISO 4217.
numeratorobjectno
denominatorobjectno
unavailableobjectno

Error

FieldTypeRequiredDescription
errorobjectno