Booking tools
On this page
- talemo_activate_resource
- talemo_activate_service
- talemo_add_schedule_time
- talemo_add_service_fit
- talemo_apply_usual_schedule
- talemo_book_visit
- talemo_cancel_visit
- talemo_complete_visit
- talemo_confirm_visit
- talemo_create_level
- talemo_create_resource
- talemo_create_rule
- talemo_create_service
- talemo_create_service_group
- talemo_deactivate_resource
- talemo_deactivate_service
- talemo_delete_level
- talemo_delete_resource
- talemo_delete_service
- talemo_delete_service_group
- talemo_delete_visit
- talemo_find_times
- talemo_get_any_master
- talemo_get_booking_rules
- talemo_get_branch_page
- talemo_get_calendar
- talemo_get_resource_history
- talemo_get_rule
- talemo_get_schedule
- talemo_get_visit
- talemo_list_levels
- talemo_list_resources
- talemo_list_rule_firings
- talemo_list_rules
- talemo_list_schedules
- talemo_list_service_groups
- talemo_list_services
- talemo_list_visits
- talemo_move_visit
- talemo_record_walk_in
- talemo_remove_schedule_time
- talemo_remove_service_fit
- talemo_set_booking_rules
- talemo_set_branch_page
- talemo_set_level_prices
- talemo_set_resource_level
- talemo_set_schedule_day
- talemo_set_service_languages
- talemo_set_usual_schedule
- talemo_update_level
- talemo_update_resource
- talemo_update_rule
- talemo_update_service
- talemo_update_service_group
- talemo_update_visit
Most tools take business_id: the business the call is for. talemo_list_businesses names the businesses this connection works in. A tool that changes something also takes dry_run; with it nothing changes, and the answer shows what the change would be, or the refusal it would get.
talemo_activate_resource
Bring a specialist, place or device back to work
Activate a deactivated resource: time can be booked on it again. One person is one resource in work in a branch: if the team member of this resource already works as another one there, it is refused with status 409, code record.duplicate, params.field user_id. Activating a resource in work returns it as it is.
Guide: booking/resources.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the resource as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources with deactivated lists the deactivated ones. |
Described in: Resources — masters, places, devices
talemo_activate_service
Put a service back on the price list
Activate a deactivated service: it is back in the price list with its roles and who does it. If the price list already has a service with the same name, it is refused with status 409, code record.duplicate, params.field name. Activating a service in the price list returns it as it is.
Guide: booking/services-and-prices.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the service as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
service_id | string | required | Service ID: talemo_list_services with deactivated lists the deactivated ones. |
Described in: Services, prices and currency
talemo_add_schedule_time
Add open or busy time
Add a time to the schedule of a resource: open time for bookings, or busy time without a booking with a note. Open time merges with open time it touches, busy time with busy time of the same note; the same time twice changes nothing. Busy time over busy time with another note: status 409, code schedule.overlap. Busy time over bookings: status 409, code schedule.has_bookings.
Guide: booking/resource-schedule.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
day | string | optional | The day the time belongs to, like 2026-11-25: the day it starts on, or the day before for the night after a shift. Left out — the day it starts on. |
dry_run | boolean | optional | True — change nothing and answer the day as it would be. |
end | string | required | End in RFC 3339; half-open, at most a day after the start. |
kind | string | required | open — open for bookings; busy — blocked without a booking. |
note | string | optional | Note of busy time, 1 to 60 characters, like "lunch". |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
start | string | required | Start in RFC 3339, for example 2026-11-26T09:00:00Z. |
Described in: A laser hair removal salon, Schedule of a resource
talemo_add_service_fit
Mark who does a service
Mark that a resource can do a service — a specialist who learned it, or only this room for it. The resource must be in the branch of the service and have a role the service takes; otherwise status 422, code service.resource_unfit with params.role. Marking it again returns the service as it is.
Guide: booking/who-does-what.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the service as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID of a specialist, place or device of the same branch: talemo_list_resources lists them. |
service_id | string | required | Service ID: talemo_list_services lists them. |
Described in: A laser hair removal salon, Onboarding a new business, Who does what
talemo_apply_usual_schedule
Set how far ahead a schedule goes
Move the last day of the schedule of a resource: later lays the usual cycle out up to it, earlier takes the cycle days after it away; days changed by hand stay. At most a year ahead. Without a usual cycle: status 409, code schedule.no_cycle. Bookings that would fall outside open time: status 409, code schedule.has_bookings — dry_run shows them. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/resource-schedule.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and tell what would change. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
until | string | required | New last day of the schedule, like 2027-02-28: later — the usual cycle is laid out up to it; earlier — the cycle days after it go. Today or later, at most a year ahead. |
Described in: A laser hair removal salon, Onboarding a new business, Schedule of a resource
talemo_book_visit
Book a visit
Book a visit at a start found by talemo_find_times. The product checks it again with the same matching: time taken meanwhile is refused with status 409, code slot.overlap; time outside the open time of a resource with visit.outside_schedule and params.resource_id; a start in the past with visit.past; a start off the step with request.body_invalid, params.field start; a resource that does not do the services with status 422, code visit.resource_unfit. A contact from the unsorted category becomes a client. When: the client or the person agreed to a start that talemo_find_times returned. How: branch_id, service_ids and start, with the resource_ids of that variant; for a variant with legs, branch_id, start and legs. Next: say the visit is booked only after the answer succeeded and it was not a dry run; the answer is the first visit with visits, every visit that was booked in order, so tell the client each of them; a refusal books nothing — offer another start from talemo_find_times. Field price: the prices the client was told, taken from the variant you book (price of each entry of services), in the order of service_ids. Book with the price of that variant, never with one you worked out yourself. If the price of the specialist changed after the variant was found, nothing is booked: status 409, code visit.price_changed, params.service_id of the first service that differs and params.price, its price now — tell the client the new price, find the times again and book only if they agree. level_id books with the specialists of a level when no specialist is in resource_ids; the rule of the branch picks the specialist inside the level. Field legs: books a variant of talemo_find_times that has legs — several visits one right after another, each at its own specialist. One entry of legs is one leg of the variant as the search gave it, in the same order, with its service_ids, resource_ids and price; start is the start of the variant, and the other legs start where the work of the previous one ends. Each leg is a visit of its own. All the legs are booked in one step or none: a leg that does not fit is refused with its own code (slot.overlap, visit.outside_schedule, visit.price_changed and the like) and params.leg, its number from 1, and not even the legs before it are booked — find the times again for all the services and offer others. Never book the legs one by one with separate calls. Field new_party: names a client who is not a contact yet — the name and the number — instead of party_id: the product looks for a contact with that number among phones and WhatsApp numbers and books it, a contact found keeps its own name; none found — the product adds the contact and books it in the same step. The answer of a real booking says party_match: found or created; dry_run does not look the number up and shows a new contact with the name given. Adding a contact needs the right to add contacts: without it status 403, code role.forbidden with params.capability party.create — tell the person they have no right to add clients and can pick one from their contacts or ask the owner for this right; a role that closes the phone field gets role.field_forbidden. party_id and new_party together, or neither, is request.body_invalid. A number added this way is not confirmed: it becomes confirmed only when the client writes from it in WhatsApp or Instagram, and nobody confirms it by hand. Field extend_schedule: true opens the time of the visit in the day of a specialist, place or device named in resource_ids when the start is outside its open time — a day off, hours beyond its shift, a resource with no schedule — and books the visit in the same step. The answer names what it opened in opened: resource_id, name, kind (day_off, outside_shift or no_schedule), start and end, and for outside_shift the shift it stood in. Only the time of the visit opens: busy time such as a lunch stays closed, and so does the time of a resource that is not named. Pass it only after the person said yes to opening that time; without it the booking is refused with visit.outside_schedule. It needs the right to edit schedules: without it status 403, code role.forbidden with params.capability schedule.edit. asks of the answer lists what the person is to hear first: opens_time — the call opens time of a resource; client_message — Talemo writes to the client at once that the visit is booked. A call with dry_run shows opened and asks and books nothing. Staff: after the call tell the person whether Talemo writes to the client now, from client_hears of the answer: one entry for each message the booking made due now, with its kind. goes true — Talemo writes it at once: say the client gets the confirmation of the visit. goes false — it does not: say why in plain words from reason (the codes of reason of a notice; opt_out names who turned the messages off, and never name anyone it does not) and that the person tells the client themselves, with talemo_send_message or a call; for no_confirmed_contact, opted_out_word and opted_out_person the reminder does not come either. An empty list — no rule made a notice due now, and the list names no cause of its own: say the client gets no message about the booking because the rules do not send this message right now, and that the person tells the client themselves; never take the cause from expected_skip of another notice, the reminder's included. Say the client is told, will be told or gets a message only for an entry that goes, and never say the message was delivered: goes is what Talemo decided now, not delivery, and talemo_get_visit shows what became of it in notices. Say a reminder comes only from notices of the answer: a reminder waiting without expected_skip; expected_skip explains that reminder alone. A preview of the call shows the decision as of the preview; the real call decides again. An answer with no client_hears promises the client nothing: a preview of a booking with new_party has none, because it does not look the number up and does not know which client the real call lands on, so say nothing about whether the client hears from it and read it from the real call. Staff: a member of the business records a past visit with talemo_record_walk_in.
Guide: booking/visits.
- Changes data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the visit: branch_id of the conversation (talemo_get_conversation). Staff: without a conversation, talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — book nothing and answer the visit as it would be, or the refusal it would get. |
extend_schedule | boolean | optional | True — if the start is outside the open time of a resource named in resource_ids, open the time of the visit in the day of that resource and book in the same step. Only after the person said yes to it. |
legs | array of object | optional | The legs of a variant of talemo_find_times that has legs: two to four visits one right after another, each at its own specialist, in the order of the variant. One entry is one leg of the variant exactly as the search gave it. All the legs are booked in one step or none. Not together with service_ids, resource_ids or price: they are the way to book a variant that has no legs. |
legs[].price | array of string | optional | The prices the client was told for the services of the leg, in the order of its service_ids: the price of this leg, decimals in the currency of the branch like "35.00"; null for a service with no price. Pass it when the leg has prices. Left out — the leg is booked at the price of its specialist, with no check. |
legs[].resource_ids | array of string | optional | Resource IDs of the leg: the resource_ids of this leg, its specialist and the place or device of each service; one left out is filled by the matching. |
legs[].service_ids | array of string | required | Service IDs of the leg in order, 1 to 20, each once and in no other leg: the service_ids of this leg. |
level_id | string | optional | Level ID of the specialists to book with when no specialist is in resource_ids: the level_id of a specialist in fits of talemo_list_services, or none for the specialists with no level; the rule of the branch picks the specialist inside the level. A specialist named in resource_ids beats the level. Left out — any specialist. |
new_party | object | optional | A client who is not a contact yet: the name and the number. The product finds the contact by the number among phones and WhatsApp numbers, or adds one with this name. Not together with party_id. |
new_party.name | string | required | Name as the business calls the person, 1 to 120 characters. A contact already found by the number keeps its own name. |
new_party.phone | object | required | The number of the client: the contact is looked for by it. |
new_party.phone.address | string | required | The number as the person said it: +49 176 2041 1380, or a local number like 8 916 204-18-21 together with country. |
new_party.phone.country | string | optional | ISO 3166-1 alpha-2 country of a number without + or 00, like RU or DE. If you do not know it, ask the person: the time zone of the branch does not tell. |
party_id | string | optional | Contact ID of the client: talemo_find_contacts finds them. Name the client by this or by new_party, one of the two. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | array of string | optional | The prices the client was told, in the order of service_ids: the price of each entry of services in the variant of talemo_find_times that you book, decimals in the currency of the branch like "35.00"; null for a service with no price. Pass it when the variant has prices. Left out — the visit is booked at the price of its specialist, with no check. With legs it stays out: each leg has its own. |
resource_ids | array of string | optional | Resource IDs of the variant: its specialist and the place or device of each service; one left out is filled by the matching. Take them from the variant of talemo_find_times that you book: the resource_id of each entry of its resources. With legs it stays out: each leg has its own. |
service_ids | array of string | optional | Service IDs of the visit in order, 1 to 20, each once. The service_id values (UUIDs) that talemo_list_services lists — not a service name. Required unless legs is passed; with legs it stays out. |
start | string | required | Start of a variant of talemo_find_times, RFC 3339: ahead and on the step of the branch. For a variant with legs it is the start of the variant, that is of its first leg: the other legs start by themselves, where the work of the previous one ends. |
Described in: A laser hair removal salon, Visits and their statuses
talemo_cancel_visit
Cancel a visit
Cancel a visit with a reason; its time is free again. The client who did not come is cancelled with no_show. A cancelled visit comes back as it is; one that took place is refused with status 409, code visit.done. When: the person asks to cancel a visit, or the client did not come; when party_live_visits of the visit is above 1 and the person did not say which one, ask which first, as talemo_list_visits says. How: visit_id from talemo_list_visits and a reason. Field tell_client: whether Talemo writes to the client that the visit is cancelled. true — it does, the way it writes a reminder: a text in the open window of the channel, a WhatsApp template outside it, and nothing outside the window of Instagram or Messenger. false — it writes nothing, because the person said not to write to the client or that they will tell the client themselves. Required: when the person only asks to cancel and says nothing about the client, pass true. no_show takes only false, and a visit that has already begun is never written to. Next: do not write the cancellation to the client yourself: Talemo writes it when it has where to write. The cancellation of the online admin is written after its turn, unless its reply to the client already said so. A call with dry_run shows the notice in notices: one with expected_skip will not go, and expected_skip says why; when the client opted out, its opt_out says who turned the messages off. Staff: after the call tell the person whether Talemo writes to the client now, from client_hears of the answer: one entry for each message the call made due now, with its kind. cancellation is the cancellation word: goes true — Talemo writes it, say so; goes false — it does not, say why in plain words from reason (opt_out names who turned the messages off, and never name anyone it does not). Any other kind (missed, again) is the message of a rule of the branch about a closed visit, which a client who did not come (no_show) can raise: say what it is, and never call it the cancellation. An empty list — no rule made a notice due now, and the list names no cause of its own: say the client gets no message about the cancellation. When tell_client was false the cause is the person's own word: they said not to write. Otherwise the cause is that the rules do not send it right now, and the person tells the client themselves; never take the cause from expected_skip of another notice, the reminder's included. goes is what Talemo decided now, not delivery. A client who is not told is for the person to write to with talemo_send_message or to ring.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — cancel nothing and answer the visit as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
reason | string | required | Why: client_asked, staff_unavailable, no_show — the client did not come — or other. Ask the person when it is not clear. |
tell_client | boolean | optional | Whether Talemo writes to the client that the visit is cancelled: true or false. True unless the person said not to write to the client or that they will tell the client themselves. The call without it is refused (params.field is tell_client); no_show takes only false. |
visit_id | string | required | Visit ID: talemo_list_visits lists them. |
Described in: Moving and canceling visits
talemo_complete_visit
Mark a visit done
Record that a visit took place: when it really was, who did it, the services and prices. What is left out stays as booked. The real time is the specialist's: a place and a device keep the time they were booked for. A service added now takes the place of the neighbouring service unless service_resources names another. The record replaces the plan; a done visit is corrected the same way. It ends no later than now: otherwise status 409, code visit.future. Time outside the open time of a resource is refused with visit.outside_schedule unless extend_schedule opens it; a cancelled visit with visit.cancelled.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — record nothing and answer the visit as it would be. |
end | string | optional | When it really ended, no later than now. Left out — the start plus the booked length. |
extend_schedule | boolean | optional | True — if the time is outside the open time of a resource, open it in the day of the resource. Tell the person before doing it. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | array of string | optional | Prices of the services in order, as decimals in the currency of the visit; null — no price. Left out — the booked prices. |
resource_ids | array of string | optional | Who really did it — the specialist, and a place or device for each service it fits; the others stay as booked. |
service_ids | array of string | optional | Service IDs really done, in order. Left out — the booked ones. |
service_resources | array of object | optional | Which place or device did which service, as pairs of a service ID and a resource ID — "table 2 for the manicure, table 1 for the design". A place named for a booked service takes the stretch it was booked for; a pair beats the list in resource_ids for its service. Not for the specialist: the specialist is one for the whole visit, named in resource_ids. A resource that does not fit its service is refused with visit.resource_unfit. |
service_resources[].resource_id | string | required | Resource ID of the place or device that did this service. It has to fit the service, otherwise visit.resource_unfit with params.role and params.resource_id. |
service_resources[].service_id | string | required | Service ID: one of the service_ids of the visit. |
start | string | optional | When it really started, RFC 3339. Left out — as booked. |
visit_id | string | required | Visit ID: talemo_list_visits and talemo_get_calendar list them. |
Described in: Moving and canceling visits
talemo_confirm_visit
Mark a visit confirmed
Mark that a person confirmed a booked visit. A confirmed visit comes back as it is; a cancelled one is refused with status 409, code visit.cancelled, one that took place with visit.done.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- The same call twice gives the same result
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the visit as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
visit_id | string | required | Visit ID: talemo_list_visits and talemo_get_calendar list them. |
Described in: Moving and canceling visits
talemo_create_level
Add a level of specialists
Add a level of specialists to the business: a name over several specialists, like "Top specialist", at a place among the levels (the last if none is asked), and the specialists that stand on it at once — so "make the level Top specialist and put Anna on it" is one call. A specialist who stood on another level moves. The answer names the level, the level before it (after) and for each specialist that moved the level the specialist came from (moved). A name already in the business, whatever the case, is refused with status 409, code record.duplicate, params.field name; a specialist who is not in the business, with record.reference_missing, params.field resource_ids; a place or a device, with level.master_only. Prices for the level are set with A level is the same in every branch, so only a role of the whole business adds one: a role limited to some branches is refused with status 403, code role.forbidden. talemo_set_level_prices. Show the person the dry_run first when specialists move.
Guide: booking/master-levels.
- Changes data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — add nothing and answer the level as it would be, with the specialists that would move in and the levels they come from. |
name | string | required | Name as the business calls it, in the first language the business serves, 1 to 60 characters, like "Top master". One name once in a business, whatever the case. |
name_tr | object with string values | optional | Translations of the name by language the business serves, the first one excluded, the whole map: {"en": "Top master"}, 1 to 60 characters each. Left out — none. |
position | integer | optional | Place among the levels of the business, from 0 (the first, the lowest). A place past the end, or left out — the last. The levels from that place on move down by one. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_ids | array of string | optional | Resource IDs of specialists in work that stand on the level at once: talemo_list_resources lists them. A specialist who stood on another level moves. A place or a device is refused with level.master_only. Left out — the level is made empty. |
Described in: Levels of masters
talemo_create_resource
Add a specialist, place or device
Add a resource to a branch: a specialist, a place or a device, with its role from the industry kit. A team member can be linked only to a specialist, and one person is one resource in work in a branch: a second one is refused with record.duplicate.
Guide: booking/resources.
- Changes data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the resource: talemo_get_business lists the branches. A resource never moves to another branch. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — add nothing and answer the resource as it would be. |
name | string | required | Name as the business calls it, 1 to 200 characters: a person's name, "Chair 2", "Lamp Sun5". |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
role | string | required | Role declared by the industry kit: specialist (a person), place (a chair, table, couch or room) or device (equipment). talemo_list_kits lists them. |
user_id | string | optional | User ID of the person of the team who is this specialist — only for a specialist. Left out — nobody from the team. Set it to the user_id of the person you help (from the note "The person you help is …") only when they said in this conversation that they do the work themselves ("I work alone", "I'm the master", "the specialist is me"). They did not say it and the business has no specialist yet — do not create a specialist on them: ask once in your answer whether they work with clients themselves, and wait for the answer. Never set it for anyone else. A specialist's name that matches the name of the person you help is not their answer: ask whether that specialist is them, like "Anna — is that you?", and wait. |
Described in: A laser hair removal salon, Onboarding a new business, Resources — masters, places, devices
talemo_create_rule
Add a rule to a branch
Add a rule to a branch: when something happens to a visit (event), for which visits (conditions) and what Talemo writes to the client (action). event is before_start with hours, 1 to 72, or visit with is, created and moved. conditions name service IDs, group IDs and specialist IDs of this branch, at most 50 of each; a list left out means any, and the lists together mean all of them. action is write_to_client with the message that goes with the event: visit_confirmation with created and moved, visit_reminder with before_start, visit_missed with visit closed or after_visit, and visit_again with after_visit; the words are those of the template of that message, a rule has none of its own. after_visit has days, 1 to 365, and looks at the visits the team has closed: visit_missed writes to a client who did not come (conditions.closed_as no_show is required) and offers another time, and is a service message, one for a missed visit; visit_again invites a client who came (closed_as done is required) to come again, and it goes only to a client whose contact shows marketing_consent — consent to invitations and offers, marked with talemo_set_marketing_consent — at most one invitation or offer in 30 days from all the rules together, and conditions.no_later_visit is required, so that a client who has booked again is not invited. The cancellation notice is built in and always on, so a rule with visit_cancellation is refused; the message that a visit was moved, visit_moved, is written by the confirmation rule itself after a move, so a rule with it is refused too (params.field action). The rule works at once: one with before_start takes the visits already booked whose hour has not come, one with visit acts on what happens from now on, one with after_visit takes the closed visits whose day has not come yet. It runs with the rights of the person who made it and pauses if that person leaves the business or loses the right to change the branch. The answer has the rule and its forecast, as talemo_get_rule. The rule writes to clients by itself from then on, so add it only when the person asked for it, and first show with dry_run what it would do: the answer has the same forecast as the real call. A combination the vocabulary does not have is refused with status 400, code request.body_invalid and params.field event, action or conditions; a service, group or specialist that does not fit with status 422, code record.reference_missing, params.field conditions.services, conditions.groups or conditions.masters and params.reason: not_found (no such one, or not visible to the role), not_in_branch (it is in another branch) or other_kind (a place or a device named as a specialist); a closed branch with status 409 and code branch.closed; a role without the right to change the branch, with status 403 and code role.forbidden.
Guide: booking/rules.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
action | object | required | What the rule writes to the client. |
action.do | string | required | What the rule does: write_to_client — writes to the client of the visit. |
action.message | string | required | The message, which goes with the event: visit_confirmation with created and moved, visit_reminder with before_start, visit_missed (the client did not come; offers another time) with visit closed or after_visit and closed_as no_show, visit_again (an invitation to come again) with after_visit, closed_as done and no_later_visit. visit_cancellation is the built-in cancellation notice, always on: a rule with it is refused. visit_moved is the message that a visit was moved: the confirmation rule writes it by itself after a move, so a rule with it is refused too (params.field action). The words of a message are those of its template; a rule has none of its own. |
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
conditions | object | optional | For which visits. Left out — for any. |
conditions.closed_as | string | optional | How the visit was closed: done — the client came, no_show — the client did not come. Only with visit closed or with after_visit, and the message decides it: visit_missed needs no_show, visit_again needs done. |
conditions.groups | array of string | optional | Service group IDs, at most 50: only visits with a service of one of these groups. talemo_list_service_groups lists them. Left out — any group. |
conditions.masters | array of string | optional | Resource IDs of specialists, at most 50: only visits of one of these specialists. talemo_list_resources lists them. Left out — any specialist. |
conditions.no_later_visit | string | optional | Only for a client who has no later visit than this one, booked or taken place: any — no visit at all, same_service — none with the same service, same_group — none with a service of the same group. Only with visit closed or with after_visit; visit_again needs it, so that a client who has booked again is not invited. |
conditions.services | array of string | optional | Service IDs, at most 50: only visits with one of these services. talemo_list_services lists them. Left out — any service. |
dry_run | boolean | optional | True — change nothing and answer the rule as it would be, with its forecast, to tell the person first. |
event | object | required | When the rule fires. |
event.days | integer | optional | With after_visit: how many days after the visit, 1 to 365. The visit is counted from the end of its time, once the team has closed it. |
event.hours | integer | optional | With before_start: how many hours before the start of the visit, 1 to 72; 24 is the day before. |
event.is | array of string | optional | With visit: what happens to the visit — one or more of created (it is booked) and moved, each once, or closed alone (the team closed it after its time: the client came or did not come, conditions.closed_as says which). cancelled goes only with the built-in cancellation notice, which has no rule of words. |
event.on | string | required | When the rule fires: before_start — some hours before a visit starts, visit — something happens to a visit, after_visit — some days after a visit the team has closed. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Rules — what Talemo writes to clients, and when
talemo_create_service
Add a service
Add a service to the price list of a branch: its name and description in the first language the business serves, their translations, how long it takes, its price, the roles of the kit it takes and, if it should stand in a group of the price list, group_id. Places and devices of these roles in the branch can do it at once; a specialist does it only once marked with talemo_add_service_fit. A place is required by the service by itself once a place of the branch has a schedule: until then a place in the roles is not recorded — the answer names the roles recorded — and a place is not to be added to the branch for the sake of a service. level_prices gives the price of the service for a level of specialists (talemo_list_levels). A price needs the currency of the branch first: without it the call is refused with status 409, code service.currency_required — set it with talemo_update_branch. A name already in the price list is refused with record.duplicate; a translation does not take a name, and a translation of a description that is not there is refused with request.body_invalid.
Guide: booking/services-and-prices.
- Changes data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the service: each branch has its own price list. talemo_get_business lists the branches. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
description | string | optional | What the service is, in the first language the business serves, 1 to 1000 characters. Left out — no description. |
description_tr | object with string values | optional | Translations of the description, in the same form, 1 to 1000 characters each. There is no translation of a description that is not there. Left out — none. |
dry_run | boolean | optional | True — add nothing and answer the service as it would be. |
duration_minutes | integer | required | How long the work takes the specialist and the resources, in minutes: 5 to 600 in steps of 5. The cleanup after a visit is not part of it: it is in the booking rules of the branch. |
group_id | string | optional | Group of the price list the service stands in, of the same branch: talemo_list_service_groups lists them. Left out — no group. |
level_prices | array of object | optional | Prices for the levels of specialists, like the price of a top specialist: one entry per level, in the currency of the branch like price. talemo_list_levels lists the levels. A level left out takes price. Left out — no level has its own price. |
level_prices[].level_id | string | required | Level ID: talemo_list_levels lists them. |
level_prices[].price | string | required | Price for the level in the currency of the branch as a decimal, like "45" or "45.50". An empty string takes the price of the level away: the level takes the usual price of the service. |
name | string | required | Name as the business calls it, in the first language the business serves, 1 to 120 characters. |
name_tr | object with string values | optional | Translations of the name by language the business serves, the first one excluded, the whole map: {"en": "Gel manicure"}, 1 to 120 characters each. Left out — none. |
needs | array of string | required | Roles of the industry kit the service takes while it is done — master, place, device; at least one. A place is recorded only once a place of the branch has a schedule: the answer names the roles recorded. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | string | optional | Price in the currency of the branch as a decimal, like "2600" or "2600.50", with no more digits after the point than the currency has. Left out — no price. |
Described in: A laser hair removal salon, Levels of masters, Onboarding a new business, Service groups, Services, prices and currency
talemo_create_service_group
Add a service group
Add a group to the price list of a branch: a name over several services, like "Manicure", at a place among the groups (the last if none is asked), and the services that move into it at once — so "make the group Design and put these services there" is one call. The answer names the group, the group before it (after) and for each service that moved the group it came from (moved). A name already in the branch, whatever the case, is refused with status 409, code record.duplicate, params.field name; a service that is not in the branch, with record.reference_missing, params.field service_ids. Show the person the dry_run first when services move.
Guide: booking/service-groups.
- Changes data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the group: each branch has its own price list and its own groups. talemo_get_business lists the branches. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — add nothing and answer the group as it would be, with the services that would move in and the groups they come from. |
name | string | required | Name as the business calls it, in the first language the business serves, 1 to 60 characters, like "Manicure". One name once in a branch, whatever the case. |
position | integer | optional | Place among the groups of the branch, from 0 (the first). A place past the end, or left out — the last. The groups from that place on move down by one. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
service_ids | array of string | optional | Service IDs of the same branch that move into the group at once, those of the price list and deactivated ones: talemo_list_services lists them. A service that stood in another group leaves it. Left out — the group is made empty. |
Described in: Service groups
talemo_deactivate_resource
Deactivate a specialist, place or device
Deactivate a resource: it stays with its past, no time after this can be booked on it (resource.deactivated), and it can be activated again. Its schedule ahead goes, up to a year; only laying the usual cycle out again brings it back, and days changed by hand are lost. A resource with bookings ahead is not deactivated: status 409, code resource.has_bookings, params.count — move or cancel them first. With dry_run nothing changes, the bookings ahead are listed and days_ahead tells how many days of the schedule would go. Deactivating a deactivated resource returns it as it is. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/resources.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and list the bookings ahead on the resource, to tell the person before deactivating it. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
Described in: Resources — masters, places, devices
talemo_deactivate_service
Take a service off the price list
Deactivate a service: it leaves the price list and booking, what is already booked stays with its price, and it can be activated again. A deactivated service is not changed until activated: status 409, code service.deactivated. With dry_run nothing changes. Deactivating a deactivated service returns it as it is.
Guide: booking/services-and-prices.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what would happen, to tell the person first. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
service_id | string | required | Service ID: talemo_list_services lists them. |
Described in: Services, prices and currency
talemo_delete_level
Delete a level of specialists
Delete a level of specialists: the specialists on it stay without a level, the prices of services for the level go with it — the specialists then take the usual price of the service — and the levels after it move up to close the gap. The answer has the level as it was, the IDs of the specialists that stood on it, deactivated ones too, how many prices went (prices) and for how many services (services). Only a role of the whole business deletes a level, as it takes the prices of every branch with it: a role limited to some branches is refused with status 403, code role.forbidden. Show the person the dry_run first: it says how many specialists lose the level and how many prices go.
Guide: booking/master-levels.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what would happen, to tell the person first. |
level_id | string | required | Level ID: talemo_list_levels lists them. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Levels of masters
talemo_delete_resource
Delete a specialist, place or device
Delete a resource added by mistake — only one on which time was never booked. A resource with bookings, past or ahead, is not deleted: status 409, code resource.has_history, params.count — past visits keep their specialist or place, so deactivate it instead. A rule that names the resource as its specialist is paused, not widened (pause reason condition_gone); the answer's rules lists those rules. With dry_run nothing changes and the answer tells how many bookings it has had and which rules would pause. A deleted resource is gone: a second call is refused with not_found. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/resources.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and tell how many bookings the resource has had, to tell the person before deleting it. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
Described in: Resources — masters, places, devices
talemo_delete_service
Delete a service
Delete a service added by mistake — only one that was never booked. A booked service is not deleted: status 409, code service.has_history, params.count — deactivate it instead. The rules that name the service are paused, not widened (pause reason condition_gone), and the notes of the knowledge that are only about this service are removed with it; the answer's rules and notes list both. A removed note cannot be brought back while it has no service: knowledge.service_gone. With dry_run nothing changes and the answer tells how many times it was booked, which rules would pause and which notes would go. A deleted service is gone: a second call is refused with not_found. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/services-and-prices.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what would happen, to tell the person first. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
service_id | string | required | Service ID: talemo_list_services lists them. |
Described in: Services, prices and currency
talemo_delete_service_group
Delete a service group
Delete a group of the price list: its services stay in the price list without a group, and the groups after it move up to close the gap. The answer has the group as it was and the IDs of the services that stood in it, deactivated ones too — making the group again with the same name, place and these service_ids puts everything back. A rule that names the group is paused, not widened (pause reason condition_gone), and stays so after the group is made again: its condition has to be changed; the answer's rules lists those rules. With dry_run nothing changes and the answer says how many services are left without a group and which rules would pause. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/service-groups.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what would happen, to tell the person first. |
group_id | string | required | Group ID: talemo_list_service_groups lists them. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Service groups
talemo_delete_visit
Delete a visit
Delete a visit for good, with its services and time; the history of the contact keeps a line about it. Ask the person before deleting: with dry_run nothing changes and the answer is the visit that would go. A deleted visit is gone: a second call is refused with not_found. To keep the history, cancel instead.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the visit as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
visit_id | string | required | Visit ID: talemo_list_visits and talemo_get_calendar list them. |
Described in: Moving and canceling visits
talemo_find_times
Find available times
Find when the services of a visit can be done together in a branch. The answer has outcome: found — variants lists starts, each with its resources (the specialist of the visit and the place or device of each service, with resource_id, name and role) and its services; none_together — nobody does these services together: fits of talemo_list_services shows who does which; none_free — everything is taken; day_off — nobody who fits works in the window: a day off, other hours than the asked time of day, or the time has passed; it is not busy time, so do not offer that time: booking it is refused with visit.outside_schedule, or with visit.past when the start has passed; no_schedule — the fitting resources have no schedule, set it first. days lists the dates of the window that have time free for the whole visit, whatever limit is: to see which days of a month have available times, ask the whole month (at most 31 days) with limit 1 and read days. At most ten variants come, each at its own start, spread over the whole window, not the first ten: the earliest and the latest start are among them. Those with last_time true — the specialist of the last visit of party_id — always come, and come first. more is true when the search found more variants than came, other starts or other specialists at the same starts: do not tell the client that these are all the times, ask again with a narrower window (from, to, after, before) or with a specialist in resource_ids. When the window is empty, next is the nearest time beyond it within 90 days. A variant without legs goes as it is to talemo_book_visit. A variant with legs is two to four visits one right after another, each at its own specialist, in the order of service_ids: on a day where no single specialist does all the services in a row, the variants of that day are such chains. Each leg has its own start, service_ids and resource_ids — ids of entries of services and resources of the variant — and price, the prices of its services in that order, and the next leg starts where the work of the previous one ends; the start, resources, services and price of the variant itself cover all the legs. Tell the client every leg — who does which services and when — never one specialist for all; book such a variant with legs of talemo_book_visit, all legs in one step, or offer it as one time with its legs in slots of a reply to the client. A day where one specialist does everything in a row has no legs, and a search with visit_id never has them. Without every the answer has only the earliest start of each day for each specialist: a later start can still be free, so check a time the person named with every and with after and before around it. Resources named in resource_ids are used as named. To move a visit pass its visit_id: the answer has visit_master — the resource_id and name of the specialist of the visit and free, whether the specialist has time in the window — and while free is true every variant and days are the specialist's: a move stays with the same specialist. When free is false the specialist of the visit has no time in these days (the answer does not say why) and the variants are those of the other specialists. keep_master false looks at every specialist, for a client who asked for any specialist or for another one; resource_ids and level_id beat it. visit_time is the time of the visit itself: for each day of the window its start, the time of day the visit stands on laid on that day, and free, whether the visit goes on that start — with the specialist named in resource_ids, otherwise the specialist of the visit, as talemo_move_visit with the same resource_ids would lay it. When the person asks for the same time — "on Friday, at the same time" — take the start of that day from visit_time and pass it as start to talemo_move_visit; never the earliest of variants, those start at the earliest time of the day, which is another time. When free is false on that day, say so and offer variants. When a service has a price for a level of specialists, the price depends on the specialist: a variant has the price of the visit and, in services, the price of each service, both for the specialist of that variant, so two variants of the same time can differ; level_id looks at the specialists of one level only. Name the price of the variant you offer, and book it with that price in price of talemo_book_visit (of its leg, when it has legs). For a member of the business, one that cannot take its role in this visit — a specialist who does not do all the services, a place or device that does none of the services of its role — is refused with visit.resource_unfit and params.role and params.resource_id, as a booking would be: it is not none_together. For a specialist who is not named a variant goes to the specialist of the last visit of party_id, and otherwise to the specialist the booking rule of the branch picks among those free at that start (the rule any_master of the branch). When: before you offer, book or move a visit to a time. How: branch_id and service_ids in order, a window with from and to, a time of day with after and before. Next: offer two or three of the starts; when visit_master.free is false, say that the specialist of the visit has no time in those days and name the specialist of every time you offer (the resource_id of the specialist of a variant; the name of the specialist is in fits of talemo_list_services); book the variant with talemo_book_visit or move a visit with talemo_move_visit. Staff: a time outside the open time that the person still wants is booked with talemo_book_visit or moved to with talemo_move_visit and extend_schedule, only after the person said yes to opening that time. Staff: the reply that offers a time with its legs is talemo_send_message. Staff: reason of a day of visit_time that is not free — taken: the specialist, the place or the device is busy then, offer variants; closed: it is outside the open time, a day off or other hours — say what would open and ask, and only after the person said yes move with extend_schedule of talemo_move_visit; past: the time has passed; off_step: the time is not on the step of the branch; unfit: the specialist, the place or the device of the visit cannot take it, offer variants.
Guide: booking/finding-times.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
after | string | optional | Start no earlier than this time of day in the branch, like 11:00. |
before | string | optional | Start before this time of day, like 18:00. |
branch_id | string | required | Branch ID: branch_id of the conversation (talemo_get_conversation). Staff: without a conversation, talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
every | boolean | optional | True — every start on the step; left out — only the earliest of each day for each specialist, and later starts may be free too. |
from | string | optional | First day to look at, like 2026-11-26. Left out — today in the time zone of the branch. |
keep_master | boolean | optional | With visit_id: true — look only at the specialist of that visit while the specialist of the visit has time, and when there is none in the window, at the others; false — at every specialist, when the client asked for any specialist or for another one. A specialist named in resource_ids and level_id beat it. Left out — true. Without visit_id it is refused. |
level_id | string | optional | Level ID of the specialists to look at: the level_id of a specialist in fits of talemo_list_services, or none for the specialists with no level. Use it when the client means a level — "with a top master"; the price of a variant is the price of its specialist. A specialist named in resource_ids beats the level. Left out — every specialist. |
limit | integer | optional | How many variants, 1 to 10; 10 when left out. When the search found more, the answer has more true. |
party_id | string | optional | Contact ID: the variants of the specialist of their last visit that took place come first — "as last time" — and have last_time true. talemo_find_contacts finds the IDs. |
resource_ids | array of string | optional | Resource IDs the person asked for — "with Anna": one specialist, and a place or device for each service it fits; only they are looked at for their roles. fits of talemo_list_services shows the resources of a service with their names. |
service_ids | array of string | required | Service IDs of the visit in order, 1 to 20, each once: they are done one after another. The service_id values (UUIDs) that talemo_list_services lists — not a service name. Pass all the services the client asked for, never one by one: a day where no single specialist does them in a row gets variants of several visits (legs) only from the whole list. |
to | string | optional | Last day, inclusive, at most 31 days from the first. Left out — a week. |
visit_id | string | optional | Visit ID being moved: its own time does not stand in the way, and no variant has legs: a visit that gets moved stays one visit. Pass it every time the time is looked for to move a visit — the visit of move_visit_id of the reply — and only the specialist of that visit is looked at while the specialist of the visit has time (keep_master); visit_master of the answer names the specialist, and visit_time has the time of the visit itself for each day of the window: take "the same time" from it. talemo_list_visits lists them. |
Described in: A laser hair removal salon, Finding free time for a booking
talemo_get_any_master
See who gets the next visit on any specialist
Show how the specialists of a branch are loaded in a week and who gets the next visit when the client names no specialist: the booking rule (any_master), the week from Monday to Sunday in the time zone of the branch (from, to), each specialist in work with minutes of visits in that week — the very count the matching uses, cancelled visits not counted and visits that took place counted — in the order the rule gives visits, and first, the specialist who gets the next visit by the hours or the list; there is none with no_gaps, where the free window decides, and when several specialists have the fewest hours. A role limited to its own visits sees its own specialist only, and first is empty for it.
Guide: booking/booking-rules.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
day | string | optional | A day of the week to show, like 2026-11-26; the week runs from Monday to Sunday in the time zone of the branch. Left out — today. |
Described in: Booking rules
talemo_get_booking_rules
See the booking rules of a branch
Show the booking rules of a branch: the step of the booking grid in minutes, the cleanup after a visit for each role of the kit, whether Talemo writes to the client at once that the visit is booked, when it has where to write (confirm_on_booking), how many hours before a visit the reminder goes (remind_before_hours) and who gets a visit when the client names no specialist (any_master: evenly, no_gaps or in_order; master_order lists the specialists in work of the branch in the order in_order uses). Rules never set show the defaults: a step of 15 minutes, no cleanup, confirming at once, a reminder 24 hours before, evenly.
Guide: booking/booking-rules.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
Described in: A laser hair removal salon, Booking rules, Industry words and defaults, Visit notices — confirmation, move, reminder and cancellation, What the kit installs
talemo_get_branch_page
See the booking page of a branch
Show the public booking page of a branch: whether it is on and since when, whether it can be turned on (can_open: false while booking through the page is not ready), the link clients open (empty when this installation has no address for booking pages), what is on it in numbers — services shown, how many of them have no price and are shown as "the salon will tell you the price", services left out because no working specialist does them, specialists shown — and preview, the page as a client sees it, with the languages the salon serves clients in. A page that is off shows the preview too. The page lists the name and address of the branch, its phone and the messengers it is reachable in, its bookable services with price and duration, the names of specialists and available times; nothing about clients.
Guide: booking/branch-booking-page.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
Described in: Branch booking page
talemo_get_calendar
See the calendar
Show the grid of a branch for one to seven days: the resources in work with their schedule days, if the role may see schedules; a resource that was switched off is there too, with deactivated_at set, when it has a visit in those days — cancelled ones too, every visit of the answer has the column of its resource — or when resource_id names it, visit or none, or when it is the person's own and the person sees just their own visits: its visits stay, no new time can be booked on it; the visits of those days — cancelled ones too — and unclosed_count, how many visits of the past are still booked or confirmed. Ask with resource_id when the question is about one specialist, place or device. own_resource_ids — present only when the person sees just the visits of the resources linked to them: the IDs of those resources, switched off ones too; empty — no resource in the calendar is linked to them yet, so their own visits cannot show; absent — they see all the visits of the branch. party_live_visits of each visit is how many live visits its contact has, this one included: above 1 — see talemo_list_visits before you move or cancel it.
Guide: booking/visits.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
from | string | optional | First day, like 2026-11-26. Left out — today in the time zone of the branch. |
resource_id | string | optional | Resource ID — a specialist, a place or a device of this branch — when the question is about that one: it is in the answer as a column always, even if it was switched off and has no visit in those days. talemo_list_resources lists them. |
to | string | optional | Last day, inclusive, at most a week from the first. Left out — the same day. |
Described in: A laser hair removal salon, Finding free time for a booking, Visits and their statuses
talemo_get_resource_history
See what happened with a specialist, place or device
Show the history of a resource, newest first: its visits that took place or were cancelled, and the edits of the resource itself — who added or changed it, deactivated or activated it, set its usual cycle, laid it out up to a date, changed a day or a time of a day, marked or unmarked a service it does. An edit says who made it — a person, the Talemo assistant at their request, a program — and when; it holds ids, codes and numbers, never the text of a note, and a service is named as it is named now. Booked and confirmed visits ahead are not in it: talemo_list_visits with resource_id, from and live lists them. visits_done counts the visits that took place; edits_count the edits. A page ends with next, the before of the following call; without it that is all. Visits show only to a role that may see visits, and a role limited to its own schedule sees the visits and the schedule edits of its own resource only; prices the role may not see are missing.
Guide: booking/resources.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
before | string | optional | next of the previous answer: the entries older than that. Left out — the newest. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
limit | integer | optional | How many entries, 1 to 100; 20 when left out. |
only | string | optional | visits — only the visits, edits — only the edits of the resource. Left out — both, mixed by time. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
Described in: Resources — masters, places, devices
talemo_get_rule
See a rule
Show one rule and what it would do. forecast.ahead is the next 14 days with the rule as it stands: firings — the visits it fires on, clients — how many clients, sends — the messages that would go, by_template — how many of them go as a WhatsApp template outside the 24-hour window, for which Meta charges the business by its own rates (the price list of WhatsApp Business, by country and category; the sum is not counted here), and skipped — why the rest would not go, a reason and a count. forecast.past is the same for the last 30 days, as if the rule had stood then. A client gets at most 3 messages a day from all the rules together: the fourth is skipped with daily_limit; a cancellation notice does not count and is not held back. Show it to the person before changing the rule.
Guide: booking/rules.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
rule_id | string | required | Rule ID: talemo_list_rules lists the rules of a branch. |
Described in: Rules — what Talemo writes to clients, and when
talemo_get_schedule
See a schedule
Read the working time of a resource for a period: every day with its state — working, day_off (no open time) or not_scheduled (no schedule, cannot be booked) — its open and busy times with notes, whether it was changed by hand, and the usual cycle with the day it is laid out to.
Guide: booking/resource-schedule.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
from | string | optional | First day, like 2026-11-23. Left out — today in the time zone of the branch. |
resource_id | string | required | Resource ID of the specialist, place or device: talemo_list_resources lists them. |
to | string | optional | Last day, inclusive; at most 62 days from the first. Left out — a week. |
Described in: Schedule of a resource
talemo_get_visit
See a visit
Show one visit: its status, the client, the time, the services in order with their times, who is taken when, and the prices if the role may see them. notices are the confirmation, the message that a visit was moved (moved) when the client had heard of the visit before, the reminder and, when a visit is cancelled, the cancellation notice to the client, and the messages of the rules after the visit — to a client who did not come (missed) and the invitation to come again (again): sent, waiting, or why one did not go, in code, like channel.template_unavailable when Meta has not approved the template; a sent one has delivery: queued — it still stands in the queue of the channel and has not gone to the client, so say it waits to be sent, never that it was sent —, sent, delivered or read — it went —, or failed, with code; no delivery — it went; one sent by via template has sent_as, the kind of the template it went as: for a moved notice visit_confirmation means Meta has not approved the template of the move yet, so the client got the booking confirmation with the new time instead of the move notice — say it so; a text sent in the open window has no sent_as; a waiting one (state planned) is still ahead, not something that happened: say when it goes (due_at), or that it will not go, and never list it with the ones that went or did not go; the online admin's cancellation waits until it finishes replying and is skipped if it told the client itself; a waiting one says in expected_skip that it will not go — the contact has no WhatsApp number or Instagram account the client wrote to the business from, or the client opted out — opted_out_word, the client wrote STOP, or opted_out_person, a person of the team turned the messages off at the client's request, in expected_skip of a waiting one and in reason of one that did not go; such a notice has opt_out, as the contact has: its source (client_word, person or online_admin), at and by, the person of the team, when there is a name; it is the refusal that stands now, so one lifted or changed since is not named; a waiting reminder or cancellation notice with window_only (instagram) goes only if the client writes to the business in that channel in the day before it is due, so tell the person to tell the client themselves if the client does not; a notice skipped with the reason failed did not go because of a failure on Talemo's side and will not be sent again — it is not the delivery failed of the channel: tell the person to tell the client themselves if it is still needed; a cancellation skipped with the reason window_closed means the client was not told: tell the person to do it themselves, for example by phone; the online admin does not get them. source says who made the booking: page — the client, on the public booking page; salon — the business itself, a person, the assistant or the online admin; say it in those words, not with the key. party_live_visits is how many live visits its contact has, this one included: above 1 — see talemo_list_visits before you move or cancel it. When: before you say what happens to a visit or whether the client was told. How: visit_id from talemo_list_visits. Next: tell the person which notice did not go and why, in plain words, not with the code — who turned the messages off too, when opt_out names them, never a name it does not give — and what they can do by hand.
Guide: booking/visits.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
visit_id | string | required | Visit ID: talemo_list_visits lists them. |
Described in: A client in Instagram and confirmations in WhatsApp, Visit notices — confirmation, move, reminder and cancellation, Visits and their statuses
talemo_list_levels
See the levels of specialists
List the levels of specialists of a business in the order the business set, the lowest first: the name (name, with its translations in name_tr), the place among the levels (from 0) and how many specialists in work stand on the level (masters). A level is a label of a specialist, like "Master", "Top specialist" or "Art director": it is not a role and gives no rights. Levels are the same in every branch. The level of a specialist is level in talemo_list_resources; the price of a service for a level is in level_prices of talemo_list_services.
Guide: booking/master-levels.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
Described in: Levels of masters
talemo_list_resources
See specialists, places and devices
List the resources in work of a business or one branch: specialists, places and devices — whatever time is booked on. Each has its role from the industry kit, for a specialist the team member it is, and its note if there is one, and for a specialist the level (level, with level_id and name; none — no level). With deactivated, the deactivated ones are listed instead.
Guide: booking/resources.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | optional | Branch ID to list the resources of one branch: talemo_get_business lists the branches. Left out — every branch this connection may see. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
deactivated | boolean | optional | True — list the deactivated resources instead of the ones in work, for example to activate one again. Left out — the ones in work. |
Described in: A laser hair removal salon, Industry words and defaults, Levels of masters, Resources — masters, places, devices, Who does what
talemo_list_rule_firings
See what a rule did
List the firings of a rule, the newest first: each is one notice on one visit — visit_id, party_id, starts_at of the visit, kind (confirmation, moved — the message that a visit was moved —, reminder, cancellation, missed — the message to a client who did not come — or again, the invitation to come again) and state: planned waits for its hour (due_at) and is still ahead, not something that happened — say when it goes or that it will not, and keep it apart from the others, sent went to the queue of the channel, skipped did not go, cancelled was withdrawn because the visit was cancelled, done or moved, or because the rule was turned off or no longer covers the visit (rule_off). reason says why one did not go, like no_confirmed_contact, window_closed, template_not_approved, opted_out_word, opted_out_person, too_close, visit_started, daily_limit (with limit, the messages a day), rule_paused or failed — a failure on Talemo's side: it will not be sent again, so tell the person to tell the client themselves if it is still needed; settled_at is when it was settled. party_name is the name of the client. A sent one has channel, via (text or template) and delivery: queued — it still stands in the queue of the channel and has not gone to the client, so say it waits to be sent, never that it was sent —, sent, delivered or read — it went —, or failed, with code; one sent by via template has sent_as, the kind of the template it went as: for a moved firing visit_confirmation means Meta has not approved the template of the move yet, so the client got the booking confirmation with the new time instead of the move notice — say it so; a text sent in the open window has no sent_as. A planned one that will not go by what Talemo knows now has expected_skip, the reason. The parameter limit is 1 to 200, 50 when left out.
Guide: booking/rules.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
limit | integer | optional | How many firings, the newest first: 1 to 200. Left out — 50. |
rule_id | string | required | Rule ID: talemo_list_rules lists the rules of a branch. |
Described in: Rules — what Talemo writes to clients, and when
talemo_list_rules
See the rules of a branch
List the rules of a branch: the three built-in ones — the confirmation when a visit is booked, the reminder before a visit and the cancellation notice, which Talemo has always sent — and the ones added in words. A rule says when something happens to a visit (event), for which visits (conditions: services, service groups, specialists; empty means any) and what Talemo writes to the client (action). Each has origin (builtin or words) and state: works, off, paused — pause says why: creator_left, creator_lost_right (a rule runs with the rights of the person who made it), failures (the last three sends did not go) or feature_off (Talemo has switched the rules added in words off in this business for now: they come back by themselves and nobody turns them on) — or waits_template: it is on, but the WhatsApp of the branch has no approved template of this message, so outside the 24-hour window nothing goes. activity counts the firings waiting now and those sent and skipped in the last 30 days; references names the services, groups and specialists of the conditions; created_by_name is the name of the person who made the rule, left out when nobody did or the door has no name for them. Rules are not deleted: one that is not needed is turned off with talemo_update_rule.
Guide: booking/rules.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
Described in: Rules — what Talemo writes to clients, and when
talemo_list_schedules
See the schedules of a branch
Read the working time of every resource in work of a branch for a period — who works when, and up to which day each schedule is laid out: after that day nobody can book the resource.
Guide: booking/resource-schedule.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
from | string | optional | First day, like 2026-11-23. Left out — today in the time zone of the branch. |
to | string | optional | Last day, inclusive; at most 62 days from the first. Left out — a week. |
Described in: Schedule of a resource
talemo_list_service_groups
See the service groups
List the groups of the price list of a business or one branch, in the order the business set: the name, the place among the groups (from 0) and how many services of the price list stand in the group (services). A service stands in one group or in none; the group of a service is group in talemo_list_services. Clients see the same groups in the same order on the booking page of the branch.
Guide: booking/service-groups.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | optional | Branch ID to list the groups of one branch: talemo_get_business lists the branches. Left out — every branch this connection may see. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
Described in: Service groups
talemo_list_services
See the price list
List the price list of a business or one branch: each service with its name and description, its duration in minutes, its price as a decimal in the currency of the branch, the roles of the kit it takes and the resources that can do it (fits, each with its resource_id, its role and its name; a specialist also has level_id, the level, and price, what this specialist charges for the service). When specialists have levels, level_prices lists the price of each level that has its own (level_id and price): a level not listed takes price, and so does a specialist with no level. Name a price together with its specialist, from fits[].price — never pair level_prices with specialists yourself. When a service has several prices by level, name the price of the specialist or the level the client means, or all of them by level — never one price for all. A price the role may not see is missing, level_prices and fits[].price with it. With lang the name and description come in that language, with the language they are really in: use them to talk to a client, word for word. When: before you name a service or a price to a client, and for the service IDs that talemo_find_times and talemo_book_visit take. How: lang — the language the client writes in. Next: take service_id and, from fits, the resource_id of the specialist the client asks for.
Guide: booking/services-and-prices.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | optional | Branch ID to list the price list of one branch: branch_id of the conversation (talemo_get_conversation). Left out — every branch this connection may see. Staff: without a conversation, talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
deactivated | boolean | optional | True — list the deactivated services instead of the price list, for example to activate one again. Left out — the price list. |
lang | string | optional | Language code to get the names and descriptions in, like "tr": the language the client writes in. Each service then has one name and one description in that language, and name_language and description_language say which language they are really in: the first language of the business where there is no translation or the business does not serve the language, and a stale translation is shown as it is. Name a service to a client with this value, word for word. Left out — the names and descriptions as the business writes them, with every translation and whether it is stale. |
Described in: A laser hair removal salon, Levels of masters, Service groups, Service languages, Services, prices and currency, Who does what
talemo_list_visits
Find visits
List visits for a period or the unclosed ones — visits of the past that are still booked or confirmed and need to be recorded as done or cancelled. With live only the booked and confirmed ones are listed. visits lists them: each has its status, time, services, resources and, if the role may see them, prices. own_resource_ids — present only when the person sees just the visits of the resources linked to them: the IDs of those resources, in the branch asked for if one is, switched off ones too; empty — no resource in the calendar is linked to them yet, so their own visits cannot show; absent — they see all the visits of the branch. next — present only when more visits fit than limit shows: send it back as after to read on; absent — that is all of them. from and to of the answer are the window the visits were read in — they end after from and start before to; a from or to that is absent means no bound on that side, not a week. A list read inside a window says nothing about the visits outside it. party_live_visits of a visit is how many live visits — booked or confirmed, not yet ended — its contact has, this one included. When it is above 1 and the person named the contact but did not say which visit — its day, time or service, or the nearest or the last one — read the contact's visits with live, name each with its date and time and ask which one; do not pick one for them. live is by status, not by time: a visit that has ended and is still booked or confirmed comes with live too, has unclosed true and is not a visit ahead; the next or upcoming visit of a contact is one that has not ended. When party_live_visits is 0, nothing is ahead: say so, name the unclosed visit apart with its date and ask what to do with it. source of a visit says who made the booking: page — the client, on the public booking page; salon — the business itself, a person, the assistant or the online admin; say it in those words, not with the key. When: the client or the person asks what is booked or what is unclosed; and before you move or cancel a visit. How: from and to for a period; live keeps the booked and confirmed ones. Next: visit_id goes to talemo_get_visit and talemo_move_visit. Staff: for one branch use branch_id, for one contact party_id, for one resource — a specialist, a place or a device — resource_id; with live and from that is what is ahead for the resource. Use them when the person asks what is booked in a branch or for a contact, or what is ahead for a specialist. Staff: the visits of the contact of party_live_visits are read with party_id and live. Staff: the same visit_id goes to talemo_cancel_visit. Staff: beyond is present only when to was left out and the week after from was taken: count is how many live visits of the same filters start after that week, nearest the nearest of them with visit_id, start and time_zone. An empty visits with beyond.count above 0 is not "no visits": they are later. nearest only tells where to look next, it can be another contact's visit: for a contact read again with party_id and live, which has no end, or with from and to covering beyond.nearest.start, and never move or cancel a visit before it is the contact's. Say a contact has no upcoming visits only after reading the whole future.
Guide: booking/visits.
- Reads only, changes nothing
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
after | string | optional | The next of an earlier answer of this list, as it came: the visits after it, with the same filters. Left out — from the start. |
branch_id | string | optional | Branch ID: its visits only: branch_id of the conversation (talemo_get_conversation). Left out — every branch this connection may see. Staff: without a conversation, talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
from | string | optional | Visits ending after this instant, RFC 3339 like 2026-11-26T00:00:00Z. Left out — now; for a contact, a resource and for unclosed visits — no bound. |
limit | integer | optional | How many visits, 1 to 500; 100 when left out. |
live | boolean | optional | True — only the live visits: booked or confirmed, not done and not cancelled. By status: a visit that has ended and is still booked or confirmed is live too, with unclosed true. |
party_id | string | optional | Contact ID: their visits, newest first when no period is given. talemo_find_contacts finds the IDs. |
resource_id | string | optional | Resource ID — a specialist, a place or a device: the visits it is taken in, cancelled ones too, newest first when no period is given; with from and no to — from that instant on, with no limit ahead, in time order. fits of talemo_list_services shows the resources of a service. Staff: talemo_list_resources lists them all. |
to | string | optional | Visits starting before this instant; at most 62 days after from. Left out — a week after from, but no end for a resource or the online admin with from, and no bound at all for a contact, a resource or the unclosed visits asked with neither from nor to. Staff: when the week was taken, beyond of the answer says what lies after it. |
unclosed | boolean | optional | True — only the unclosed visits of the past: booked or confirmed and already over. |
Described in: Resources — masters, places, devices, Visits and their statuses
talemo_move_visit
Move a visit
Move a whole visit to a new start, with other resources if named: all its time moves or none of it. Another visit in the way is refused with status 409, code slot.overlap and params.resource_id; time outside the open time with visit.outside_schedule; the past with visit.past. A visit that took place or was cancelled is not moved: visit.done, visit.cancelled. When: the client or the person asks for another time for a visit that is ahead; when party_live_visits of the visit is above 1 and the person did not say which one, ask which first, as talemo_list_visits says. How: visit_id, and a start of talemo_find_times asked with the same visit_id, with the resource_ids of that variant. Next: say the visit has been moved only after the answer succeeded; slot.overlap means the time was taken meanwhile — ask talemo_find_times again. Field extend_schedule: true opens the time of the visit in the day of a specialist, place or device named in resource_ids or kept by the visit when the new start is outside its open time — a day off, hours beyond its shift, a resource with no schedule — and moves the visit in the same step. The answer names what it opened in opened: resource_id, name, kind (day_off, outside_shift or no_schedule), start and end, and for outside_shift the shift it stood in. Only the time of the visit opens: busy time such as a lunch stays closed, and so does the time of a resource that is not named. Pass it only after the person said yes to opening that time; without it the move is refused with visit.outside_schedule. It needs the right to edit schedules: without it status 403, code role.forbidden with params.capability schedule.edit. asks of the answer lists what the person is to hear first: opens_time — the call opens time of a resource; client_message — Talemo writes to the client at once about the new time. Field move_past_visit: true says the person asked to move this visit although its time has ended and it is still booked or confirmed — an unclosed visit, unclosed true, not a visit ahead. Without it such a visit is refused with status 400, code request.body_invalid and params.field move_past_visit: do not pass it on your own. Say that nothing is ahead, name the visit with its date and ask whether it took place, the client did not come, or it is to be moved; pass it only after the person said to move it. A visit that has not ended never needs it, and a person at the screen is not asked. Field visit_singled_out: true says the person singled out this visit among the visits of the contact that are ahead: named what tells it apart from the others — its day, month, time, service or specialist, the nearest or the last, or the visit just booked in this conversation. When the contact has more than one visit ahead, a move without it is refused with status 400, code request.body_invalid and params.field visit_singled_out: do not pass it on your own. Name each visit ahead with its date and time and ask which one; pass it only after the person named this one. A sign that tells nothing apart — both visits in December, the same specialist — is no pick: ask. A contact with one visit ahead and a person at the screen are not asked. Staff: after the call tell the person whether Talemo writes to the client now about the new time, from client_hears of the answer: one entry for each message the move made due now, with its kind (moved to a client who heard the old time, confirmation of the new time to one who heard nothing). goes true — Talemo writes it at once: say the client gets a message about the new time. goes false — it does not: say why in plain words from reason (the codes of reason of a notice; opt_out names who turned the messages off, and never name anyone it does not) and that the person tells the client the new time themselves, with talemo_send_message or a call. An empty list — no rule made a notice due now, and the list names no cause of its own: say the client gets no message about the new time because the rules do not send this message right now, and that the person tells the client the new time themselves; never take the cause from expected_skip of another notice, the reminder's included. Say the client is told, will be told or gets a message only for an entry that goes, and never say the message was delivered: goes is what Talemo decided now, not delivery, and talemo_get_visit shows what became of it in notices. Say a reminder comes only from notices of the answer: a reminder waiting without expected_skip; expected_skip explains that reminder alone. A preview of the call shows the decision as of the preview; the real call decides again.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — move nothing and answer the visit as it would be. |
extend_schedule | boolean | optional | True — if the new start is outside the open time of a resource named in resource_ids or kept by the visit, open the time of the visit in the day of that resource and move in the same step. Only after the person said yes to it. |
move_past_visit | boolean | optional | True — the person said to move this visit although its time has ended and it is still booked or confirmed (unclosed true). Only after the person said so; a visit that has not ended never needs it. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_ids | array of string | optional | Other resources: the specialist, and a place or device for each service it fits; one left out keeps its resource while it is free. Take them from the variant of talemo_find_times that you move to. |
start | string | required | New start, RFC 3339: ahead and on the step of the branch; talemo_find_times with visit_id finds one. |
visit_id | string | required | Visit ID: talemo_list_visits lists them. |
visit_singled_out | boolean | optional | True — the person singled out this visit among the visits of the contact that are ahead: named its day, month, time, service or specialist, the nearest or the last, or the visit just booked in this conversation. Only after the person named it; a contact with one visit ahead never needs it. |
Described in: Moving and canceling visits
talemo_record_walk_in
Record a visit without a booking
Record a visit without a booking — the client came in — as done at once: who did it, when and the prices. It ends no later than now: otherwise status 409, code visit.future. Time outside the open time of a resource is refused with visit.outside_schedule and params.resource_id unless extend_schedule opens it in the day of the resource; say so to the person first. When several places fit a service, name the one used for each in service_resources. A client who is not a contact yet is named by new_party, as in talemo_book_visit: found by the number or added in the same step.
Guide: booking/visits.
- Changes data
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the visit. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — record nothing and answer the visit as it would be. |
end | string | optional | When it ended, no later than now. Left out — the start plus the durations of the services. |
extend_schedule | boolean | optional | True — if the time is outside the open time of a resource, open it in the day of the resource. Tell the person before doing it. |
new_party | object | optional | A client who is not a contact yet: the name and the number, as in talemo_book_visit. Not together with party_id. |
new_party.name | string | required | Name as the business calls the person, 1 to 120 characters. A contact already found by the number keeps its own name. |
new_party.phone | object | required | The number of the client: the contact is looked for by it. |
new_party.phone.address | string | required | The number as the person said it: +49 176 2041 1380, or a local number like 8 916 204-18-21 together with country. |
new_party.phone.country | string | optional | ISO 3166-1 alpha-2 country of a number without + or 00, like RU or DE. If you do not know it, ask the person: the time zone of the branch does not tell. |
party_id | string | optional | Contact ID of the client: talemo_find_contacts finds them. Name the client by this or by new_party, one of the two. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | array of string | optional | Prices of the services in order as decimals in the currency of the branch, like "2600.50"; null — no price. Left out — the price list. |
resource_ids | array of string | optional | Who did it — one specialist, and a place or device for each service it fits; a service with a single fitting resource can be left out. |
service_ids | array of string | required | Service IDs done in order, 1 to 20, each once. |
service_resources | array of object | optional | Which place or device did which service, as pairs of a service ID and a resource ID — "table 2 for the manicure, table 1 for the design". Needed when several places fit a service: a pair beats the list in resource_ids for its service. Not for the specialist: the specialist is one for the whole visit, named in resource_ids. A resource that does not fit its service is refused with visit.resource_unfit. |
service_resources[].resource_id | string | required | Resource ID of the place or device that did this service. It has to fit the service, otherwise visit.resource_unfit with params.role and params.resource_id. |
service_resources[].service_id | string | required | Service ID: one of the service_ids of the visit. |
start | string | required | When it started, RFC 3339. |
Described in: Visits and their statuses
talemo_remove_schedule_time
Remove open or busy time
Remove a time from the schedule of a resource: a break, or open time that is not needed. Open time with visits under it is not removed: status 409, code schedule.has_bookings, params.count booked or confirmed visits — moved or cancelled first — and params.done visits that took place, whose time stays open.
Guide: booking/resource-schedule.
- Changes data
- May overwrite or remove existing data
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the day as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
time_id | string | required | ID of the time: talemo_get_schedule lists them. |
Described in: Schedule of a resource
talemo_remove_service_fit
Unmark who does a service
Mark that a resource no longer does a service. Unmarking one that was not marked returns the service as it is.
Guide: booking/who-does-what.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the service as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID of a specialist, place or device of the same branch: talemo_list_resources lists them. |
service_id | string | required | Service ID: talemo_list_services lists them. |
Described in: A laser hair removal salon, Who does what
talemo_set_booking_rules
Change the booking rules of a branch
Change the booking rules of a branch: the step of the booking grid (5, 10, 15, 20, 30 or 60 minutes), the cleanup after a visit for the named roles (0 to 120 minutes), whether Talemo writes to the client at once that the visit is booked, when it has where to write (confirm_on_booking), how many hours before a visit the client gets a reminder (remind_before_hours, 1 to 72; 24 is the day before) and who gets a visit when the client names no specialist (any_master: evenly — the specialist with fewer hours of visits in the week of the visit, no_gaps — the specialist whose free window the visit closes flush, in_order — the one higher in master_order, the specialists of the branch by resource ID in that order: the ones named come first, the others follow as they stood). What is left out stays as it is. Cleanup comes after the work and does not shift the next booking. New hours move the reminders already waiting; one that would fall in the past is skipped. A resource in master_order that is not a specialist in work of the branch is refused with status 422, code record.reference_missing and params.field master_order; a specialist named twice, or an unknown any_master, with status 400, code request.body_invalid. A closed branch takes no settings: status 409, code branch.closed; it is changed again once the branch is open. The rule decides what clients are sent later; nothing is sent by this call.
Guide: booking/booking-rules.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
any_master | string | optional | Who gets a visit when the client names no specialist: evenly — the specialist with fewer hours of visits in the week of the visit, no_gaps — the specialist the visit fits flush with, in_order — the one higher in master_order. Left out — stays. |
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
cleanup | array of object | optional | Cleanup after a visit for the named roles; the others stay as they are. |
cleanup[].minutes | integer | required | Minutes of cleanup after the work, 0 to 120; 0 — ready for the next visit at once. |
cleanup[].role | string | required | Role of the industry kit: master, place or device. |
confirm_on_booking | boolean | optional | True — Talemo writes to the client at once that the visit is booked, when it has where to write; false — no such message is written. Left out — stays. |
dry_run | boolean | optional | True — change nothing and answer the rules as they would be. |
master_order | array of string | optional | Resource IDs of the specialists of the branch in the order for in_order, the first one highest: talemo_get_booking_rules lists them in master_order. The specialists named here come first in this order, the others follow as they stood. Left out — stays. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
remind_before_hours | integer | optional | Hours before a visit when the client gets a reminder, 1 to 72; 24 is the day before. Left out — stays. Reminders already waiting are moved to the new hour; one that would fall in the past is skipped. |
step_minutes | integer | optional | Step of the booking grid in minutes: 5, 10, 15, 20, 30 or 60. Left out — stays. |
Described in: A laser hair removal salon, Booking rules, Onboarding a new business, Visit notices — confirmation, move, reminder and cancellation
talemo_set_branch_page
Turn the booking page of a branch on or off
Turn the public booking page of a branch on or off. On, anyone can see the page, search engines too: the name and address of the branch, its phone and messengers, its services with prices, the names of the specialists and available times, and anyone can book a visit there with a name and a phone number. So do it only when the person asks, and first show with dry_run what would be on the page: services shown and how many of them have no price; the Talemo assistant always asks the person before turning it on or off. Off, the link answers as if there were no page. The same value again changes nothing. A closed branch is not turned on: status 404, code not_found. Turning it on is refused with status 409 and code page.not_ready while booking through the page is not ready (the can_open of the page says so); turning it off is always possible. A business without the Client booking kit is refused with status 409 and code kit.required; a role without the right to change the branch, with status 403 and code role.forbidden.
Guide: booking/branch-booking-page.
- Changes data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID: talemo_get_business lists the branches of a business. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what the page would be: how many services would stand on it and how many of them have no price. |
open | boolean | required | True — open the page for anyone who has the link; false — close it. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Branch booking page
talemo_set_level_prices
Set prices of services for levels
Set or take away the prices of many services of a branch for levels of specialists in one call, like "the top specialist costs 10 more on everything": one entry per service and level, at most 500. A level with no price of its own for a service takes the usual price of the service, and a specialist with no level does too; an empty price takes the level's price away. The answer names every pair with the usual price (base), the price of the level before and after. A branch with no currency takes no prices: status 409, code service.currency_required. Bookings already made keep the price they were made with. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/master-levels.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
branch_id | string | required | Branch ID of the services: each branch has its own price list. talemo_get_business lists the branches. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer every price before and after. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
prices | array of object | required | One entry per service and level, at most 500, each pair once. The prices of the pairs left out stay. |
prices[].level_id | string | required | Level ID: talemo_list_levels lists them. |
prices[].price | string | required | Price for the level in the currency of the branch as a decimal, like "45" or "45.50". An empty string takes the price of the level away: the level takes the usual price of the service. |
prices[].service_id | string | required | Service ID of this branch, one in the price list: talemo_list_services lists them. |
Described in: Levels of masters
talemo_set_resource_level
Put a specialist on a level
Put a specialist on a level of specialists, or take the level off: a specialist has one level or none. The answer is the specialist as it stands now. The same level again changes nothing. Only a specialist has a level: a place or a device is refused with status 422, code level.master_only; a deactivated specialist is not changed until it is activated: status 409, code resource.deactivated. The prices of the services for the specialist follow the level at once (level_prices in talemo_list_services); bookings already made keep the price they were made with.
Guide: booking/master-levels.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer with the specialist as the call would leave the record. |
level_id | string | required | Level ID to put the specialist on: talemo_list_levels lists them. An empty string takes the level off the specialist. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID of a specialist: talemo_list_resources lists them. |
Described in: Levels of masters
talemo_set_schedule_day
Change one day of a schedule
Set one day of the schedule of a resource as a whole, a past day too: all its open and busy times; no times — a day off. The day becomes changed by hand, and a new usual cycle keeps it. Bookings that would fall outside open time: status 409, code schedule.has_bookings — dry_run shows them.
Guide: booking/resource-schedule.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
day | string | required | The day, like 2026-11-25; a past day too. |
dry_run | boolean | optional | True — change nothing and tell which bookings would fall outside the open time. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
times | array of object | required | All the times of the day; an empty list makes it a day off. |
times[].ends | string | required | Wall-clock end; not after the start — on the next day. |
times[].kind | string | required | open — open for bookings; busy — blocked without a booking, like lunch. |
times[].note | string | optional | Note of busy time, 1 to 60 characters. |
times[].starts | string | required | Wall-clock start in the time zone of the branch, like 10:00. |
Described in: Schedule of a resource
talemo_set_service_languages
Set the languages a business serves
Set the languages the business serves clients in, as a whole ordered list. The first is the language its texts are written in: the names and descriptions of services, the names of levels of specialists, the labels of conversation fields and the questions of the script; the others hold their translations. Adding a language only adds. Taking one out deletes its translations for good. Making another language the first moves every text to its translation in that language and the old text becomes a translation, and it is refused with status 409, code business.language_untranslated and in params the language and the counts of what has no text in it (services, descriptions, levels, fields, options, steps) or would get a name another service has (duplicates) or another level of specialists has (level_duplicates), while some text has none — nothing changes then; translate those texts first with talemo_update_service, talemo_update_level and talemo_update_conversation_field, never make the translation up without the person. The change reaches Meta: message templates in WhatsApp and quick questions in Instagram and Messenger appear in the new language, so first show with dry_run what it counts: the texts that move, the translations that go and what Meta gets; the Talemo assistant always asks the person before it sets the list. The real call is made only with the preview_id of that dry_run, once the person has seen what it moves, deletes and sends and said yes. Only a role over the whole business may; otherwise status 403 and code role.forbidden.
Guide: booking/service-languages.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer what the change would do: the texts that would move, the translations that would go, the message templates and quick questions Meta would get — or the refusal it would get. |
languages | array of string | required | The languages the business serves, in order, as a whole list: one to fifteen codes out of en, ru, zh, hi, es, fr, bn, pt, de, tr, sr, uk, it, pl, el, each once. The first is the language the texts of the business are written in and the fallback for a client whose language is not in the list. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Languages and translations of script texts, Service languages
talemo_set_usual_schedule
Set a usual cycle
Set the usual cycle of a resource — N days, a week is 7 — and lay it out from effective_from (left out — today) up to until (left out — a year ahead, the furthest it goes). For a week leave anchor_day out: day 1 of times is then a Monday and day 7 a Sunday. Days changed by hand stay unless listed in overwrite; past days are never laid out again. A cycle that would leave bookings outside open time is refused: status 409, code schedule.has_bookings, params.count — dry_run shows the days that change and those bookings first. It changes a lot at once: call it with dry_run first, show the person what changes and make the real call only after they say yes.
Guide: booking/resource-schedule.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
anchor_day | string | optional | The first day of the cycle, like 2026-11-23. Left out — for a week, the Monday of the week the cycle starts: day 1 of times is a Monday, day 2 a Tuesday, day 7 a Sunday, so Tuesday to Saturday is days 2 to 6. Leave it out for a week; for any other cycle, left out — the day it starts. |
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
cycle_days | integer | required | Length of the cycle in days, 1 to 28: a week is 7, two days on and two off is 4. (at most 255) |
dry_run | boolean | optional | True — change nothing and tell which days change and which bookings would fall outside the open time. |
effective_from | string | optional | From which day the cycle is laid out, like 2026-11-23. Left out — today, and that is what a schedule asked for without a start is: name a later day only when the person asked for the schedule to start later, because the days before it have no schedule and nobody can be booked on them. Never earlier than today: the past is never laid out again. |
overwrite | array of string | optional | Days changed by hand to overwrite, like 2026-11-28; other days changed by hand stay as they are. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
times | array of object | required | Times of the days of the cycle; a day of the cycle without times is a day off. |
times[].day | integer | required | Day of the cycle, from 1. (at most 255) |
times[].ends | string | required | Wall-clock end, like 20:00. An end not after the start is on the next day: 14:00 to 02:00 is a shift until two at night. |
times[].kind | string | required | open — open for bookings; busy — blocked without a booking, like lunch. |
times[].note | string | optional | Note of busy time, 1 to 60 characters, like "lunch". Open time has no note. |
times[].starts | string | required | Wall-clock start in the time zone of the branch, like 10:00. |
until | string | optional | Up to which day to lay it out, inclusive: at most a year ahead. Left out — that last day, a year from today. After it the resource has no schedule and cannot be booked. |
Described in: A laser hair removal salon, Onboarding a new business, Schedule of a resource
talemo_update_level
Change a level of specialists
Rename a level of specialists, change its translations or move it to another place among the levels; fields left out stay as they are. The levels between the old place and the new one move by one, and the specialists keep their level. A map of translations replaces the old one: send all the languages that should stay. The answer has the level as it is now and was, its name and place before. A name already in the business is refused with status 409, code record.duplicate, params.field name. Only a role of the whole business changes a level, as it is the same in every branch: a role limited to some branches is refused with status 403, code role.forbidden.
Guide: booking/master-levels.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the level as it would be. |
level_id | string | required | Level ID: talemo_list_levels lists them. |
name | string | optional | New name in the first language the business serves, 1 to 60 characters. The translations of the old name turn stale until they are done again. Left out — stays. |
name_tr | object with string values | optional | Translations of the name, the whole map: a language left out of it loses its translation, and every language must be one the business serves other than the first. Left out — stay as they are. |
position | integer | optional | New place among the levels, from 0; past the end — the last. The levels between the old place and the new one move by one. Left out — stays. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Levels of masters
talemo_update_resource
Change a specialist, place or device
Change the name, role, team member or note of a resource. Fields left out stay as they are; an empty note removes it. The note is signed with the person who wrote it and the time. A deactivated resource is not changed until it is activated: status 409, code resource.deactivated. A rule that names the resource as its specialist is paused, not widened to everyone (pause reason condition_gone), once its role is not master any more, and the pause lifts by itself when the role master is given back; the answer's rules lists the rules the change pauses.
Guide: booking/resources.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the resource as it would be. |
name | string | optional | New name, 1 to 200 characters. Left out — stays as it is. |
note | string | optional | Note on the resource, up to 1000 characters, line breaks allowed; an empty string removes it. Left out — stays. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
resource_id | string | required | Resource ID: talemo_list_resources lists them. |
role | string | optional | New role: master, place or device. A role other than master unlinks the team member. Left out — stays. |
user_id | string | optional | User ID of the team member this specialist is; an empty string unlinks. Left out — stays. |
Described in: Resources — masters, places, devices
talemo_update_rule
Change a rule
Change a rule: turn it on or off (enabled), give it another event or other conditions, which replace the old ones whole. What is left out stays. A rule on pause (state paused) is settled by turning it on or off: the pause goes, and the person who did it becomes the one whose rights the rule runs with; a pause with the reason feature_off is not settled that way, it ends by itself. A rule whose condition names a service, a group or a specialist that was deleted is paused with the reason condition_gone (references.gone in the answer names what was gone and when): turning it on is refused with status 409, code rule.condition_gone, until conditions in the same change name things that exist; the pause then ends by itself. A rule of a closed branch is not changed: status 409, code branch.closed. Turning a rule off withdraws the firings that wait, with the reason rule_off; turning it on takes the visits again, and whoever turns on a rule that was off becomes the one whose rights it runs with. A new time moves the firings that wait for their hour; new conditions of a rule with before_start take the visits already booked and withdraw, with rule_off, the firings that wait on visits the conditions no longer take. The three built-in rules change less: the confirmation can only be turned on or off, the reminder only gets other hours (event with before_start), the cancellation notice nothing, and none has conditions — such a change is refused with status 400, code request.body_invalid and params.field enabled, event or conditions. The answer has before, after and the forecast of the rule after the change, as talemo_get_rule. The rule keeps writing to clients by itself, so change it only when the person asked for it, and first show with dry_run what it would do: after and the forecast are those of the real call. A rule of the whole business is changed only by a role of the whole business: status 403, code role.forbidden. A change that changes nothing writes nothing. Rules are not deleted; turn one off.
Guide: booking/rules.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
conditions | object | optional | New conditions, whole: they replace the old ones, and {} means any visit. Left out — stay. |
conditions.closed_as | string | optional | How the visit was closed: done — the client came, no_show — the client did not come. Only with visit closed or with after_visit, and the message decides it: visit_missed needs no_show, visit_again needs done. |
conditions.groups | array of string | optional | Service group IDs, at most 50: only visits with a service of one of these groups. talemo_list_service_groups lists them. Left out — any group. |
conditions.masters | array of string | optional | Resource IDs of specialists, at most 50: only visits of one of these specialists. talemo_list_resources lists them. Left out — any specialist. |
conditions.no_later_visit | string | optional | Only for a client who has no later visit than this one, booked or taken place: any — no visit at all, same_service — none with the same service, same_group — none with a service of the same group. Only with visit closed or with after_visit; visit_again needs it, so that a client who has booked again is not invited. |
conditions.services | array of string | optional | Service IDs, at most 50: only visits with one of these services. talemo_list_services lists them. Left out — any service. |
dry_run | boolean | optional | True — change nothing and answer the rule as it would be, with its forecast, to tell the person first. |
enabled | boolean | optional | True — turn the rule on, false — turn it off. Left out — stays. A rule on pause is settled by either: the pause goes, and the person who did it is the one whose rights the rule runs with. |
event | object | optional | A new time of the rule; the kind of message stays. Left out — stays. |
event.days | integer | optional | With after_visit: how many days after the visit, 1 to 365. The visit is counted from the end of its time, once the team has closed it. |
event.hours | integer | optional | With before_start: how many hours before the start of the visit, 1 to 72; 24 is the day before. |
event.is | array of string | optional | With visit: what happens to the visit — one or more of created (it is booked) and moved, each once, or closed alone (the team closed it after its time: the client came or did not come, conditions.closed_as says which). cancelled goes only with the built-in cancellation notice, which has no rule of words. |
event.on | string | required | When the rule fires: before_start — some hours before a visit starts, visit — something happens to a visit, after_visit — some days after a visit the team has closed. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
rule_id | string | required | Rule ID: talemo_list_rules lists the rules of a branch. |
Described in: Rules — what Talemo writes to clients, and when
talemo_update_service
Change a service
Change the name, description, translations, duration, price, roles or group of a service, and with level_prices its prices for the levels of specialists (an empty price takes a level's price away, the other levels keep theirs). Fields left out stay as they are. The price changes at once: bookings already made keep the price they were made with. A role taken out of the service stops the resources of that role doing it. A map of translations replaces the old one: send all the languages that should stay, and a language left out loses its translation. Changing the name or the description makes its translations stale, and a stale translation is still shown to clients until it is done again.
Guide: booking/services-and-prices.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
description | string | optional | New description in the first language, 1 to 1000 characters; an empty string removes it together with its translations. Left out — stays. |
description_tr | object with string values | optional | Translations of the description, the whole map, like name_tr. Left out — stay as they are. |
dry_run | boolean | optional | True — change nothing and answer the service as it would be. |
duration_minutes | integer | optional | New duration in minutes, 5 to 600 in steps of 5. Left out — stays. |
group_id | string | optional | Group of the price list, of the same branch: talemo_list_service_groups lists them; an empty string takes the service out of its group. Left out — stays. |
level_prices | array of object | optional | Prices for the levels of specialists, one entry per level to set or take away; the levels left out keep what they have. talemo_list_levels lists the levels. To set the prices of many services at once use talemo_set_level_prices. Left out — stay. |
level_prices[].level_id | string | required | Level ID: talemo_list_levels lists them. |
level_prices[].price | string | required | Price for the level in the currency of the branch as a decimal, like "45" or "45.50". An empty string takes the price of the level away: the level takes the usual price of the service. |
name | string | optional | New name in the first language the business serves, 1 to 120 characters. The translations of the old name turn stale until they are done again. Left out — stays as it is. |
name_tr | object with string values | optional | Translations of the name, the whole map: a language left out of it loses its translation, one whose text is unchanged keeps its mark, and every language must be one the business serves other than the first. Left out — stay as they are. |
needs | array of string | optional | All the roles the service takes, as a whole list: a role left out stops the resources of that role doing it. A place is recorded only once a place of the branch has a schedule; the answer names the roles recorded. Left out — stay as they are. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | string | optional | New price in the currency of the branch, like "2600.50"; an empty string removes the price. Left out — stays. |
service_id | string | required | Service ID: talemo_list_services lists them. |
Described in: Levels of masters, Service groups, Services, prices and currency
talemo_update_service_group
Change a service group
Rename a group of the price list or move it to another place among the groups; fields left out stay as they are. The groups between the old place and the new one move by one, and the services keep their group. The answer has the group as it is now and was, its name and place before. A name already in the branch is refused with status 409, code record.duplicate, params.field name.
Guide: booking/service-groups.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
- Reaches outside Talemo
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the group as it would be. |
group_id | string | required | Group ID: talemo_list_service_groups lists them. |
name | string | optional | New name in the first language the business serves, 1 to 60 characters. Left out — stays. |
position | integer | optional | New place among the groups of the branch, from 0; past the end — the last. The groups between the old place and the new one move by one. Left out — stays. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
Described in: Service groups
talemo_update_visit
Change the prices of a visit
Change the prices of the services of a visit, booked or done: all of them in order, null for no price. The price list does not change. A cancelled visit is refused with status 409, code visit.cancelled.
Guide: booking/moving-and-cancelling-visits.
- Changes data
- May overwrite or remove existing data
- The same call twice gives the same result
Parameters
| Parameter | Type | Required | Meaning |
|---|---|---|---|
business_id | string | required | Business ID: one of the businesses this connection may work in — talemo_list_businesses names them. Another business is refused with door.business_forbidden. |
dry_run | boolean | optional | True — change nothing and answer the visit as it would be. |
preview_id | string | optional | The preview_id from the answer of the dry_run of this same call, once the person has seen that answer. A change Talemo would ask a person about is made only with it; it is fresh for ten minutes and is used once. Leave it out on the dry_run itself. |
price | array of string | required | Prices of all the services of the visit in order, as decimals in the currency of the visit; null — no price. |
visit_id | string | required | Visit ID: talemo_list_visits and talemo_get_calendar list them. |
Described in: Moving and canceling visits