{"openapi":"3.1.0","info":{"title":"Appreci","version":"0.2.0","summary":"Send thank-you gifts and run Secret Send gift swaps.","description":"Appreci actions for AI assistants: the same tools as the Appreci MCP server at /mcp. No action spends money: appreci_send_gift prepares a gift that the user approves in Appreci. Actions that email other people return a preview and a confirm_token first; call again with the token after the user agrees.","contact":{"name":"Appreci","email":"hello@appreci.io","url":"https://appreci.io"}},"servers":[{"url":"https://mcp.appreci.io"}],"paths":{"/actions/appreci_list_gift_options":{"post":{"operationId":"appreci_list_gift_options","summary":"What can be sent","description":"The two ways to send with Appreci today: the Appreci gift card (the sender chooses its value, $10-$250 in $5 steps; the recipient spends it at 150+ stores) and a gift the Appreci Assistant finds for the person (appreci_find_gifts). Returns the gift card's priceId for appreci_send_gift. Appreci does not offer coffee, wine, beer, chocolate or hamper products; more categories will come as merchants join.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"type":"string","enum":["AU","NZ"],"description":"Market region. Defaults to AU."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"giftCards":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"priceId":{"type":"string","description":"Pass to appreci_send_gift with the value as amount."},"minimumValue":{"type":"number"},"maximumValue":{"type":"number"},"step":{"type":"number","description":"Values go up in steps of this many dollars."}},"required":["name","description","priceId","minimumValue","maximumValue","step"],"additionalProperties":false}},"tailoredGifts":{"type":"string","description":"How to get a gift picked for the person instead."},"note":{"type":"string"}},"required":["giftCards","tailoredGifts","note"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_find_gifts":{"post":{"operationId":"appreci_find_gifts","summary":"Find gift ideas for a person (Appreci Assistant)","description":"Appreci's Assistant: give it who the gift is for, what they're into and a budget, and it searches Australian stores, checks each listing's photo and returns up to three distinct picks with a reason for each. Pass a pick's pickId to appreci_send_gift to prepare it for the user to approve. Takes up to about 45 seconds and is limited to a few searches a day, so gather the details first (a team for sport fans, a clothing size, the occasion) and don't repeat a search just to see more.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"who":{"type":"string","minLength":1,"maxLength":200,"description":"Who it is for, e.g. \"my brother Pat\" or \"a colleague who is retiring\"."},"interest":{"type":"string","minLength":1,"maxLength":200,"description":"What they are into, e.g. \"rugby league\" or \"Agatha Christie novels\"."},"budget":{"type":"number","minimum":10,"maximum":500,"description":"Budget in AUD, 10 to 500. Defaults to 50."},"notes":{"type":"string","maxLength":300,"description":"Anything else that helps: age, what they already have, the occasion."},"team":{"type":"string","maxLength":80,"description":"The team they follow, for a team sport. Gives much better picks."},"size":{"type":"string","maxLength":20,"description":"Clothing size, if a garment could suit (e.g. M, L, 10)."},"gender":{"type":"string","enum":["male","female"]},"over18":{"type":"boolean","description":"Only true if the user has said they and the recipient are both 18 or over. Otherwise alcohol is left out."}},"required":["who","interest"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"error":{"type":"string","nullable":true},"thinking":{"type":"string","description":"The Assistant's read of the person, worth passing on to the user."},"picks":{"type":"array","items":{"type":"object","properties":{"pickId":{"type":"string"},"title":{"type":"string","nullable":true},"store":{"type":"string","nullable":true},"price":{"type":"number"},"why":{"type":"string","nullable":true},"imageUrl":{"type":"string","nullable":true},"url":{"type":"string","nullable":true}},"required":["pickId","title","store","price","why","imageUrl","url"],"additionalProperties":false}},"searchesLeftToday":{"type":"number"}},"required":["ok","error","thinking","picks","searchesLeftToday"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_list_recipients":{"post":{"operationId":"appreci_list_recipients","summary":"List the user's team (company accounts)","description":"Lists the people in the signed-in user's company team: name, email, role and whether they have joined yet. Use it to find who to send to on a company account. Personal accounts have no team; use appreci_list_contacts or appreci_list_recent_sends for them.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string","maxLength":100,"description":"Part of a name or email to narrow the list."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"role":{"type":"string","nullable":true},"status":{"type":"string","nullable":true,"description":"Activated, or Invited when they have not signed up yet."}},"required":["id","name","email","role","status"],"additionalProperties":false}},"note":{"type":"string","nullable":true}},"required":["people","note"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_add_recipient":{"post":{"operationId":"appreci_add_recipient","summary":"Add someone to the user's company team","description":"Adds a person to the signed-in user's company team as an ordinary member and emails them an invitation to join. Needs the admin permission (appreci:admin), which the user grants only when they connect with it. This emails people, so the first call only previews: show the user what will happen, and call again with the same arguments plus the confirm_token only after they agree.","x-openai-isConsequential":true,"security":[{"oauth2":["appreci:admin"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","maxLength":100},"email":{"type":"string","format":"email","description":"Where the invitation to join the company goes."},"confirm_token":{"type":"string","description":"Leave out first: you get a preview and a confirm_token. After the user agrees, call again with the same arguments plus the token."}},"required":["firstName","email"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["preview","added","refused"]},"detail":{"type":"string"},"confirmToken":{"type":"string","nullable":true},"confirmBy":{"type":"string","nullable":true}},"required":["status","detail","confirmToken","confirmBy"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_list_contacts":{"post":{"operationId":"appreci_list_contacts","summary":"Find Appreci users (directory search)","description":"Search the Appreci user directory for someone to send a gift to. Match by name/username (`query`), exact `email`, or `phone` (+`region`). At least one criterion is required. Returns username, full name, and profile photo (the directory does not expose ids or emails). This is a directed search, not a 'my recent recipients' list.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Free-text search by name or username (matches first/last name 'starts with', or exact username)."},"email":{"type":"string","description":"Find a user by exact email address."},"phone":{"type":"string","description":"Find a user by exact phone number. Requires `region` when set."},"region":{"type":"string","enum":["AU","NZ"],"description":"Two-letter region for a phone search (required only when `phone` is set)."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"contacts":{"type":"array","items":{"type":"object","properties":{"userName":{"type":"string","nullable":true},"fullName":{"type":"string","nullable":true},"profilePhotoUrl":{"type":"string","nullable":true}},"required":["userName","fullName","profilePhotoUrl"],"additionalProperties":false}},"total":{"type":"number"}},"required":["contacts","total"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_get_profile":{"post":{"operationId":"appreci_get_profile","summary":"Get the current user's profile","description":"Returns the signed-in user's profile: name, username, email, phone, status, roles, and profile photo. Use this to confirm which account you are acting for.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"fullName":{"type":"string","nullable":true},"userName":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"status":{"type":"string","nullable":true},"roles":{"type":"array","items":{"type":"string"}},"profilePhotoPath":{"type":"string","nullable":true},"profileUrl":{"type":"string","nullable":true}},"required":["firstName","lastName","fullName","userName","email","phone","status","roles","profilePhotoPath","profileUrl"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_get_balance":{"post":{"operationId":"appreci_get_balance","summary":"Get the user's Appreci Credit balance","description":"Returns the signed-in user's personal Appreci Credit balance (wallet). Useful before appreci_send_gift: a gift is paid from credit when the user approves it, and if credit is short they can pay the rest by card on the approval page.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"balance":{"type":"number","description":"Personal Appreci Credit balance available to spend."}},"required":["balance"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_send_gift":{"post":{"operationId":"appreci_send_gift","summary":"Prepare a gift for the sender to approve","description":"Prepares a gift and returns a confirmation link. This does NOT send the gift and does NOT spend any credit: the sender must open the link and approve it in Appreci first, and the proposal expires after 24 hours. The user is also emailed the link. Either an Appreci gift card (its priceId from appreci_list_gift_options plus amount, the value the user wants: $10-$250 in $5 steps; only the recipient's email or mobile is needed) or an Assistant pick (pickId from appreci_find_gifts; bought at the store and delivered, so it also needs the recipient's email, mobile and street address - ask the user). Gifts go out when approved; Appreci cannot schedule a later send yet. Limits: A$500 a gift, A$1,000 a day, 20 waiting at once. When reporting back, say the gift is READY TO APPROVE and give the user the link; do not say it has been sent.","x-openai-isConsequential":true,"security":[{"oauth2":["appreci:send"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recipient":{"type":"string","minLength":1,"description":"Email address or phone number of the person receiving the gift."},"recipientName":{"type":"string","description":"The recipient's name, if known — shown on the approval screen."},"priceId":{"type":"string","minLength":1,"description":"The Appreci gift card's priceId from appreci_list_gift_options (give amount too). Give this OR pickId."},"pickId":{"type":"string","minLength":1,"description":"An Assistant pick: a pickId from appreci_find_gifts. Appreci buys it at the store and has it delivered, so also give recipientEmail, recipientPhone and deliveryAddress."},"recipientEmail":{"type":"string","description":"Recipient's email. Required with pickId."},"recipientPhone":{"type":"string","description":"Recipient's mobile number. Required with pickId."},"deliveryAddress":{"type":"object","properties":{"street":{"type":"string"},"suburb":{"type":"string"},"state":{"type":"string"},"postcode":{"type":"string"}},"required":["street","postcode"],"additionalProperties":false,"description":"Where to deliver a pickId gift."},"quantity":{"type":"integer","minimum":1,"maximum":100,"default":1},"amount":{"type":"number","minimum":0,"description":"Required for the Appreci gift card: its value in AUD, $10-$250 in $5 steps, which is what the sender sees on the approval page and is charged. Ignored for an Assistant pick, which is priced by Appreci."},"message":{"type":"string","maxLength":1000,"description":"A short note to the recipient. The sender sees this before approving."},"idempotencyKey":{"type":"string","description":"Supply to make a retry safe; omit and the server derives one."}},"required":["recipient"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"pending_confirmation | duplicate | insufficient_credit | not_permitted | too_many_open | exceeds_cap"},"proposalId":{"type":"string","nullable":true},"confirmUrl":{"type":"string","nullable":true},"expiresAt":{"type":"string","nullable":true},"detail":{"type":"string","nullable":true}},"required":["status","proposalId","confirmUrl","expiresAt","detail"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_get_send_status":{"post":{"operationId":"appreci_get_send_status","summary":"Check a gift's status","description":"Status of one send. Give a proposalId (from appreci_send_gift) to see whether it is still waiting for approval, approved, declined or expired; or a transactionId (from appreci_list_recent_sends) to see whether the gift has been claimed or redeemed.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"proposalId":{"type":"string","description":"A proposalId from appreci_send_gift: is it still waiting for approval?"},"transactionId":{"type":"string","description":"A transactionId from appreci_list_recent_sends: has it been claimed or redeemed?"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["proposal","gift"]},"status":{"type":"string"},"detail":{"type":"string","nullable":true},"proposal":{"type":"object","additionalProperties":{},"nullable":true},"gift":{"type":"object","properties":{"transactionId":{"type":"string","nullable":true},"date":{"type":"string","nullable":true},"gift":{"type":"string","nullable":true,"description":"What was sent, as the app names it."},"to":{"type":"string","nullable":true,"description":"Who it went to, as the app shows them."},"quantity":{"type":"number"},"amount":{"type":"number","nullable":true,"description":"Gift value in AUD, when known."},"status":{"type":"string","nullable":true,"description":"Sent (not yet claimed), Received, Redeemed, Used, Cancelled or Exchanged."},"redeemedOn":{"type":"string","nullable":true},"expiresOn":{"type":"string","nullable":true},"thanked":{"type":"boolean","description":"The recipient has sent a thank-you note."}},"required":["transactionId","date","gift","to","quantity","amount","status","redeemedOn","expiresOn","thanked"],"additionalProperties":false,"nullable":true}},"required":["kind","status","detail","proposal","gift"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_get_proposal":{"post":{"operationId":"appreci_get_proposal","summary":"Check whether a prepared gift has been approved","description":"Returns the status of a gift proposal (pending, confirmed, rejected or expired) so you can tell the user whether their gift is still waiting for approval. appreci_get_send_status also covers this.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"proposalId":{"type":"string","minLength":1,"description":"The proposalId returned by appreci_send_gift."}},"required":["proposalId"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"proposalId":{"type":"string","nullable":true},"status":{"type":"string"},"recipient":{"type":"string","nullable":true},"product":{"type":"string","nullable":true},"amount":{"type":"number","nullable":true},"quantity":{"type":"number","nullable":true},"message":{"type":"string","nullable":true},"requestedBy":{"type":"string","nullable":true},"expiresAt":{"type":"string","nullable":true},"confirmedAt":{"type":"string","nullable":true}},"required":["proposalId","status","recipient","product","amount","quantity","message","requestedBy","expiresAt","confirmedAt"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_list_recent_sends":{"post":{"operationId":"appreci_list_recent_sends","summary":"List gifts the user has sent","description":"The user's most recent sent gifts, newest first: what, to whom, when, the value, and whether each has been claimed, redeemed or thanked for. The same history as Activity in the app.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":50,"default":10,"description":"How many, newest first (1-50)."},"asCompany":{"type":"boolean","description":"Company users: true lists gifts sent on the company's behalf instead of personally."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"sends":{"type":"array","items":{"type":"object","properties":{"transactionId":{"type":"string","nullable":true},"date":{"type":"string","nullable":true},"gift":{"type":"string","nullable":true,"description":"What was sent, as the app names it."},"to":{"type":"string","nullable":true,"description":"Who it went to, as the app shows them."},"quantity":{"type":"number"},"amount":{"type":"number","nullable":true,"description":"Gift value in AUD, when known."},"status":{"type":"string","nullable":true,"description":"Sent (not yet claimed), Received, Redeemed, Used, Cancelled or Exchanged."},"redeemedOn":{"type":"string","nullable":true},"expiresOn":{"type":"string","nullable":true},"thanked":{"type":"boolean","description":"The recipient has sent a thank-you note."}},"required":["transactionId","date","gift","to","quantity","amount","status","redeemedOn","expiresOn","thanked"],"additionalProperties":false}},"total":{"type":"number"}},"required":["sends","total"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_secret_send_status":{"post":{"operationId":"appreci_secret_send_status","summary":"Secret Send circles and their progress","description":"Secret Send is Appreci's group gift swap (Secret Santa / Kris Kringle and other occasions). Lists the circles the user organises or has joined, or one circle in detail: Gift Day, the join-by, gift-list and order-by (cutoff) dates, who has joined and listed gifts, how many gifts are bought, and, after pairing, who the user is buying for. It never reveals who is buying for anyone else.","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"circleId":{"type":"string","description":"A circle to look at in detail. Leave out to list every circle the user organises or has joined."}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"circles":{"type":"array","items":{"type":"object","properties":{"circleId":{"type":"string"},"name":{"type":"string","nullable":true},"occasion":{"type":"string","nullable":true},"giftLimit":{"type":"number","description":"Most a gift may cost, AUD."},"giftDay":{"type":"string","nullable":true,"description":"When everyone swaps gifts (yyyy-MM-dd, Australian Eastern)."},"venue":{"type":"string","nullable":true},"joinBy":{"type":"string","nullable":true,"description":"Everyone should have joined by this day; pairing happens then."},"wishBy":{"type":"string","nullable":true,"description":"Gift lists should be in by this day."},"orderBy":{"type":"string","nullable":true,"description":"The cutoff: last day to buy and still expect delivery."},"orderByPassed":{"type":"boolean"},"paired":{"type":"boolean","description":"People have been paired up."},"joined":{"type":"number"},"invited":{"type":"number"},"listedGifts":{"type":"number","description":"Members who have listed at least one gift they'd like."},"giftsBought":{"type":"number"},"isOrganiser":{"type":"boolean"},"youAreBuyingFor":{"type":"object","properties":{"name":{"type":"string","nullable":true},"theirList":{"type":"array","items":{"type":"string"}}},"required":["name","theirList"],"additionalProperties":false,"nullable":true,"description":"Only the signed-in user's own assignment, after pairing. Never reveals who is buying for whom else."},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"description":"Shown to the organiser only."},"joined":{"type":"boolean"},"hasListedGifts":{"type":"boolean"},"isOrganiser":{"type":"boolean"},"isYou":{"type":"boolean"}},"required":["name","email","joined","hasListedGifts","isOrganiser","isYou"],"additionalProperties":false}},"link":{"type":"string"}},"required":["circleId","name","occasion","giftLimit","giftDay","venue","joinBy","wishBy","orderBy","orderByPassed","paired","joined","invited","listedGifts","giftsBought","isOrganiser","youAreBuyingFor","members","link"],"additionalProperties":false}}},"required":["circles"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_secret_send_create_circle":{"post":{"operationId":"appreci_secret_send_create_circle","summary":"Start a Secret Send circle","description":"Starts a Secret Send circle with a name, occasion, gift limit ($5-$500) and Gift Day, and invites people by email. Appreci works out the join-by, gift-list and order-by dates from Gift Day and pairs people automatically. Needs the Secret Send permission (appreci:secret_send). A circle with nobody to invite is created straight away. This emails people, so the first call only previews: show the user what will happen, and call again with the same arguments plus the confirm_token only after they agree.","x-openai-isConsequential":true,"security":[{"oauth2":["appreci:secret_send"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"What the group calls it, e.g. \"Design team Secret Santa\"."},"occasion":{"type":"string","default":"secret-santa","description":"Occasion key: secret-santa (Kris Kringle), end-of-year, easter, birthday, lunar-new-year, diwali, and others the server lists. Defaults to secret-santa."},"giftLimit":{"type":"number","minimum":5,"maximum":500,"description":"Most each gift may cost, in AUD ($5-$500)."},"giftDay":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day everyone swaps gifts, yyyy-MM-dd. Must leave time to order and deliver (Appreci checks)."},"venue":{"type":"string","maxLength":120,"description":"Where and when everyone meets, e.g. \"Level 3 kitchen, 12:30pm\"."},"invites":{"type":"array","items":{"type":"string","format":"email"},"maxItems":99,"default":[],"description":"Email addresses to invite. The organiser (the user) is a member automatically."},"confirm_token":{"type":"string","description":"Leave out on the first call: you get a preview and a confirm_token. Show the user the preview, and only after they say yes call again with the same arguments plus this token."}},"required":["name","giftLimit","giftDay"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["preview","created","refused"]},"detail":{"type":"string"},"wouldEmail":{"type":"array","items":{"type":"string"},"description":"Who gets an invitation email."},"confirmToken":{"type":"string","nullable":true},"confirmBy":{"type":"string","nullable":true},"circle":{"type":"object","properties":{"circleId":{"type":"string"},"name":{"type":"string","nullable":true},"occasion":{"type":"string","nullable":true},"giftLimit":{"type":"number","description":"Most a gift may cost, AUD."},"giftDay":{"type":"string","nullable":true,"description":"When everyone swaps gifts (yyyy-MM-dd, Australian Eastern)."},"venue":{"type":"string","nullable":true},"joinBy":{"type":"string","nullable":true,"description":"Everyone should have joined by this day; pairing happens then."},"wishBy":{"type":"string","nullable":true,"description":"Gift lists should be in by this day."},"orderBy":{"type":"string","nullable":true,"description":"The cutoff: last day to buy and still expect delivery."},"orderByPassed":{"type":"boolean"},"paired":{"type":"boolean","description":"People have been paired up."},"joined":{"type":"number"},"invited":{"type":"number"},"listedGifts":{"type":"number","description":"Members who have listed at least one gift they'd like."},"giftsBought":{"type":"number"},"isOrganiser":{"type":"boolean"},"youAreBuyingFor":{"type":"object","properties":{"name":{"type":"string","nullable":true},"theirList":{"type":"array","items":{"type":"string"}}},"required":["name","theirList"],"additionalProperties":false,"nullable":true,"description":"Only the signed-in user's own assignment, after pairing. Never reveals who is buying for whom else."},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"description":"Shown to the organiser only."},"joined":{"type":"boolean"},"hasListedGifts":{"type":"boolean"},"isOrganiser":{"type":"boolean"},"isYou":{"type":"boolean"}},"required":["name","email","joined","hasListedGifts","isOrganiser","isYou"],"additionalProperties":false}},"link":{"type":"string"}},"required":["circleId","name","occasion","giftLimit","giftDay","venue","joinBy","wishBy","orderBy","orderByPassed","paired","joined","invited","listedGifts","giftsBought","isOrganiser","youAreBuyingFor","members","link"],"additionalProperties":false,"nullable":true}},"required":["status","detail","wouldEmail","confirmToken","confirmBy","circle"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_secret_send_invite":{"post":{"operationId":"appreci_secret_send_invite","summary":"Invite more people to a Secret Send circle","description":"Invites more people (by email) to a circle the user organises. People already in the circle are not emailed again. After pairing, late joiners are slotted in until the order-by date. Needs the Secret Send permission (appreci:secret_send). This emails people, so the first call only previews: show the user what will happen, and call again with the same arguments plus the confirm_token only after they agree.","x-openai-isConsequential":true,"security":[{"oauth2":["appreci:secret_send"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"circleId":{"type":"string","minLength":1,"description":"The circle, from appreci_secret_send_status."},"emails":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":99,"description":"Email addresses to invite."},"confirm_token":{"type":"string","description":"Leave out on the first call: you get a preview and a confirm_token. Show the user the preview, and only after they say yes call again with the same arguments plus this token."}},"required":["circleId","emails"],"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["preview","invited","refused"]},"detail":{"type":"string"},"wouldEmail":{"type":"array","items":{"type":"string"}},"alreadyInCircle":{"type":"array","items":{"type":"string"}},"confirmToken":{"type":"string","nullable":true},"confirmBy":{"type":"string","nullable":true},"circle":{"type":"object","properties":{"circleId":{"type":"string"},"name":{"type":"string","nullable":true},"occasion":{"type":"string","nullable":true},"giftLimit":{"type":"number","description":"Most a gift may cost, AUD."},"giftDay":{"type":"string","nullable":true,"description":"When everyone swaps gifts (yyyy-MM-dd, Australian Eastern)."},"venue":{"type":"string","nullable":true},"joinBy":{"type":"string","nullable":true,"description":"Everyone should have joined by this day; pairing happens then."},"wishBy":{"type":"string","nullable":true,"description":"Gift lists should be in by this day."},"orderBy":{"type":"string","nullable":true,"description":"The cutoff: last day to buy and still expect delivery."},"orderByPassed":{"type":"boolean"},"paired":{"type":"boolean","description":"People have been paired up."},"joined":{"type":"number"},"invited":{"type":"number"},"listedGifts":{"type":"number","description":"Members who have listed at least one gift they'd like."},"giftsBought":{"type":"number"},"isOrganiser":{"type":"boolean"},"youAreBuyingFor":{"type":"object","properties":{"name":{"type":"string","nullable":true},"theirList":{"type":"array","items":{"type":"string"}}},"required":["name","theirList"],"additionalProperties":false,"nullable":true,"description":"Only the signed-in user's own assignment, after pairing. Never reveals who is buying for whom else."},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true,"description":"Shown to the organiser only."},"joined":{"type":"boolean"},"hasListedGifts":{"type":"boolean"},"isOrganiser":{"type":"boolean"},"isYou":{"type":"boolean"}},"required":["name","email","joined","hasListedGifts","isOrganiser","isYou"],"additionalProperties":false}},"link":{"type":"string"}},"required":["circleId","name","occasion","giftLimit","giftDay","venue","joinBy","wishBy","orderBy","orderByPassed","paired","joined","invited","listedGifts","giftsBought","isOrganiser","youAreBuyingFor","members","link"],"additionalProperties":false,"nullable":true}},"required":["status","detail","wouldEmail","alreadyInCircle","confirmToken","confirmBy","circle"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}},"/actions/appreci_list_verandah_merchants":{"post":{"operationId":"appreci_list_verandah_merchants","summary":"Find Verandah stores and cafés","description":"Read only. Lists active stores and cafés on Verandah, Appreci's local merchant network, where recipients can redeem gifts: name, address, opening hours and, given a position, distance (nearest first).","x-openai-isConsequential":false,"security":[{"oauth2":["appreci:read"]},{"bearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string","maxLength":100,"description":"A store name or word to match, e.g. \"coffee\"."},"latitude":{"type":"number","minimum":-90,"maximum":90,"description":"With longitude: list the nearest first."},"longitude":{"type":"number","minimum":-180,"maximum":180},"withinKm":{"type":"number","exclusiveMinimum":true,"minimum":0,"maximum":1000,"description":"Only stores within this distance (needs a position)."},"region":{"type":"string","enum":["AU","NZ"],"description":"Defaults to AU when no position is given."},"limit":{"type":"integer","minimum":1,"maximum":50,"default":20}},"additionalProperties":false}}}},"responses":{"200":{"description":"The result. A refusal the user should hear about is still a 200 with a status/detail.","content":{"application/json":{"schema":{"type":"object","properties":{"merchants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"distanceKm":{"type":"number","nullable":true},"openNow":{"type":"boolean"},"hours":{"type":"string","nullable":true}},"required":["id","name","address","distanceKm","openNow","hours"],"additionalProperties":false}},"total":{"type":"number"}},"required":["merchants","total"],"additionalProperties":false}}}},"400":{"description":"The arguments did not match the schema.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"401":{"description":"Sign in again: the token is missing, expired or revoked."},"403":{"description":"The connection lacks the permission (scope) this action needs.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}},"429":{"description":"Too many calls. Wait a minute."},"503":{"description":"Appreci could not be reached; nothing was changed."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A personal access token (apr_...) from Appreci > Profile > Connected apps, for server-to-server use."},"oauth2":{"type":"oauth2","description":"Sign in with Appreci. Authorization code with PKCE (S256).","flows":{"authorizationCode":{"authorizationUrl":"https://api.appreci.io/oauth/authorize","tokenUrl":"https://api.appreci.io/oauth/token","refreshUrl":"https://api.appreci.io/oauth/token","scopes":{"appreci:read":"Read the account: gifts, team, sends, balance, Secret Send circles, stores.","appreci:send":"Prepare gifts for the user to approve in Appreci (nothing is charged until they do).","appreci:secret_send":"Start Secret Send circles and invite people.","appreci:admin":"Add people to the user's company team."}}}}}}}