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.
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.
| Scope | What it allows |
|---|---|
| read | See your bookings, clients, services, products and earnings |
| bookings:write | Create, approve, decline, reschedule and cancel bookings; change your availability |
| catalog:write | Create and edit services, products, promo codes, intake questions, testimonials and your profile |
| clients:write | Edit client records, leads and notifications |
| messaging:send | Send messages and requests to your existing clients |
| org:write | Manage 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
curl https://api.talkspresso.com/organization/public/startupnash{
"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
}
}| Field | What it is |
|---|---|
| id, name, slug | The organization’s id, display name and the slug used in its web address. |
| tagline, description | Short line and longer description, as the organization wrote them. |
| logo_url, icon_url, hero_image_url | Image addresses. hero_image_url is an empty string when none is set. |
| hero_title, hero_subtitle | Headline and sub-headline for the organization’s marketplace page. |
| primary_color, secondary_color, accent_color | Brand colors as hex values. |
| member_term_singular, member_term_plural | What the organization calls its people, for example Coach and Coaches. |
| session_term, session_term_plural | What the organization calls a booking, for example Session and Sessions. |
| locale | Language code of the page, for example en. |
| website_url, social_links | The organization’s own site and its twitter, linkedin and instagram links (null when not set). |
| browse_rows | The 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_members | Number of members. |
| stripe_test_mode, show_free_label, term_plural_gaps | Display and test-mode settings for the marketplace page. |
| payments_enabled | True when members can take paid bookings. |
| noindex | True when the marketplace page asks search engines not to list it. |
| is_password_protected | True 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.
curl "https://api.talkspresso.com/organization/public/startupnash/members?limit=1"{
"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
}
}| Field | What it is |
|---|---|
| id, member_title, member_bio | The membership id, the title shown under the person’s name, and an optional bio (null when not set). |
| is_featured | True when the organization highlights this person. |
| hide_price | True when the organization hides this person’s price on its page. |
| total_sessions | Number of sessions completed. |
| user.id, user.name | The person’s id and display name. |
| profile.profile_handle | Their Talkspresso page handle: talkspresso.com/{profile_handle}. |
| profile.profile_photo, profile.video | Photo and intro video addresses. video is null when none is set. |
| profile.category, profile.experience_summary, profile.action_headline | Category, short experience line and headline from their profile. |
| starting_price, pricing_type | The lowest service price in US dollars, and whether the person’s services are paid. |
| services_count | Number 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.
curl https://api.talkspresso.com/organization/my \
-H "Authorization: Bearer tsp_your_key_here"| Request and what comes back | Scope |
|---|---|
| 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.
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"}'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"}'| Request and what comes back | Scope |
|---|---|
| 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.
| Request and what comes back | Scope |
|---|---|
| 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.
| Field | What it is |
|---|---|
| logo_url, icon_url, hero_image_url, website_url | An https address, 255 characters or fewer, with no spaces or quote marks. http addresses are refused. |
| primary_color, secondary_color, accent_color | A hex color written as # and six characters, for example #032B43. Three-character hex and color names are refused. |
| tagline, hero_title | 160 characters or fewer. |
| hero_subtitle | 400 characters or fewer. |
| description | 2000 characters or fewer. |
| browse_rows | The 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_plural | 40 characters or fewer each. |
| default_category | 80 characters or fewer. |
| social_links | An 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.
{
"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"}.
{
"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
| Method | Path | Scope |
|---|---|---|
| GET | /user/me | read |
| GET | /profile/me | read |
| GET | /appointments/me | read |
| GET | /appointments/pending | read |
| GET | /appointments/:id | read |
| POST | /appointments/slots | read |
| GET | /calendar/me | read |
| GET | /client/my | read |
| GET | /client/:id/appointments | read |
| GET | /client/:id/session-history | read |
| GET | /client/:id/activity | read |
| GET | /transaction/my | read |
| GET | /service/me | read |
| GET | /service/:id | read |
| GET | /service/:id/bookings | read |
| GET | /product/me | read |
| GET | /product/:id | read |
| GET | /product/purchases | read |
| GET | /product/analytics | read |
| GET | /promo-code | read |
| GET | /testimonial | read |
| GET | /recordings | read |
| GET | /messaging/conversations | read |
| GET | /messaging/conversations/:id/messages | read |
| GET | /payout/earnings | read |
| GET | /payout/history | read |
bookings:write
| Method | Path | Scope |
|---|---|---|
| POST | /appointments/invite | bookings:write |
| POST | /appointments/:id/approve | bookings:write |
| POST | /appointments/:id/decline | bookings:write |
| POST | /appointments/:id/cancel | bookings:write |
| POST | /appointments/:id/reschedule | bookings:write |
| POST | /appointments/:id/resend-invite | bookings:write |
| PUT | /calendar | bookings:write |
catalog:write
| Method | Path | Scope |
|---|---|---|
| PUT | /profile | catalog:write |
| POST | /service | catalog:write |
| PUT | /service/:id | catalog:write |
| DELETE | /service/:id | catalog:write |
| POST | /service/:id/duplicate | catalog:write |
| POST | /product | catalog:write |
| PUT | /product/:id | catalog:write |
| DELETE | /product/:id | catalog:write |
| POST | /promo-code | catalog:write |
| PUT | /promo-code/:id | catalog:write |
| DELETE | /promo-code/:id | catalog:write |
| POST | /testimonial | catalog:write |
messaging:send
| Method | Path | Scope |
|---|---|---|
| POST | /messaging/conversations/:id/messages | messaging:send |
| POST | /testimonial/request | messaging:send |
What comes back
These calls have been run against the API and return 200.
| Request and what comes back | Scope |
|---|---|
| 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).
| Setting | What happens |
|---|---|
| talkspresso | Talkspresso sends every booking email, plain, with no organization name. |
| branded | Talkspresso 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. |
| partner | Your 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:
| What it is | |
|---|---|
| Cancellations | The 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. |
| Refunds | Any email about money going back to the buyer. |
| Moves and fees | A booking moved to a new time, and any reschedule fee charged, kept or returned. |
| Booking approval | A coach approved or declined a booking request. A decline carries the refund. |
| Links the buyer asked for | A new link to change or cancel, and a resent invitation with the join link. |
| Recording and notes notices | A notice that a session was recorded, or that notes are ready. |
| Messages from the coach | A coach’s own message to the buyer. |
| Emails to coaches and organization admins | Every 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.
| Request and what comes back | Scope |
|---|---|
| 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.
| Status | Message or code, and what it means |
|---|---|
| 401 | Authentication token missingThe request has no Authorization header. |
| 401 | TOKEN EXPIRED OR INVALIDThe key is wrong, revoked or mistyped. |
| 403 | This 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. |
| 401 | Invalid or revoked API keyThe key was revoked. |
| 403 | You 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. |
| 404 | org_not_foundAn activity or reporting read by a key whose owner is not an admin of the organization. |
| 400 | A 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. |
| 404 | Community 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.