For developers and partners

Talkspresso API reference

Read and manage bookings, services and organizations with a scoped API key.

Authentication

Create a key in Settings > API keys. Keys start with tsp_. Choose the scopes it needs when you create it. A key cannot create or manage other keys.

Send the key in the Authorization header of every request. The API base address is https://api.talkspresso.com.

Request
curl https://api.talkspresso.com/organization/my \
  -H "Authorization: Bearer tsp_your_key_here"

Keep the key on your server. Anyone who has it can do whatever its scopes allow. If it leaks, revoke it on the same page.

Scopes

A key can do only what its scopes allow. A route no scope covers is closed to every key. New keys start with read and you add the others one by one.

API key scopes and what each allows
ScopeWhat it allows
readSee your bookings, clients, services, products and earnings
bookings:writeCreate, approve, decline, reschedule and cancel bookings; change your availability
catalog:writeCreate and edit services, products, promo codes, intake questions, testimonials and your profile
clients:writeEdit client records, leads and notifications
messaging:sendSend messages and requests to your existing clients
org:writeManage your organizations: branding, member updates, invitations

Public endpoints

These two need no key. Use them to show an organization and its people on your own site. They are read only. Replace startupnash with the organization’s slug.

Get an organization

GET /organization/public/:slug

Request
curl https://api.talkspresso.com/organization/public/startupnash
Response 200
{
  "data": {
    "id": "org_startupnash_2024",
    "name": "StartupNash",
    "slug": "startupnash",
    "tagline": null,
    "description": "A Slack community for founders and funders...",
    "logo_url": "https://talkspresso.nyc3.digitaloceanspaces.com/uploads/org-logos/startupnash-logo.png",
    "icon_url": "https://talkspresso.nyc3.digitaloceanspaces.com/uploads/org-logos/startupnash-icon.png",
    "hero_image_url": "",
    "hero_title": "Book Time with Nashville's Best Startup Mentors",
    "hero_subtitle": "Get personalized 1-on-1 advice from founders, investors, and operators...",
    "primary_color": "#05073a",
    "secondary_color": "#ffca30",
    "accent_color": "#26f7b2",
    "member_term_singular": "Coach",
    "member_term_plural": "Coaches",
    "session_term": "Session",
    "session_term_plural": "Sessions",
    "locale": "en",
    "website_url": "https://startupnash.com",
    "social_links": {
      "twitter": "https://twitter.com/startupnash",
      "linkedin": "https://linkedin.com/company/startupnash",
      "instagram": null
    },
    "total_members": 12,
    "stripe_test_mode": true,
    "show_free_label": false,
    "payments_enabled": true,
    "noindex": true,
    "term_plural_gaps": [],
    "is_password_protected": false
  }
}
Organization response fields
FieldWhat it is
id, name, slugThe organization’s id, display name and the slug used in its web address.
tagline, descriptionShort line and longer description, as the organization wrote them.
logo_url, icon_url, hero_image_urlImage addresses. hero_image_url is an empty string when none is set.
hero_title, hero_subtitleHeadline and sub-headline for the organization’s marketplace page.
primary_color, secondary_color, accent_colorBrand colors as hex values.
member_term_singular, member_term_pluralWhat the organization calls its people, for example Coach and Coaches.
session_term, session_term_pluralWhat the organization calls a booking, for example Session and Sessions.
localeLanguage code of the page, for example en.
website_url, social_linksThe organization’s own site and its twitter, linkedin and instagram links (null when not set).
browse_rowsThe rows the organization groups its coaches into on its browse page, or null when none are set. Each row has a title and a match.
total_membersNumber of members.
stripe_test_mode, show_free_label, term_plural_gapsDisplay and test-mode settings for the marketplace page.
payments_enabledTrue when members can take paid bookings.
noindexTrue when the marketplace page asks search engines not to list it.
is_password_protectedTrue when the organization’s page asks visitors for a password. The password itself is never returned.

An unknown slug returns 404 with { "error": "Community not found" }.

List an organization’s members

GET /organization/public/:slug/members

Optional query parameters: featured=true returns only featured members, and limit caps how many come back. total is the count of members that match, before limit. The order of members is not guaranteed.

Request
curl "https://api.talkspresso.com/organization/public/startupnash/members?limit=1"
Response 200 (one member shown)
{
  "data": {
    "members": [
      {
        "id": "om_sn_jennifer",
        "member_title": "Fundraising Advisor & Angel Investor",
        "member_bio": null,
        "is_featured": true,
        "hide_price": false,
        "total_sessions": 0,
        "user": { "id": "sn_jennifer", "name": "Jennifer Chen" },
        "profile": {
          "profile_handle": "jennifer-chen",
          "profile_photo": "/images/startupnash/jennifer.jpg",
          "category": null,
          "experience_summary": "VP of Engineering with 15+ years building high-scale systems...",
          "action_headline": "",
          "video": "https://talkspresso.nyc3.digitaloceanspaces.com/uploads/videos/startupnash/jennifer.mp4"
        },
        "starting_price": 200,
        "pricing_type": "paid",
        "services_count": 1
      }
    ],
    "total": 19
  }
}
Member response fields
FieldWhat it is
id, member_title, member_bioThe membership id, the title shown under the person’s name, and an optional bio (null when not set).
is_featuredTrue when the organization highlights this person.
hide_priceTrue when the organization hides this person’s price on its page.
total_sessionsNumber of sessions completed.
user.id, user.nameThe person’s id and display name.
profile.profile_handleTheir Talkspresso page handle: talkspresso.com/{profile_handle}.
profile.profile_photo, profile.videoPhoto and intro video addresses. video is null when none is set.
profile.category, profile.experience_summary, profile.action_headlineCategory, short experience line and headline from their profile.
starting_price, pricing_typeThe lowest service price in US dollars, and whether the person’s services are paid.
services_countNumber of services the person offers.

An unknown slug returns 200 with an empty list and a total of 0.

Organization endpoints

These need a key. The key’s owner must also be an admin of the organization; a key owned by anyone else gets a 403 on these routes.

Read

Needs the read scope. Replace ORG_ID with the organization’s id, which GET /organization/my returns.

Request
curl https://api.talkspresso.com/organization/my \
  -H "Authorization: Bearer tsp_your_key_here"
Organization read endpoints
Request and what comes backScope
GET /organization/myThe organizations you belong to, with your role in each.read
GET /organization/:idThe organization, limited to the fields listed under "What a key can read" below.read
GET /organization/:id/membersdata.members and data.total. Query: status, featured, limit, offset.read
GET /organization/:id/statstotalMembers, activeMembers, totalSessions, totalRevenue, pendingCommissions, paidCommissions.read
GET /organization/:id/activitydata.rows (start_time, end_time, duration, timezone, consultant, client, service, lifecycle, money), total.read
GET /organization/:id/activity/overviewneeds_you (awaiting_approval, recent_cancellations, consultants_without_a_rate) and coming_up.read
GET /organization/:id/reporting/summarysessionCount and money totals in cents: grossCents, platformFeeCents, paypalFeeCents, netCents, consultantShareCents, orgShareCents.read
GET /organization/:id/payoutsdata.payouts and data.total.read
GET /organization/:id/templatesdata.templates (your lesson templates, inactive ones included) and data.limits (max_templates 50). For partner organizations. The key’s owner must be an owner or admin of the organization.read
GET /organization/:id/templates/:tidOne template, with data.versions: version, title, duration_minutes, price_cents, price_locked and created_at for each version.read
GET /organization/:id/templates/:tid/adopterscount, update_pending_count and adopters (provider_id, adopted_version, update_pending). Only approved coaches who agreed to be listed. No price, email or draft detail.read

Activity and reporting reads answer a key whose owner is not an admin of the organization with 404.

Manage

Needs the org:write scope.

Change the tagline
curl -X PATCH https://api.talkspresso.com/organization/ORG_ID \
  -H "Authorization: Bearer tsp_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"tagline": "Founders helping founders"}'
Invite a member
curl -X POST https://api.talkspresso.com/organization/ORG_ID/invitations \
  -H "Authorization: Bearer tsp_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"email": "coach@example.com", "name": "Alex Coach", "member_title": "Business coach"}'
Organization manage endpoints
Request and what comes backScope
PATCH or PUT /organization/:idThe updated organization (read fields only). A key can change branding and wording fields only, listed below. Any other field in the body refuses the whole request with 400 field_not_allowed_for_keys.org:write
PATCH or PUT /organization/:id/members/:memberIdUpdates a membership, for example {"member_title": "Business coach"}. :memberId is the membership id, not the user id.org:write
DELETE /organization/:id/members/:memberId{"message": "Member removed successfully"}org:write
POST /organization/:id/invitationsBody {"email", "name", "member_title"}. In a partner organization the body can also carry template_ids (up to 10 active templates), message (plain text, up to 500 characters) and send_email, and the answer then carries template_ids and message. Returns the invitation.org:write
POST /organization/:id/templatesBody {"title", "duration_minutes", "price_cents"} and optionally short_description, long_description, capacity_type, intake_questions, price_locked, is_active, currency. 201 with the template at version 1. 409 template_limit_reached at 50 templates. 429 template_write_limit after 60 template writes a day.org:write
PUT or PATCH /organization/:id/templates/:tidAny of the template fields, and optionally expected_version (409 version_conflict when it is not the current version). Returns the template. A change to the title, descriptions, length, price, price_locked, capacity_type or questions makes a new version and an update for each coach who offers it.org:write
DELETE /organization/:id/templates/:tid{"data": {"id", "deleted": true}}. Coaches keep the services they made and the price lock lifts.org:write

Lesson templates

A partner organization can define lessons once and offer them to the coaches it invites. A key reads templates with read and creates, edits and deletes them with org:write. The key’s owner must be an owner or admin of the organization (a manager is refused). A coach offers a lesson, or accepts a change to one, only when signed in. The coach calls below are not open to a key.

Lesson template routes for signed-in coaches
Request and what comes backScope
GET /organization/:id/my-templatesThe lessons the organization offers this coach, with status available or adopted and any update waiting. A key is refused with 403.Signed-in coach only
GET /organization/template-updates/pendingThe updates waiting for this coach, across organizations. A key is refused with 403.Signed-in coach only
POST /organization/:id/templates/:tid/adoptThe coach offers a lesson. It creates an unpublished service for the coach. A key is refused with 403.Signed-in coach only
POST /organization/:id/templates/:tid/apply-updateThe coach accepts the latest version of a lesson. A key is refused with 403.Signed-in coach only

Template calls use the partner error shape, { "error": { "code", "message" } }. The partner guide explains the lesson catalog and readiness.

What a key can change on the organization

A key can change only the branding and wording fields below. Send one or more of them to PATCH /organization/:id. Send null to clear a field.

Organization fields a key can change
FieldWhat it is
logo_url, icon_url, hero_image_url, website_urlAn https address, 255 characters or fewer, with no spaces or quote marks. http addresses are refused.
primary_color, secondary_color, accent_colorA hex color written as # and six characters, for example #032B43. Three-character hex and color names are refused.
tagline, hero_title160 characters or fewer.
hero_subtitle400 characters or fewer.
description2000 characters or fewer.
browse_rowsThe rows on your organization’s public browse page: up to 12, each with a title (1 to 60 characters, plain text) and a match with lists named categories, member_titles and member_ids (up to 25 entries each, and at least one list filled in). A coach is in a row when her id is in member_ids, her member title equals one of the member_titles, or her profile category equals one of the categories. Titles and categories ignore capital letters and must match the whole value. Every member_ids entry must be an approved member. Rows keep your order, and a row with no coaches is not drawn. Send null or [] to clear. An unknown key inside a row is refused.
member_term_singular, member_term_plural, session_term, session_term_plural40 characters or fewer each.
default_category80 characters or fewer.
social_linksAn object with up to 10 entries. Each name must be one of twitter, linkedin, instagram, facebook, youtube or tiktok, and each value an https address.

A key cannot change any of these: name, slug, custom_domain, is_public, is_active, require_member_approval, allow_member_applications, access_password, show_free_label, payments_enabled, noindex, admin_email, support_email, locale, revenue_share_percent, and every fee, payment and partner setting. Someone who signs in to Talkspresso as an organization admin changes those in settings.

If the body names a field a key cannot change, nothing is saved and the response is 400 field_not_allowed_for_keys, with the field names in fields.

Response 400
{
  "error": "field_not_allowed_for_keys",
  "message": "API keys cannot change: require_member_approval",
  "fields": ["require_member_approval"]
}

If a field is allowed but its value breaks the rules above, nothing is saved and the response is 400 invalid_field_value. This example sent {"primary_color": "red"}.

Response 400
{
  "error": "invalid_field_value",
  "message": "Invalid value for: primary_color",
  "fields": ["primary_color"]
}

Members

Members join by invitation: POST /organization/:id/invitations with an email, a name and an optional member_title. A key can update a member (PATCH /organization/:id/members/:memberId) and remove one (DELETE /organization/:id/members/:memberId). A key cannot create or import members directly; Talkspresso creates accounts on request.

What a key can read

GET /organization/:id with a key returns these fields and no others:

id, name, slug, custom_domain, logo_url, icon_url, favicon_url, primary_color, secondary_color, accent_color, tagline, description, hero_image_url, hero_title, hero_subtitle, browse_rows, member_term_singular, member_term_plural, session_term, session_term_plural, locale, is_active, is_public, require_member_approval, allow_member_applications, default_category, show_free_label, payments_enabled, noindex, website_url, social_links, total_members, createdAt, updatedAt

It never returns the page password, payment account details, payee details, fee or revenue columns, or the admin and support email addresses.

Some things are never open to a key: deleting an organization, adding organization admins, impersonating a member, setting revenue shares, changing reporting or the contact email, and creating an organization.

Provider endpoints

A key acts as its owner. These routes work on the owner’s own account: their bookings, clients, services and earnings. Each route needs the scope shown.

read

Endpoints for the read scope
MethodPathScope
GET/user/meread
GET/profile/meread
GET/appointments/meread
GET/appointments/pendingread
GET/appointments/:idread
POST/appointments/slotsread
GET/calendar/meread
GET/client/myread
GET/client/:id/appointmentsread
GET/client/:id/session-historyread
GET/client/:id/activityread
GET/transaction/myread
GET/service/meread
GET/service/:idread
GET/service/:id/bookingsread
GET/product/meread
GET/product/:idread
GET/product/purchasesread
GET/product/analyticsread
GET/promo-coderead
GET/testimonialread
GET/recordingsread
GET/messaging/conversationsread
GET/messaging/conversations/:id/messagesread
GET/payout/earningsread
GET/payout/historyread

bookings:write

Endpoints for the bookings:write scope
MethodPathScope
POST/appointments/invitebookings:write
POST/appointments/:id/approvebookings:write
POST/appointments/:id/declinebookings:write
POST/appointments/:id/cancelbookings:write
POST/appointments/:id/reschedulebookings:write
POST/appointments/:id/resend-invitebookings:write
PUT/calendarbookings:write

catalog:write

Endpoints for the catalog:write scope
MethodPathScope
PUT/profilecatalog:write
POST/servicecatalog:write
PUT/service/:idcatalog:write
DELETE/service/:idcatalog:write
POST/service/:id/duplicatecatalog:write
POST/productcatalog:write
PUT/product/:idcatalog:write
DELETE/product/:idcatalog:write
POST/promo-codecatalog:write
PUT/promo-code/:idcatalog:write
DELETE/promo-code/:idcatalog:write
POST/testimonialcatalog:write

messaging:send

Endpoints for the messaging:send scope
MethodPathScope
POST/messaging/conversations/:id/messagesmessaging:send
POST/testimonial/requestmessaging:send

What comes back

These calls have been run against the API and return 200.

Provider endpoint responses
Request and what comes backScope
GET /user/meThe user record.read
GET /profile/meThe profile.read
GET /service/medata.services (id, title, price, duration, status, slug, is_published, ...) and data.totalCount.read
GET /appointments/medata.appointments, upcoming_sessions, completed_sessions, earned_this_month.read
GET /client/mydata.clients and data.totalCount.read
GET /transaction/mydata.transactions, totalCount, totalPages, page, limit.read
GET /calendar/meAvailability by weekday, timezone, buffers, minimum notice.read
GET /product/medata.products, totalCount, totalPages, page, limit.read
POST /serviceThe new service. title is required.catalog:write
PUT /service/:id{"data": {"message": "Service updated", "service": {...}}}catalog:write
DELETE /service/:id{"data": {"message": "Service deleted", "deleted": true, ...}}catalog:write

The tables above are the most-used routes, not every route. A route that is not offered to keys returns 403 route_not_available_to_api_keys.

Booking emails (partner bookings)

This section is for platforms that book through the partner API, described in the partner guide. An organization chooses who sends the buyer’s booking emails. A partner can ask for a value on one booking with notifications on POST /partner/v1/bookings or POST /partner/v1/checkouts. A request cannot go past the organization’s setting. Two answers are 409: notifications_mode_not_enabled (the organization is not set up for that value) and webhook_endpoint_required (partner without a live endpoint that receives booking.created).

Who sends booking emails
talkspressoTalkspresso sends every booking email, plain, with no organization name.
brandedTalkspresso sends every booking email. On bookings your platform creates, the emails carry your organization’s name and logo, and the sender reads “Your organization via Talkspresso” (the organization part is cut to 24 characters). Replies go to your organization’s support email when one is set.
partnerYour platform sends the buyer’s confirmation and reminders, and any thank-you it wants to send. Talkspresso sends only the emails listed under “Always sent by Talkspresso”.
  • Partner mode needs a live webhook endpoint that receives booking.created. Without one, a request for partner is refused with 409 webhook_endpoint_required. If your endpoint is paused or removed later, Talkspresso goes back to sending the emails itself.
  • Send the confirmation after you receive booking.created. “Delivered” means your endpoint answered with an HTTP 2xx. It does not mean your mailer sent anything.
  • Talkspresso sends no reminders for these bookings, and there is no reminder event. Use the start_time in booking.created to schedule your own.
  • The coach’s calendar invitation is not emailed to the buyer in partner mode either, while your endpoint is live.
  • If booking.created is not delivered and answered with 2xx within 30 minutes (the check runs every 5 minutes, so allow up to 35), Talkspresso sends the buyer’s confirmation itself. If your endpoint answers late, the buyer can get both emails. The buyer always gets one confirmation.
  • A confirmation is never held back when the session starts within 60 minutes. Talkspresso sends it at once. After Talkspresso has sent a booking’s confirmation in this way, it sends that booking’s reminders too.
  • If your organization is set back to talkspresso or branded, Talkspresso sends the emails for every booking from then on, including bookings made earlier.

Always sent by Talkspresso, in every mode:

Emails Talkspresso always sends
CancellationsThe buyer is told when a booking is cancelled, by anyone. A cancel you make through the API sends one notice with your organization’s name, who cancelled, the reason in plain words and the refund.
RefundsAny email about money going back to the buyer.
Moves and feesA booking moved to a new time, and any reschedule fee charged, kept or returned.
Booking approvalA coach approved or declined a booking request. A decline carries the refund.
Links the buyer asked forA new link to change or cancel, and a resent invitation with the join link.
Recording and notes noticesA notice that a session was recorded, or that notes are ready.
Messages from the coachA coach’s own message to the buyer.
Emails to coaches and organization adminsEvery email to a coach or an admin comes from Talkspresso in every mode.

Partner API: groups, products and readiness

These routes are for platforms that book through the partner program. They use a partner key, not the keys above, and the base address is https://api.talkspresso.com/partner/v1. The partner guide describes each one, and every other partner route.

Partner API routes for group sessions, products and readiness
Request and what comes backScope
GET /partner/v1/services/:serviceId/availabilityFor a group session, occurrences with occurrence_id, seats_left and status.partner:read
POST /partner/v1/bookingsSend start_time or occurrence_id, not both. occurrence_id books a seat in a group session.partner:bookings
POST /partner/v1/checkoutsSend start_time or occurrence_id, not both. A paid seat is paid on the Talkspresso payment page.partner:bookings
GET /partner/v1/providers/:id/readinessWhether a coach can be booked, and the codes that say why not.partner:read
GET /partner/v1/productsThe digital products your coaches sell. Empty until Talkspresso enables products for your organization.partner:read
POST /partner/v1/product-checkoutsOpens a checkout for a product. Needs buyer_country US.partner:bookings
GET /partner/v1/product-orders/:idOne product order and its delivery status.partner:read

A group session is booked with occurrence_id instead of start_time. Send one of the two. These routes send the events occurrence.sold_out, checkout.refunded, provider.readiness_changed, product.purchased and product.refunded.

Errors

Errors use the normal HTTP status. These are the ones you will meet first.

Common error responses
StatusMessage or code, and what it means
401Authentication token missingThe request has no Authorization header.
401TOKEN EXPIRED OR INVALIDThe key is wrong, revoked or mistyped.
403This API key is not allowed to do thisThe key is valid, but it does not hold the scope this route needs, or the route is not open to keys. The message says why.
401Invalid or revoked API keyThe key was revoked.
403You don’t have permission to update this organizationThe key has the scope, but its owner is not an admin of this organization. The wording varies by route.
404org_not_foundAn activity or reporting read by a key whose owner is not an admin of the organization.
400A plain-language messageA request the organization routes reject as invalid, such as an unsupported locale or a missing email. error holds the reason, field names the input, and code is invalid_input.
404Community not foundThe organization slug does not exist (public organization endpoint).

For “This API key is not allowed to do this”, the message includes a reason in brackets, for example missing_scope:bookings:write (add that scope to the key) or route_not_available_to_api_keys (no scope opens this route).

Rate limits

Responses include x-ratelimit-total, x-ratelimit-remaining and x-ratelimit-reset headers. Read them and slow down as remaining nears zero. In our tests x-ratelimit-total was 2000. Limits per route are not published yet.

Not available yet

  • Single sign-on for your members
  • Webhooks for these keys (platforms that book through our partner program have them, see the partner guide)
  • Creating an organization (we set it up for you)
  • Your own domain on an organization’s marketplace page

Need one of these or want an organization set up? Email support@talkspresso.com.

Building a platform that books, takes payment and runs video through Talkspresso? Read the partner guide.

Developer kit for partner platforms: the API description (https://api-staging.talkspresso.com/partner/v1/openapi.json, saved copy at /partner/openapi.json), a Postman collection and a sample website are in the developer kit. To get a sandbox key, email support@talkspresso.com. It works on staging only and lasts 14 days.

Using an AI assistant instead of code? See Run Talkspresso from ChatGPT or Claude.

Free to start. No credit card.

API reference | Talkspresso