MaxGood.work Public API

Jump to the API endpoint reference ↓

On this page

The Public API gives the Owners and Avatar Admins of Essential Avatars and Enterprise Avatars, and the developers who build for them, programmatic access to MaxGood.work. It manages an Avatar’s Content and Members, and this page grows a section for each endpoint as it ships. It is built for server-to-server integrations.

The Terms of Use set out the disclaimer that applies to the API, how it answers and how to get support. Read them before you build. MaxGood.work provides the API “as is” and publishes no numeric uptime or response-time guarantee.

MaxGood.work posts every announcement of a change to the API and to its terms in the api-announcements channel of the MaxGood.work Global User Community on Discord.

Making a request

The base URL is:

https://api.maxgood.work/v1

The public read tier needs no key. Confirm your connection by fetching the platform statistics:

curl -s https://api.maxgood.work/v1/public/stats

A success answers {"result":"success","response":{...}}. Every response, a failure included, carries the header X-Request-Id; quote it when you ask support about a request.

Error reference

Every failure answers {"result":"failure","response":"<message>","error_code":"<code>","request_id":"<id>"}, with the named extra fields an endpoint lists. The message is fixed text for its code. Branch on error_code.

error_codeHTTP statusMessageExtra fields
coach_is_client400A member cannot be their own Coach.none
coach_user_id_required400A coach user id is required.none
duplicate_email400The email address appears more than once.none
empty_file400The file is empty.none
fact_text_required400The Fact text is required.none
fact_too_long400The Fact text is too long.max_characters, max_tokens, token_count
field_not_object400A field must be an object.field
field_too_large400A field is too large.field, max_length
field_too_long400A field is too long.field, max_length
file_type_not_allowed400This file type is not allowed.none
invalid_batch400The batch must hold 1 to 100 members.none
invalid_email400The email address is not valid.none
invalid_json400The request body is not valid JSON.none
invalid_page400The page must be a whole number of at least 1.none
invalid_page_size400The page size must be a whole number from 1 to 100.none
invalid_request400The request is not valid.fields
invalid_since400The since value cannot be read.none
invalid_status400The status is not valid.none
missing_file400No file was sent.none
no_text_extracted400No text could be read from the file.none
not_a_coach400That member is not a Coach.none
prompt_too_long400The prompt is too long.max_characters, max_tokens
tag_name_invalid400The tag name is not valid.none
tag_name_required400A tag name is required.none
api_key_invalid401The API key is not valid.none
api_key_missing401Send your API key as a Bearer token.none
api_key_revoked401This API key has been revoked.none
admin_not_archivable403An Admin cannot be archived.none
agreement_required403An agreement must be accepted first.agreement_party, agreement_url
api_not_available403This Avatar’s plan does not include the API.none
coach_assign_owner_only403Only the Owner may assign a Coach.none
coach_role_not_enabled403This Avatar’s plan has no Coach role.none
fact_clients_only403This Fact belongs to a member’s Coach view.none
fact_history_not_enabled403This Avatar keeps no Fact history.none
fact_view_only403This key may only view this Fact.none
facts_disabled403Memory is off for this Avatar.none
footer_not_editable403This Avatar’s plan does not allow footer edits.none
insufficient_scope403This API key does not have the scope this call needs.required_scope
interaction_access_required403This key may not see the member’s interactions.none
issuer_not_authorized403The person who issued this API key may not do this.none
key_frozen403This API key has been frozen by MaxGood.work. Contact support.none
member_archived403This member is archived.interaction_id
member_events_endpoint_required403This API key needs a confirmed member-event endpoint.none
member_events_unreachable403The member-event endpoint is unreachable. Confirm it again.none
member_license_expired403This member’s licence has expired.interaction_id
member_suspended403This member’s account is suspended.interaction_id
notes_owner_key_only403This key may not write notes.none
owner_has_no_coach403The Owner has no Coach.none
owner_not_archivable403The Owner cannot be archived.none
owner_not_removable403The Owner cannot be removed.none
priority_owner_key_only403Only a key issued by the Avatar’s Owner may set priority.none
role_change_owner_key_only403Only an Owner key may change or remove Admin and Coach roles.none
support_avatar_not_archivable403This Avatar’s members cannot be archived.none
user_cap_reached403This Avatar has reached its member limit.none
user_data_admin_key_only403This key may not write structured data.none
user_files_owner_coach_only403Only the Owner and Coaches may read file contents.none
user_tags_not_enabled403This Avatar’s plan has no member tags.none
chunk_not_found404No such chunk in this Avatar.none
fact_not_found404No such Fact.none
file_not_found404No such file for this member.none
route_not_found404No such address.none
tag_not_found404The member does not hold that tag.none
title_not_found404No such title in this Avatar.none
user_not_found404No such member in this Avatar.none
method_not_allowed405This address does not accept that method.none
already_member409This person is already a member.none
avatar_full409This Avatar has no open seat.needed, open_seats
fact_budget_exceeded409The Fact budget is used up.active_tokens, max_tokens, token_count
member_erased409This member’s account has been erased.none
title_empty409A title with no active chunks cannot be enabled.none
endpoint_retired410This endpoint has ended.successor
payload_too_large413The request is too large.max_bytes
unsupported_media_type415The content type is not supported.none
auth_throttled429Too many failed key checks. Try again later.none
rate_limited429Too many requests. Try again later.rate_class, retry_after_seconds, limit, window_seconds
internal_error500Something went wrong on our side.none
avatar_no_response502The Avatar produced no reply.none
embedding_failed503The file could not be processed. Try again shortly.none
extraction_failed503The file could not be read. Try again shortly.none
service_unavailable503The service is temporarily unavailable. Try again shortly.none
storage_failed503The file could not be stored. Try again shortly.none
user_documents_unavailable503Member files are temporarily unavailable.none

Platform statistics

GET /v1/public/stats returns the platform-wide historical totals of Avatars, user accounts and stored interactions. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window.

curl -s https://api.maxgood.work/v1/public/stats
{
  "result": "success",
  "response": {
    "total_avatars": 412,
    "total_users": 18230,
    "total_interactions": 1204518
  }
}

The totals include archived and removed accounts and interactions, so they only grow, and the answer is cached for up to 2 minutes. It replaces GET /v1beta/public/stats, which ends on 30 May 2027; total_organizations is total_avatars here.

Foundation Titles

GET /v1/public/foundation/titles lists the public Foundation Titles, the licensed expert content shared with every Avatar. Each title carries its description, its author names, the id of its owner, a live count of the times its content has been cited in an Avatar reply, and the path of its image. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window.

curl -s https://api.maxgood.work/v1/public/foundation/titles
{
  "result": "success",
  "response": {
    "titles": [
      {
        "id": "66a0d4e1c9b8f7a2d3e45f77",
        "name": "The Team Retrospective Handbook",
        "description": "A practical guide to running retrospectives.",
        "authors": ["Jordan Lee"],
        "owner": "5d2c9a7e1b3f4086a9c1e2d3f4a5b6c7",
        "usage_count": 1280,
        "image_url": "/api/image-assets/content_titles/66a0d4e1c9b8f7a2d3e45f77"
      }
    ]
  }
}

The titles are ordered by name without regard to case, and the answer is cached for up to 2 minutes. It replaces GET /v1beta/public/foundation-titles, which ends on 30 May 2027; title is name and title_usage_count is usage_count here.

Foundation Authors

GET /v1/public/foundation/authors lists the Foundation Authors who are publicly shown: those who own a public Author Avatar or have at least one public Foundation title. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window.

curl -s https://api.maxgood.work/v1/public/foundation/authors
{
  "result": "success",
  "response": {
    "authors": [
      {
        "id": "5d2c9a7e1b3f4086a9c1e2d3f4a5b6c7",
        "display_name": "Jordan Lee",
        "bio": "Jordan coaches teams through change.",
        "backlink": "https://jordanlee.example.com",
        "photo_url": "/api/image-assets/users/5d2c9a7e1b3f4086a9c1e2d3f4a5b6c7"
      }
    ]
  }
}

Authors are ordered by display name, and bio and backlink are the empty string when an author has published none. photo_url is the path of the author’s photo: it answers the photo once MaxGood.work has approved it and 404 until then. The answer is cached for up to 60 seconds. It replaces GET /v1beta/public/authors, which ends on 30 May 2027.

Free Avatars

GET /v1/public/free-avatars lists the Avatars every new MaxGood.work account receives for free. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window.

curl -s https://api.maxgood.work/v1/public/free-avatars
{
  "result": "success",
  "response": {
    "avatars": [
      {
        "name": "MaxGood.work User Support",
        "free_trial_days": 0,
        "key_benefit": "Get quick, friendly answers about using MaxGood.work whenever you need them."
      }
    ]
  }
}

Each Avatar appears once, ordered by name without regard to case. free_trial_days is 0 for an Avatar that is free with no end date and otherwise the free period in days. The answer is cached for up to 5 minutes. It replaces GET /v1beta/public/free-avatars, which ends on 30 May 2027.

Publicly listed Avatars

GET /v1/public/avatars lists the Avatars that are on the MaxGood.work public listing, in ascending order of id. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window. The list is not paged, and a change to an Avatar’s listing state appears on the next request, and any other change to an entry within 2 minutes.

The optional query type narrows the list to one Avatar type, by exact name. Send it at most once, with 1 to 100 printable characters; any other value answers 400 invalid_request with fields naming type. A name that matches no listed Avatar answers an empty list.

curl -s "https://api.maxgood.work/v1/public/avatars?type=Author%20Avatar"
{
  "result": "success",
  "response": {
    "avatars": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b12",
        "name": "Northwind Leadership Coach",
        "mission": "Help leaders build teams that trust each other.",
        "vision": "Workplaces where people do their best work.",
        "values": "Candour, curiosity, care",
        "industries": "Software, professional services",
        "expertise": "Team coaching",
        "avatar_info_url": "https://northwind.example.com/coach",
        "avatar_logo_url": "/api/avatar_image/binary/65f1c2a9b7d3e4a1c8f09b12?v=0123456789ab",
        "type": "Author Avatar",
        "category": { "key": "featured", "label": "Featured Avatars", "rank": 1 },
        "created_at": "2026-03-18T14:05:09.000Z",
        "has_icon": true,
        "popularity": "POPULAR",
        "public_link": "https://app.example.com/forms/65f1c2a9b7d3e4a1c8f09b12/intake",
        "public_sort_rank": 1
      }
    ]
  }
}

Show the list grouped by category.rank, lowest first, and render whatever key, label and rank you receive, because categories can be added. popularity is WAITLIST when anyone is waiting to join the Avatar, POPULAR when half or more of the Avatar type’s member capacity is filled, and NEW otherwise; no member or waiting count is published. public_link is the page to send a visitor to, or null.

It replaces GET /v1beta/public/avatars, which ends on 30 May 2027; created_on is created_at here.

Foundation showcase

GET /v1/public/foundation/showcase returns the public Foundation titles and the publicly listed Author Avatars in one answer, composed for a showcase page. It needs no key, allows requests from any browser origin and is limited to 600 requests per client IP address in each 60-second window.

curl -s https://api.maxgood.work/v1/public/foundation/showcase
{
  "result": "success",
  "response": {
    "titles": [
      {
        "id": "66a0d4e1c9b8f7a2d3e45f77",
        "name": "The Team Retrospective Handbook",
        "description": "A practical guide to running retrospectives.",
        "authors": ["Jordan Lee"],
        "image_url": "",
        "owner_image_url": ""
      }
    ],
    "author_avatars": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b12",
        "name": "Northwind Leadership Coach",
        "type": "Author Avatar",
        "blurb": "Help leaders build teams that trust each other.",
        "avatar_logo_url": "https://app.example.com/logos/northwind.png",
        "avatar_info_url": "https://northwind.example.com/coach"
      }
    ]
  }
}

Each title appears once, ordered by name. image_url and owner_image_url are the empty string when no approved image exists. It replaces GET /v1beta/public/showcase, which ends on 30 May 2027 and answers the same shape.

Avatar and API keys

GET /v1/avatar returns the id, name and Avatar type of the Avatar your key is bound to. It is the first endpoint that needs a key. Send the key as a Bearer token:

curl -s https://api.maxgood.work/v1/avatar \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b12",
    "name": "Northwind Leadership Coach",
    "type": "Enterprise Avatar"
  }
}

An Avatar Owner or Avatar Admin creates a key on the Account tab of Avatar Admin in the MaxGood.work web app. A key is shown once, is bound to one Avatar and acts on that Avatar only. Keep it on your server.

Scopes

A key carries one or more scopes, chosen when it is created: read allows every GET endpoint, write every other change to Members and Content, and chat the Avatar’s replies. GET /v1/avatar needs read. A key created before /v1 carries all three.

Checks every key endpoint makes

The first check that fails answers. The checks hold on /v1 and /v1beta.

  1. The key is present, well formed, known and not revoked: 401 api_key_missing, api_key_invalid or api_key_revoked. Too many failed key checks from one address answer 429 auth_throttled with Retry-After.
  2. MaxGood.work has not paused the key: 403 key_frozen. MaxGood.work may pause a key for abuse or on request. The Avatar’s Owner and Admins are told by email and see the pause in Avatar Admin, and only MaxGood.work staff lift it.
  3. The Avatar’s type offers the API: 403 api_not_available.
  4. The key holds the scope the endpoint needs: 403 insufficient_scope, with required_scope.
  5. The person who issued the key may act: 403 issuer_not_authorized. A key acts with the authority its issuer holds in the Avatar, and a key whose issuer has left the Avatar reaches nothing.
  6. The Avatar’s Owner has accepted the current Owner agreement: 403 agreement_required, with agreement_party owner and agreement_url. On /v1beta this check applies to keys created after the Owner agreement was published.

Limits

Every lookup counts in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar. All the Avatar’s keys share the limit, on /v1 and /v1beta together, and a minute starts at the top of the minute in UTC. Over the limit, an endpoint answers 429 rate_limited with Retry-After, and rate_class, retry_after_seconds, limit and window_seconds in the body. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request refused by a check costs nothing against a limit. MaxGood.work support raises an Avatar’s limits on request.

GET /v1/avatar replaces GET /v1beta/organization, which ends on 1 June 2027, and GET /api/enterprise/get_organization_details, which ends on 1 June 2027. org_id and org_name are id and name here, and type is new.

The API has no search endpoint. POST /v1beta/rag-search and POST /api/enterprise/avatar_simple_rag answer 410 endpoint_retired with a successor of null.

Content titles

GET /v1/content/titles lists the Content titles of the Avatar your key is bound to: the titles the Avatar owns, then the titles other Avatars have shared into it. The key needs the read scope, and the person who issued it must be an Avatar Owner or an Avatar Admin.

curl -s "https://api.maxgood.work/v1/content/titles?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b21",
        "name": "Leadership handbook",
        "is_enabled": true,
        "chunk_count": 42,
        "created_at": "2026-11-14T15:04:05Z",
        "is_linked_from_other_avatar": false,
        "priority": "high"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

page is a whole number of at least 1 and page_size a whole number from 1 to 100; they default to 1 and 50. A value outside those bounds receives 400 invalid_page or invalid_page_size and costs nothing against a limit. total is the number of titles across all pages, and a page past the last has no items. The Avatar’s own titles come first and the shared-in titles after them; within each group the newest title is first.

Each title carries chunk_count (its active chunks), is_linked_from_other_avatar (true for a title shared in from another Avatar) and priority (high, normal or low: the Avatar’s own preference for the title, normal until it is set). Each lookup counts in the Avatar’s reading limit, described under Limits above.

GET /v1/content/titles replaces GET /v1beta/content/titles, which ends on 1 June 2027. The list is paged in items where /v1beta answered titles; title_id and title_name are id and name, count is chunk_count, is_linked_from_other_organization is is_linked_from_other_avatar and titles_count is total.

One Content title

GET /v1/content/titles/{title_id} returns one Content title of your Avatar: a title the Avatar owns or a title another Avatar has shared into it. The key needs the read scope and its issuer must be an Avatar Owner or an Avatar Admin.

curl -s https://api.maxgood.work/v1/content/titles/65f1c2a9b7d3e4a1c8f09b33 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b33",
    "name": "Coaching interactions",
    "is_enabled": false,
    "chunk_count": 18,
    "created_at": "2026-10-02T09:30:00Z",
    "is_linked_from_other_avatar": true,
    "priority": "normal"
  }
}

The title is the one the list of titles shows, with the same fields. is_linked_from_other_avatar is true for a title shared into your Avatar, and priority is your Avatar’s own preference for it.

A title that does not exist, a deleted title, a title of another Avatar and a title no Avatar has shared into yours all return 404 with error_code title_not_found, so the answer never shows whether a title of another Avatar exists. A 200 and a 404 count as one lookup in the Avatar’s reading limit.

GET /v1/content/titles/{title_id} replaces GET /v1beta/content/titles/<title_id>, which ends on 1 June 2027 and returned 404 for a title shared into your Avatar. title_id and title_name are id and name here, count is chunk_count, and is_linked_from_other_organization is is_linked_from_other_avatar.

Content titles

POST /v1/content/titles creates an empty Content title in the Avatar your key is bound to. The key needs the write scope and must have been issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. The body is a JSON object with one field, name.

curl -s -X POST https://api.maxgood.work/v1/content/titles \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Leadership playbook"}'
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b99",
    "name": "Leadership playbook",
    "is_enabled": false,
    "chunk_count": 0,
    "created_at": "2026-12-01T15:04:05.123Z",
    "is_linked_from_other_avatar": false,
    "priority": "normal"
  }
}

The call answers 201. A new title is switched off, holds no sections and has the priority normal.

The body is checked strictly

name is a string of 1 to 300 characters once spaces at its ends are removed. A field that is not listed, a value of the wrong type (the string "true" is not a boolean, a number is not a string) and a missing or blank name answer 400 invalid_request. The body of the failure names each refused field and gives a short reason, and never repeats what you sent:

{
  "result": "failure",
  "response": "The request is not valid.",
  "error_code": "invalid_request",
  "request_id": "req_3f9a1c07b2d84e5a9c6d0e1f2a3b4c5d",
  "fields": { "name": "required" }
}

A body that is not JSON answers 400 invalid_json, another Content-Type answers 415 unsupported_media_type and a body over 65,536 bytes answers 413 payload_too_large.

Content changes and their limit

Creating a title is a Content change. Content changes count in one daily limit for the Avatar, shared by all its keys on /v1 and /v1beta. An Avatar that has any member who is neither its Owner nor an Admin (a Coach who is not an Admin, or a client) may make one Content change a day. An Avatar whose members are all its Owner and Admins may make as many Content changes a day as it may add documents to Content: 120 for an Enterprise Avatar and 60 for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Over the limit the call answers 429 rate_limited with rate_class content_changes and Retry-After. MaxGood.work support raises an Avatar’s limits on request.

A request refused by any check costs nothing against the limit. When MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and creates nothing: retry it after the wait.

POST /v1/content/titles replaces POST /v1beta/content/titles, which ends on 1 June 2027. title is name here, and the answer is the new title where it was message and id.

Change a title

PATCH /v1/content/titles/{title_id} renames a title, switches it on or off, or sets its priority. Send at least one of name, is_enabled and priority. The key needs the write scope.

curl -s -X PATCH https://api.maxgood.work/v1/content/titles/66a0d4e1c9b8f7a2d3e45f01 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Coaching for Scrum Masters", "is_enabled": true, "priority": "high"}'

The answer is the title as it is after the change. Every field is checked before any is applied, so a request with one invalid field changes nothing. The call counts as one change in the Avatar’s content limit, whatever the number of fields.

  • name is text of 1 to 255 characters. A title shared in from another Avatar cannot be renamed.
  • is_enabled is true or false. A title with no active chunks cannot be switched on (409 title_empty), and a title shared in from another Avatar is switched by the Avatar that shares it.
  • priority is high, normal or low: the Avatar’s own preference for the title, own or shared in. Only a key issued by the Avatar’s Owner may send it (403 priority_owner_key_only).

A field the call does not know, such as a weight, answers 400 invalid_request with the reason unknown_field in fields. A title that is missing, deleted or not reachable by the Avatar answers 404 title_not_found.

PATCH /v1/content/titles/{title_id} replaces PUT /v1beta/content/titles/{title_id}, which ends on 1 June 2027, and PUT /v1beta/content/titles/{title_id}/is_enabled, which ends on 1 June 2027. title_name is name here.

Delete a title

DELETE /v1/content/titles/{title_id} deletes a title of your Avatar, and the deletion cannot be undone. The title’s name, description and footer and each chunk’s text are replaced with placeholders, the chunks stop being retrieved and the uploaded files are permanently deleted. Replies that already cited the chunks keep their citations. The key needs the write scope and an issuer who is an Owner or Admin of the Avatar.

curl -s -X DELETE https://api.maxgood.work/v1/content/titles/<title_id> \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b13",
    "deleted": true
  }
}

A title that does not exist, is already deleted, belongs to another Avatar or is shared into your Avatar answers 404 title_not_found. The call counts as one change in the Avatar’s content changes limit, and a refused request costs nothing.

DELETE /v1/content/titles/{title_id} replaces DELETE /v1beta/content/titles/{title_id}, which ends on 1 June 2027. The response is id and deleted where it was a message.

Add a file or text to a Content title

POST /v1/content/titles/{title_id}/uploads adds a file or Markdown text to one of your Avatar’s own Content titles. The text of a file is read out of it, divided into sections, embedded and stored. The key needs the write scope. Send a file as multipart form data:

curl -s https://api.maxgood.work/v1/content/titles/<title_id>/uploads \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -F "file=@sprint-planning-guide.pdf" \
  -F "source_document_title=Sprint planning guide"

or send text as JSON:

curl -s https://api.maxgood.work/v1/content/titles/<title_id>/uploads \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "# Sprint planning\n\nA sprint planning meeting sets the goal.", "source_document_title": "Sprint planning guide"}'
{
  "result": "success",
  "response": {
    "title_id": "66a0d4e1c9b8f7a2d3e45f01",
    "document_id": "0b6f2c1e-8a4d-4f0e-9a57-3d1c2b7e9a10",
    "chunk_ids": ["66a0d4e1c9b8f7a2d3e45f60", "66a0d4e1c9b8f7a2d3e45f61"],
    "chunk_count": 2
  }
}

document_id is null when you upload text. A request is at most 25 MiB, measured on the body as it arrives; a larger one receives 413 payload_too_large with max_bytes. The title must be one of your Avatar’s own titles; a title that does not exist, is deleted or is shared in from another Avatar receives 404 title_not_found. A file with no content or of a program type receives 400, and a body with a field the endpoint does not list receives 400 invalid_request with fields.

Each upload counts in the Avatar’s upload limit: 120 a day for an Enterprise Avatar and 60 a day for an Essential Avatar. All the Avatar’s keys share the limit, on /v1 and /v1beta together, and a day starts at 00:00 UTC. Over the limit the call receives 429 rate_limited with Retry-After. While the counting service is unavailable the call receives 503 service_unavailable and nothing is counted. A request refused by a check costs nothing against the limit.

POST /v1/content/titles/{title_id}/uploads replaces POST /v1beta/content/titles/{title_id}/upload, which ends on 1 June 2027. The success status is 201, message is gone and the multipart part name files is not accepted: use file. WordPress sites update the MaxGood.work WordPress plugin to 1.3.0.

Content title documents

GET /v1/content/titles/{title_id}/documents lists the source documents of one of your Avatar’s Content titles, newest first, a page at a time. Each document carries a link to the original file that works for 15 minutes. It needs a key with the read scope, issued by an Owner or Admin of the Avatar.

curl -s "https://api.maxgood.work/v1/content/titles/65f1c2a9b7d3e4a1c8f09b21/documents?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09c01",
        "title_id": "65f1c2a9b7d3e4a1c8f09b21",
        "filename": "Team handbook.pdf",
        "extension": "pdf",
        "content_type": "application/pdf",
        "size_bytes": 482113,
        "uploaded_at": "2026-03-02T15:04:05.000Z",
        "is_active": true,
        "download_url": "https://files.example.com/documents/65f1c2a9b7d3e4a1c8f09c01?signature=example",
        "download_url_expires_at": "2026-03-02T15:19:05.000Z"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

Paging

page counts from 1 and page_size is 1 to 100, default 50. total is the number of documents the title holds on all pages. A value out of range answers 400 invalid_page or invalid_page_size. The documents run from the newest uploaded_at to the oldest.

download_url opens the original file without a key, so treat it as you would the file. It works for 15 minutes, and download_url_expires_at says when it stops. Call the endpoint again for a fresh link. A document that is not active has null for both.

Errors

A title that does not exist, was deleted, belongs to another Avatar or is shared into your Avatar from another answers 404 title_not_found; the answers are alike. Each lookup counts in your Avatar’s reading limit, and a refused request costs nothing.

It replaces GET /v1beta/content/titles/{title_id}/documents, which ends on 1 June 2027. document_id, filetype, mimetype, filesize and upload_date are id, extension, content_type, size_bytes and uploaded_at here, and document_count is total.

Chunks of a title

GET /v1/content/titles/{title_id}/chunks lists the chunks of one of your Avatar’s titles, one page at a time. It needs a key with the read scope whose issuer is an Owner or Admin of the Avatar.

curl -s "https://api.maxgood.work/v1/content/titles/65f1c2a9b7d3e4a1c8f09b20/chunks?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b21",
        "title_id": "65f1c2a9b7d3e4a1c8f09b20",
        "name": "Onboarding checklist",
        "text": "## Week one\n\nMeet your team and set up your tools.",
        "is_active": true
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

The chunks are ordered by id ascending, which is the order they were created in, so a page stays the same between calls. page counts from 1 and page_size is 50 by default and at most 100; any other value answers 400 invalid_page or invalid_page_size. total is the number of active chunks the title holds. A title that does not exist, was deleted or belongs to another Avatar answers 404 title_not_found.

The lookup counts in the Avatar’s reading limit. It replaces GET /v1beta/content/titles/{title_id}/chunks, which ends on 1 June 2027; chunk_id, chunk_name and chunk_text are id, name and text here, and the list is paged.

Content chunks

GET /v1/content/chunks/{chunk_id} returns one chunk of your Avatar’s Content: its id, the id of its title, its name, its text as Markdown and whether it is active. The key needs the read scope, and the person who issued it must be an Owner or Admin of the Avatar.

curl -s https://api.maxgood.work/v1/content/chunks/66a0d4e1c9b8f7a2d3e45f11 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "66a0d4e1c9b8f7a2d3e45f11",
    "title_id": "66a0d4e1c9b8f7a2d3e45f01",
    "name": "Sprint planning guide-1",
    "text": "A sprint planning meeting sets the goal for the next sprint.",
    "is_active": true
  }
}

A chunk that was deleted stays readable with is_active false and placeholder text and name, so a chunk id from an earlier reply remains valid to read. A chunk of a member’s own profile file belongs to the member and is not served here.

The chunk is looked up in your Avatar only. An id that no chunk of your Avatar has, the id of a chunk of another Avatar and an id that cannot be a chunk id all answer 404 chunk_not_found, so the answer never shows whether a chunk exists elsewhere.

Each lookup counts in the Avatar’s reading limit, shared by all its keys on /v1 and /v1beta together. The checks every key endpoint makes are listed under Avatar and API keys.

GET /v1/content/chunks/{chunk_id} replaces GET /v1beta/content/chunks/{chunk_id}, which ends on 1 June 2027. chunk_text and chunk_name are text and name here, and id is new.

Edit a chunk

PATCH /v1/content/chunks/{chunk_id} replaces the text of a chunk of your Avatar’s Content and embeds it again, so the Avatar retrieves the new text. The key needs the write scope.

curl -s -X PATCH https://api.maxgood.work/v1/content/chunks/66a0d4e1c9b8f7a2d3e45f10 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "A sprint planning meeting sets the goal and the scope of the next sprint."}'
{
  "result": "success",
  "response": {
    "id": "66a0d4e1c9b8f7a2d3e45f10",
    "title_id": "66a0d4e1c9b8f7a2d3e45f01",
    "name": "Sprint planning guide",
    "text": "A sprint planning meeting sets the goal and the scope of the next sprint.",
    "is_active": true
  }
}

The body is a JSON object of at most 1 MiB. text is required and may hold HTML, which is converted to Markdown. source_document_title is optional: send it to rebuild the chunk’s header with a new source document name, and leave it out to keep the current one. Any other field is refused with 400 invalid_request, whose fields names each invalid field and the reason.

A chunk that does not exist, is deleted or belongs to another Avatar answers 404 chunk_not_found. The edit counts as one change in the Avatar’s content-changes limit and is refused with 503 while the counting service is unavailable.

PATCH /v1/content/chunks/{chunk_id} replaces PUT /v1beta/content/chunks/{chunk_id}, which ends on 1 June 2027. chunk_text is text here, and the answer is the edited chunk.

Delete a section of Content

DELETE /v1/content/chunks/{chunk_id} deletes one section of your Avatar’s Content. The section’s text and name are replaced with placeholders, it becomes inactive and its embedding is removed, so the Avatar stops using it. Its id stays readable with GET /v1/content/chunks/{chunk_id}, and replies that cited it keep their citations. The request takes no body.

curl -s -X DELETE https://api.maxgood.work/v1/content/chunks/65f1c2a9b7d3e4a1c8f09b77 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b77",
    "deleted": true
  }
}

The key needs the write scope, and the person who issued it must be an Owner or Admin of the Avatar.

A section that does not exist, a section of another Avatar, a section that is already deleted and a section of a deleted title all answer 404 chunk_not_found. The answer never shows whether a section exists in another Avatar.

The call counts as one change in the Avatar’s Content changes limit once the section is found: 1 a day for an Avatar that has any member who is neither its Owner nor an Admin, and otherwise the Avatar’s adding-documents limit (120 a day for an Enterprise Avatar, 60 for an Essential Avatar). All the Avatar’s keys share the limit, on /v1 and /v1beta together, and a day starts at 00:00 UTC. Over the limit the call answers 429 rate_limited with rate_class content_changes and Retry-After. While the counting service is unavailable the call answers 503 service_unavailable and deletes nothing. A request refused before the section is found costs nothing.

It replaces DELETE /v1beta/content/chunks/{chunk_id}, which ends on 1 June 2027. The response holds id and deleted where /v1beta answered a message.

GET /v1/content/titles/{title_id}/footer returns the footer the Avatar shows with content from one of its own titles. The key needs the read scope, and the person who issued it must be the Avatar’s Owner or an Avatar Admin.

curl -s https://api.maxgood.work/v1/content/titles/66a0d4e1c9b8f7a2d3e45f10/footer \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "66a0d4e1c9b8f7a2d3e45f30",
    "title_id": "66a0d4e1c9b8f7a2d3e45f10",
    "footer_html": "<p>Source: Sprint planning guide</p>",
    "is_default": false
  }
}

When the title has no footer of its own, id is null, footer_html is the footer default of the Avatar’s type and is_default is true.

A title that does not exist, is deleted, belongs to another Avatar or is only shared into your Avatar answers 404 title_not_found, as does an id that cannot name a title. The lookup counts in the Avatar’s reading limit.

GET /v1/content/titles/{title_id}/footer replaces GET /v1beta/content/titles/{title_id}/footer, which ends on 1 June 2027. footer_id is id here, and title_id and is_default are new.

PUT /v1/content/titles/{title_id}/footer sets the footer shown under a Content title and replaces the footer the title already has. The title must be one of your Avatar’s own. The key needs the write scope and its issuer must be an Owner or an Admin of the Avatar.

curl -s -X PUT https://api.maxgood.work/v1/content/titles/65f1c2a9b7d3e4a1c8f09b31/footer \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"footer_html": "<p>Prepared by Northwind Leadership Coaching.</p>"}'
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b44",
    "title_id": "65f1c2a9b7d3e4a1c8f09b31",
    "footer_html": "<p>Prepared by Northwind Leadership Coaching.</p>",
    "is_default": false
  }
}

The body is exactly {"footer_html": "<text>"}, a string of at most 500 characters; a missing value, a value that is not a string and any other field are 400 invalid_request, with fields naming each fault. Scripts, event handlers and script links are removed from the HTML before it is stored, and the response shows what was stored. The call is an upsert and answers 200 whether or not the title had a footer.

A title that does not exist, is deleted, belongs to another Avatar, is shared into your Avatar or is a Foundation title answers 404 title_not_found. An Avatar whose type does not allow footer edits answers 403 footer_not_editable.

The call counts as one change in the Avatar’s Content-changes limit, shared by all the Avatar’s keys on /v1 and /v1beta: 1 a day when the Avatar has any Member who is neither its Owner nor an Admin, otherwise 120 a day for an Enterprise Avatar and 60 a day for an Essential Avatar. If the counting service is unavailable the call answers 503 and changes nothing.

It replaces PUT /v1beta/content/titles/{title_id}/footer, which ends on 1 June 2027.

Facts

GET /v1/content/facts lists the Facts an Avatar keeps about itself: short statements the Avatar weaves into its replies. The list holds the Avatar’s own Facts, in ascending order of id. The Facts about a member belong to that member.

curl -s "https://api.maxgood.work/v1/content/facts?status=active&page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "412",
        "text": "Replies are short, concrete and end with one action step.",
        "token_count": 12,
        "status": "active",
        "source": "owner",
        "created_by_user_id": "3b9e1f6a2c8d4e57b0a1c9d8e7f64a35",
        "created_at": "2026-11-10T15:04:05.000Z",
        "updated_at": "2026-11-10T15:04:05.000Z",
        "version_count": 0,
        "access": "edit"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1,
    "limits": {
      "per_fact_tokens": 60,
      "total_tokens": 2000,
      "active_tokens": 12,
      "history_tracked": true
    }
  }
}

The key needs the read scope, and the person who issued it must be the Avatar’s Owner or an Avatar Admin. status is active, hidden or all (the default). page starts at 1 and page_size goes from 1 to 100; a value outside those ranges answers 400 with invalid_page or invalid_page_size, and the API never adjusts it. total counts every matching Fact across pages.

Each Fact carries access: edit when the person who issued the key may change it in the MaxGood.work web app and view when they may only read it. created_by_user_id is null where that person may not see who wrote it, and version_count is null when the Avatar’s type keeps no edit history. limits reports the Avatar type’s limits: the most one Fact may hold, the most the Avatar’s active Facts may hold together (the Facts about members count toward the same total), what they use now, and whether edit history is kept. An Avatar whose type keeps no Facts answers 403 facts_disabled.

The call counts as one lookup in the Avatar’s reading limit, and a call that a check refuses counts for nothing. It replaces GET /v1beta/facts for the Avatar’s own Facts; GET /v1beta/facts now takes at most 100 Facts a page, answers 400 invalid_paging for a value outside the range, and counts in the reading limit.

One Avatar-wide Fact

GET /v1/content/facts/{fact_id} returns one Fact the Avatar keeps about itself. The key needs the read scope, and its issuer must manage the Avatar’s Members.

curl -s https://api.maxgood.work/v1/content/facts/123 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "123",
    "text": "Our office is closed on public holidays.",
    "token_count": 8,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "65f1c2a9b7d3e4a1c8f09b99",
    "created_at": "2026-11-01T09:30:00+00:00",
    "updated_at": "2026-11-02T10:00:00+00:00",
    "version_count": 2,
    "access": "edit"
  }
}

id is a string, and version_count is null when the Avatar’s type keeps no Fact history. access is edit or view. An id that is not a Fact id, a Fact that does not exist, a Fact of another Avatar, a Fact about a Member and a Fact the key’s issuer may not see all answer 404 fact_not_found. An Avatar whose type has no Facts answers 403 facts_disabled. The lookup counts in the Avatar’s reading limit.

GET /v1/content/facts/{fact_id} replaces GET /v1beta/facts/{fact_id} for an Avatar-wide Fact. scope and user_id are not in the response.

Add a Fact

POST /v1/content/facts adds one Fact to the Avatar your key is bound to. A Fact is a short statement the Avatar keeps in mind and weaves into every reply, to every member. The key needs the write scope, and the person who issued it must be an Avatar Owner or Avatar Admin. The Fact is recorded as added by that person, who can edit it in the MaxGood.work web app.

curl -s -X POST https://api.maxgood.work/v1/content/facts \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Prefers short replies with one concrete next step."}'
{
  "result": "success",
  "response": {
    "id": "123",
    "text": "Prefers short replies with one concrete next step.",
    "token_count": 9,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "65f1c2a9b7d3e4a1c8f09b13",
    "created_at": "2026-12-01T10:15:00+00:00",
    "updated_at": "2026-12-01T10:15:00+00:00",
    "version_count": 0,
    "access": "edit"
  }
}

The body holds text and nothing else, is sent as application/json and is at most 16,384 bytes. text is trimmed and must hold at most 2,000 characters and at most the largest Fact the Avatar type allows, counted in tokens. A missing or blank text answers 400 fact_text_required; a longer one answers 400 fact_too_long with max_characters, or with token_count and max_tokens. Any other field, or a text that is not a string, answers 400 invalid_request with fields naming the field and the reason. An Avatar type that keeps no Facts answers 403 facts_disabled.

The Fact budget

The Avatar type limits the total of the Avatar’s active Facts, counted in tokens. The check and the add happen while no other Fact of the Avatar is being added, changed or switched on, so two requests sent together cannot pass the total between them. A Fact that would pass it answers 409 fact_budget_exceeded with active_tokens (what the active Facts hold now), max_tokens (the total) and token_count (this Fact), and nothing is stored. Hide or delete a Fact, or shorten this one, and send the request again.

Limit

An add is one change in the Avatar’s content-change limit, shared by all the Avatar’s keys on /v1 and /v1beta. An Avatar that has members other than its Owner and Admins may make one content change a day; any other Avatar may make 120 a day (Enterprise Avatar) or 60 a day (Essential Avatar). A request refused by a check costs nothing against the limit. Over the limit the endpoint answers 429 rate_limited with Retry-After and rate_class content_changes. If the counting service is unavailable, the endpoint answers 503 service_unavailable and adds nothing.

It replaces the Avatar-wide use of POST /v1beta/facts (a request with no user_id). A Fact about one member is added with the Members endpoints.

Change a Fact

PATCH /v1/content/facts/{fact_id} hides, shows or rewords one of the Avatar’s own Facts. Send status (active or hidden), text or both, and no other field. It needs a key with the write scope, issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff.

curl -s -X PATCH https://api.maxgood.work/v1/content/facts/412 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Prefers a short summary before the detail.", "status": "active"}'
{
  "result": "success",
  "response": {
    "id": "412",
    "text": "Prefers a short summary before the detail.",
    "token_count": 9,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "65f1c2a9b7d3e4a1c8f09b13",
    "created_at": "2026-11-02T14:05:09+00:00",
    "updated_at": "2026-11-30T09:12:41+00:00",
    "version_count": 2,
    "access": "edit"
  }
}

The change is one step. The new text, the new status and the saved earlier version of the text are written together or not at all, so a refused change leaves the Fact as it was. The Avatar’s active Facts have a total limit of tokens, checked against the Fact as it will stand after the change: showing a hidden Fact, or making an active Fact longer, answers 409 fact_budget_exceeded with active_tokens and max_tokens when the limit would be passed, while a Fact that stays hidden never counts.

An Admin cannot change a Fact an Avatar Coach added (403 fact_view_only). A Fact of a member, a Fact of another Avatar and an id that is not a whole number answer 404 fact_not_found. A change counts in the Avatar’s daily limit for Content changes. It replaces PATCH /v1beta/facts/{fact_id} for an Avatar-wide Fact.

Delete a Fact

DELETE /v1/content/facts/{fact_id} deletes one of the Avatar’s own Facts, the ones that describe the Avatar, together with its edit history. The deletion cannot be undone; to keep a Fact and stop the Avatar using it, hide it instead.

curl -s -X DELETE https://api.maxgood.work/v1/content/facts/412 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "412",
    "deleted": true
  }
}

The key needs the write scope, and its issuer must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff acting for the Avatar. A Fact the issuer may read but not change answers 403 fact_view_only. An Avatar whose type has no Facts answers 403 facts_disabled. A Fact about a member, a Fact of another Avatar and an id that names nothing all answer 404 fact_not_found.

The deletion counts as one change in the Avatar’s daily limit for changing Content, shared by all its keys on /v1 and /v1beta. If that limit cannot be counted just now, the call answers 503 and deletes nothing.

DELETE /v1/content/facts/{fact_id} replaces DELETE /v1beta/facts/{fact_id}, which answers the Fact’s fact_id as a number and retires on the date in its Sunset header. The answer names the Fact id as a string.

Fact history

GET /v1/content/facts/{fact_id}/history lists the earlier texts of one of your Avatar’s own Facts, newest edit first. Only an Enterprise Avatar keeps a Fact’s edit history; any other Avatar type receives 403 fact_history_not_enabled. The key needs the read scope and an issuer who manages the Avatar.

curl -s "https://api.maxgood.work/v1/content/facts/123/history?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "fact_id": "123",
    "items": [
      {
        "id": "41",
        "fact_id": "123",
        "text": "Offers coaching in English and French.",
        "token_count": 7,
        "edited_at": "2026-11-02T15:20:41.125Z",
        "edited_by_user_id": "65f1c2a9b7d3e4a1c8f09b13",
        "edit_source": "owner"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

Each version is the text the Fact held before an edit. page counts from 1 and page_size runs from 1 to 100 (default 50); a value outside those bounds answers 400 invalid_page or invalid_page_size. total counts every version the Fact has. edited_by_user_id is null when the editor is not shown to the reader. A Fact that does not exist, belongs to another Avatar, is about a member or may not be viewed answers 404 fact_not_found; an Avatar whose type has no Facts answers 403 facts_disabled.

The lookup counts in the Avatar’s reading limit and is recorded in the Avatar’s audit trail with the Fact’s id and the number of versions returned, never the text of a Fact. It replaces GET /v1beta/facts/{fact_id}/history.

Logistics

GET /v1/content/logistics returns the contact and availability details your Avatar shows: support email addresses, links, a phone number, office hours and a note on the preferred channel. Its Owner and Admins edit them in Avatar Admin under Logistics in the MaxGood.work web app.

curl -s https://api.maxgood.work/v1/content/logistics \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "support_email": { "enabled": true, "value": ["help@northwind.example.com"] },
    "whatsapp": { "enabled": true, "value": "" },
    "booking_url": { "enabled": true, "value": "https://northwind.example.com/book" },
    "website_url": { "enabled": true, "value": "https://northwind.example.com" },
    "linkedin_url": { "enabled": false, "value": "" },
    "x_url": { "enabled": true, "value": "" },
    "instagram_url": { "enabled": true, "value": "" },
    "phone": { "enabled": true, "number": "+1 555 010 0199", "country": "Canada" },
    "office_hours": { "enabled": true, "hours": "Monday to Friday, 9 am to 5 pm", "timezone": "America/Toronto" },
    "preferred_channel_note": { "enabled": true, "value": "Email is the fastest way to reach us." }
  }
}

The response always holds the same ten keys. Each has one enabled switch, true until the Avatar’s Owner or Admin switches the detail off. phone and office_hours keep two values under one switch. A detail that is not stored is the empty string, and support_email is then an empty array.

The key needs the read scope, and the person who issued it must be an Owner or Admin of the Avatar. The lookup counts in the Avatar’s reading limit, shared by all the Avatar’s keys.

Replace the Logistics

PUT /v1/content/logistics replaces the Logistics of the Avatar your key is bound to with the object you send. The key needs the write scope and must have been issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. Send all ten keys, in the shape GET /v1/content/logistics answers.

curl -s -X PUT https://api.maxgood.work/v1/content/logistics \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{
    "support_email": { "enabled": true, "value": ["help@northwind.example.com"] },
    "whatsapp": { "enabled": true, "value": "" },
    "booking_url": { "enabled": true, "value": "https://northwind.example.com/book" },
    "website_url": { "enabled": true, "value": "https://northwind.example.com" },
    "linkedin_url": { "enabled": false, "value": "" },
    "x_url": { "enabled": true, "value": "" },
    "instagram_url": { "enabled": true, "value": "" },
    "phone": { "enabled": true, "number": "+1 555 010 0199", "country": "Canada" },
    "office_hours": { "enabled": true, "hours": "Monday to Friday, 9 am to 5 pm", "timezone": "America/Toronto" },
    "preferred_channel_note": { "enabled": true, "value": "Email is the fastest way to reach us." }
  }'

The call answers 200 with the Logistics now held, in the same shape. It replaces everything: a key you leave out is refused, not kept. To clear a detail, send the empty string, and for support_email an empty array.

The body is checked strictly

A missing key, a key that is not listed, an enabled that is not true or false and a value of the wrong type answer 400 invalid_request. Each value is then checked with the checks of Avatar Admin under Logistics: a link is an http or https address of at most 500 characters, a phone number holds 7 to 20 digits, email addresses are stored in lower case without repeats, notes are at most 1,000 characters and a time zone is a name from the IANA time zone database. The first value that fails answers 400 and nothing is written. The body of the failure names the path and gives a short reason, and never repeats what you sent:

{
  "result": "failure",
  "response": "The request is not valid.",
  "error_code": "invalid_request",
  "request_id": "req_3f9a1c07b2d84e5a9c6d0e1f2a3b4c5d",
  "fields": { "phone.number": "invalid_format" }
}

A body that is not JSON answers 400 invalid_json, another Content-Type answers 415 unsupported_media_type and a body over 65,536 bytes answers 413 payload_too_large.

Content changes and their limit

Replacing the Logistics is a Content change. Content changes count in one daily limit for the Avatar, shared by all its keys on /v1 and /v1beta. An Avatar that has any member who is neither its Owner nor an Admin may make one Content change a day. An Avatar whose members are all its Owner and Admins may make as many Content changes a day as it may add documents to Content: 120 for an Enterprise Avatar and 60 for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Over the limit the call answers 429 rate_limited with rate_class content_changes and Retry-After. A request refused by any check costs nothing against the limit. When MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and changes nothing: retry it after the wait.

The Logistics reach every reply your Avatar gives. MaxGood.work screens the text an Avatar’s Owners and Admins write, the Logistics included, with an automated classifier, and its staff review what the screen flags. The screen never refuses or delays a call.

Member-event endpoints

A /v1 key, and a /v1beta key made after this release, reaches member data (members, tags, User Files, member Facts, notes, structured data, interactions and the Avatar’s replies) only while it is attached to its Avatar’s confirmed, answering member-event endpoint. A /v1beta key made before this release keeps its member access without an endpoint until the /v1beta routes retire. The endpoint is a small web address you operate. MaxGood.work tells it when a member is removed or erased and when the Avatar is deleted, so your integration can delete what it holds about that member. Without one, a key reaches the Avatar’s details and its Content (its Facts and Logistics included); a call for member data answers 403 member_events_endpoint_required. The requirement holds on /v1 and on /v1beta. The WordPress plugin needs no endpoint.

What the endpoint must be

  • An https address on port 443 whose host resolves to public addresses only. Private, loopback, link-local and cloud-metadata addresses are refused, and so are an address with a user name or a fragment.
  • It belongs to one Avatar. Several keys of that Avatar may be attached to it, and one address is never registered for two Avatars.
  • MaxGood.work connects with full certificate verification, does not follow redirects, waits 3 seconds to connect and 5 to read, and ignores the body of your answer. Any 2xx status is a success. Answer inside a few seconds and do the work afterwards.

Adding it

  1. An Avatar Owner or Admin opens Avatar Admin > Account, enters the address in Member-event endpoints and saves. The signing secret is shown once; copy it.
  2. MaxGood.work sends a signed verification event carrying a six-digit one-time code to the address.
  3. The person types the code into the panel within 15 minutes. Five wrong codes destroy it; ask for another. Until it is confirmed the endpoint does not work.
  4. The person attaches each key that needs member data to the endpoint.

Changing the address repeats the confirmation, and the old address serves until the new one is confirmed. The Avatar’s Owner and Admins are emailed when an endpoint is added, changed or confirmed.

The events

Every event is a JSON object with ids and a time only, never a name, an email or any text: event_id, type, avatar_id, member_id (null when the event is about no member) and occurred_at. A verification event also carries code.

{"avatar_id":"65f1c2a9b7d3e4a1c8f09b12","event_id":"3b1c...","member_id":"65f1c2a9b7d3e4a1c8f09b21","occurred_at":"2026-12-01T15:20:41.000Z","type":"member.removed"}
  • member.removed: the member’s membership ended (the Users tab, MaxGood.work support or the API).
  • member.erased: the person’s account was erased.
  • avatar.deleted: the Avatar was deleted; member_id is null.
  • ping: MaxGood.work checks the endpoint every hour.
  • verification: carries the one-time code.

Delete the data you hold about a member that came from the API, including copies of Facts, User File text, notes, structured data and interactions, within 30 days of a member.removed or member.erased event. After avatar.deleted, delete everything you hold about that Avatar’s members. Ignore an event type you do not know and answer 2xx.

Verifying the signature

Each delivery is a POST with the headers X-MG-Timestamp (whole epoch seconds), X-MG-Event-Id and X-MG-Signature (v1= followed by lower-case hex). The signature is HMAC-SHA256, keyed with the endpoint’s signing secret, over the timestamp, a full stop and the exact body bytes. Compare in constant time, refuse a timestamp more than five minutes from your clock, and treat a repeated X-MG-Event-Id as already handled (delivery is at least once).

Delivery and checks

MaxGood.work delivers each event once per endpoint, whatever the number of keys attached, at once and in order. A failed event is retried with a growing wait (30 seconds, doubling, at most an hour), and the later events of that endpoint wait behind it. Every delivery and every hourly ping counts as a check. When failures start, the Avatar’s Owner and Admins are emailed. After 24 hours of continuous failure every key attached to the endpoint answers 403 member_events_unreachable, and the Owner and Admins are emailed again. A fresh one-time code (request it in the panel, then confirm it) restores access and delivers the events that waited, oldest first.

Reference receiver, Python

"""A member-event receiver: standard library only. Copyright MaxGood.work."""
import hashlib, hmac, json, time
from http.server import BaseHTTPRequestHandler, HTTPServer

SECRET = b"whsec_replace_with_your_signing_secret"
SEEN = set()  # keep event ids in a database in production


def delete_member_data(avatar_id, member_id):
    """Delete what you hold about this member within 30 days."""


class Receiver(BaseHTTPRequestHandler):
    def do_POST(self):
        body = self.rfile.read(int(self.headers.get("Content-Length", 0)))
        stamp = self.headers.get("X-MG-Timestamp", "")
        expected = "v1=" + hmac.new(
            SECRET, stamp.encode() + b"." + body, hashlib.sha256).hexdigest()
        signature = self.headers.get("X-MG-Signature", "")
        fresh = stamp.isdigit() and abs(time.time() - int(stamp)) <= 300
        if not (fresh and hmac.compare_digest(expected, signature)):
            self.send_response(401)
            self.end_headers()
            return
        event = json.loads(body)
        if event["event_id"] not in SEEN:
            SEEN.add(event["event_id"])
            if event["type"] in ("member.removed", "member.erased"):
                delete_member_data(event["avatar_id"], event["member_id"])
        self.send_response(200)
        self.end_headers()


HTTPServer(("0.0.0.0", 8080), Receiver).serve_forever()

Reference receiver, Node.js

// A member-event receiver: built-in modules only. Copyright MaxGood.work.
const http = require("http");
const crypto = require("crypto");

const SECRET = "whsec_replace_with_your_signing_secret";
const seen = new Set(); // keep event ids in a database in production

function deleteMemberData(avatarId, memberId) {
  // Delete what you hold about this member within 30 days.
}

http.createServer((req, res) => {
  const chunks = [];
  req.on("data", (chunk) => chunks.push(chunk));
  req.on("end", () => {
    const body = Buffer.concat(chunks);
    const stamp = req.headers["x-mg-timestamp"] || "";
    const expected = "v1=" + crypto.createHmac("sha256", SECRET)
      .update(stamp + ".").update(body).digest("hex");
    const given = Buffer.from(req.headers["x-mg-signature"] || "");
    const want = Buffer.from(expected);
    const fresh = /^\d+$/.test(stamp) &&
      Math.abs(Date.now() / 1000 - Number(stamp)) <= 300;
    if (!fresh || given.length !== want.length || !crypto.timingSafeEqual(given, want)) {
      res.writeHead(401).end();
      return;
    }
    const event = JSON.parse(body);
    if (!seen.has(event.event_id)) {
      seen.add(event.event_id);
      if (event.type === "member.removed" || event.type === "member.erased") {
        deleteMemberData(event.avatar_id, event.member_id);
      }
    }
    res.writeHead(200).end();
  });
}).listen(8080);

Troubleshooting

You seeWhat it meansWhat to do
403 member_events_endpoint_requiredThe key is not attached to a confirmed endpoint.Add the endpoint in Avatar Admin > Account, confirm its code and attach the key.
403 member_events_unreachableThe endpoint failed for 24 hours.Fix the endpoint, request a fresh code in the panel and confirm it.
The code is not validIt expired after 15 minutes, was already used or was destroyed by five wrong guesses.Request a new code.
Your signature check failsThe secret, the timestamp or the body bytes differ from what was signed.Sign the timestamp, a full stop and the raw body; use the secret shown when the endpoint was added or rotated.
The address is refusedIt is not https on port 443, it resolves to a private address or it holds a user name.Use a public https address.

Members

GET /v1/members lists the people in the Avatar your key is bound to. It needs a key with the read scope whose issuer manages members (the Avatar’s Owner or an Avatar Admin), and it needs a confirmed member-event endpoint: see Member-event endpoints. It counts as one lookup in the Avatar’s reading limit.

curl -s "https://api.maxgood.work/v1/members?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b21",
        "email": "jordan.lee@example.com",
        "name": "Jordan Lee",
        "is_admin": false,
        "is_coach": false,
        "is_owner": false,
        "license_expires_at": "2027-03-31T00:00:00.000Z",
        "joined_at": "2026-11-02T15:20:41.000Z",
        "coach_user_id": null,
        "status": "active",
        "archived_at": null
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

The list holds the Avatar’s active members, the member who joined last first. page counts from 1 and page_size is from 1 to 100 (50 when you send none); a value outside those bounds answers 400 invalid_page or invalid_page_size and counts nothing. total counts every active member whatever the page, and a page past the end holds no items. A member who was removed, and a person whose account was erased, is not listed.

status is active, license_expired (the licence date has passed) or archived (an Owner, Admin or MaxGood.work staff paused the membership). coach_user_id names the member’s Coach on an Avatar whose type has the Coach role, and is null otherwise. A member does not carry profile fields, notes or structured data.

It replaces GET /v1beta/users: user_id is id, license_expiry_date is license_expires_at and users_count is total.

One Member

GET /v1/members/{user_id} returns one Member of the Avatar your key is bound to, with the person’s standing in this Avatar only:

curl -s https://api.maxgood.work/v1/members/<user_id> \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b44",
    "email": "una.example@example.com",
    "name": "Una Example",
    "is_admin": false,
    "is_coach": false,
    "is_owner": false,
    "license_expires_at": "2027-06-30T00:00:00Z",
    "joined_at": "2026-03-12T15:04:05Z",
    "coach_user_id": null,
    "status": "active",
    "archived_at": null
  }
}

The key needs the read scope. Its issuer must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff, and a confirmed member-event endpoint must be attached to the key. A Member whose licence has expired or who is archived is returned, with the status that says so. A Member’s notes, structured data, Facts, tags and Files have their own endpoints.

An unknown person, a person who is not a Member of your Avatar, a removed Member and an erased person all receive 404 user_not_found, as does a user_id that cannot be a Member id. The call counts as one lookup in the Avatar’s reading limit; a request refused before the lookup costs nothing.

GET /v1/members/{user_id} replaces GET /v1beta/users/{user_id}. user_id is id here, license_expiry_date is license_expires_at, and the profile fields, notes and structured_data are not returned.

Add a Member

POST /v1/members adds one person to the Avatar your key is bound to and answers with the new Member. The key needs the write scope and must have been issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. The Avatar needs a confirmed member-event endpoint. The body is a JSON object: email and name are required, and is_admin, is_coach, license_expires_at and profile are optional.

curl -s -X POST https://api.maxgood.work/v1/members \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"email": "pat.example@example.com", "name": "Pat Example", "license_expires_at": "2027-03-01"}'
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f0a001",
    "email": "pat.example@example.com",
    "name": "Pat Example",
    "is_admin": false,
    "is_coach": false,
    "is_owner": false,
    "license_expires_at": "2027-03-01T00:00:00.000Z",
    "joined_at": "2026-12-01T15:04:05.123Z",
    "coach_user_id": null,
    "status": "active",
    "archived_at": null
  }
}

The call answers 201. The person receives an invitation to the Avatar. The answer is the same whether or not the email already had an account: it carries the name and email you sent and never says whether an account existed.

The body is checked strictly

license_expires_at is an RFC 3339 timestamp with a zone, a YYYY-MM-DD date (read as UTC) or null. profile holds the strings role, expertise, industry, goal, problem and language; MaxGood.work uses them only when the email has no account yet, and never returns them. notes and structured_data are not part of adding a Member and are refused with the reason not_editable. A field that is not listed, a value of the wrong type (the string "false" is not a boolean) and an email that is not an address answer 400 invalid_request. The body of the failure names each refused field and gives a short reason, and never repeats what you sent:

{
  "result": "failure",
  "response": "The request is not valid.",
  "error_code": "invalid_request",
  "request_id": "req_3f9a1c07b2d84e5a9c6d0e1f2a3b4c5d",
  "fields": { "email": "invalid_format", "notes": "not_editable" }
}

A value over its save limit answers 400 field_too_long, field_too_large or field_not_object with field and max_length. A body that is not JSON answers 400 invalid_json, another Content-Type answers 415 unsupported_media_type and a body over 65,536 bytes answers 413 payload_too_large.

Roles, seats and existing Members

Setting is_admin or is_coach to true needs a key issued by the Avatar’s Owner or by MaxGood.work staff (403 role_change_owner_key_only), and is_coach also needs an Avatar whose plan has the Coach role (403 coach_role_not_enabled). A person who is already a Member answers 409 already_member. An Avatar with no open seat answers 409 avatar_full with needed and open_seats, and an Avatar at its member limit answers 403 user_cap_reached.

Member changes and their limit

Adding a Member is a member change. Member changes count in one daily limit for the Avatar, shared by all its keys on /v1 and /v1beta: 1,440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Over the limit the call answers 429 rate_limited with rate_class member_changes and Retry-After. MaxGood.work support raises an Avatar’s limits on request.

A request refused by any check costs nothing against the limit. When MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and adds nobody: retry it after the wait.

POST /v1/members replaces POST /v1beta/users. The profile fields move under profile, license_expiry_date is license_expires_at, and the answer is the Member where it was user_id, existing_user and invitation_sent.

Adding members in a batch

POST /v1/members/batch adds 1 to 100 people to the Avatar your key is bound to in one request. The key needs the write scope and must have been issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. Only a key issued by the Owner or by MaxGood.work staff may set is_admin or is_coach. Each row has the fields of POST /v1/members.

curl -s -X POST https://api.maxgood.work/v1/members/batch \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"users": [
    {"email": "maria.santos@example.com", "name": "Maria Santos"},
    {"email": "li.wei@example.com", "name": "Li Wei"}
  ]}'
{
  "result": "success",
  "response": {
    "results": [
      { "index": 0, "email": "maria.santos@example.com", "status": "added", "id": "65f1c2a9b7d3e4a1c8f09c01" },
      { "index": 1, "email": "li.wei@example.com", "status": "already_member" }
    ],
    "added_count": 1
  }
}

results holds one entry for each row, in request order. status is added, already_member, invalid or failed; an entry with invalid or failed carries an error_code, and invalid_request adds fields. A row that is refused does not stop the rows after it. The answer never says whether an address already had an account.

A list is refused whole or added

The body, the key’s authority for every row and the seats for the whole list are checked before anyone is added. When the Avatar has too few open seats the call answers 409 avatar_full with needed and open_seats, and nobody is added. The list then counts one for each row in the Avatar’s daily member-change limit, and a list that does not fit what is left of the day answers 429 rate_limited with Retry-After and adds nobody. When MaxGood.work cannot read the limit’s counter the call answers 503 service_unavailable and adds nobody: retry it after the wait.

It replaces POST /v1beta/users/batch, which ends on 1 June 2027; user_id is id here and added is added_count.

Update a member

PATCH /v1/members/{user_id} changes a member’s roles and licence date. Send at least one of is_admin, is_coach and license_expires_at; a field you leave out stays as it is, and license_expires_at set to null removes the end date.

curl -s -X PATCH https://api.maxgood.work/v1/members/<user_id> \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"is_admin": true, "license_expires_at": "2027-06-30"}'

The answer is the member as stored. The roles are real booleans: "false" and 1 answer 400. A profile field, notes or structured_data answers 400 invalid_request with the reason not_editable in fields.

  • Only a key issued by the Avatar’s Owner changes is_admin or is_coach: 403 role_change_owner_key_only.
  • On an Avatar type with no Coach role, is_coach: true answers 403 coach_role_not_enabled.
  • A person who is not an active member answers 404 user_not_found.
  • The call needs the write scope and counts as one change in the Avatar’s member-change limit; a refused request costs nothing.

It replaces the role and licence fields of PUT /v1beta/users/{user_id}, where license_expiry_date is license_expires_at here.

Remove a member

DELETE /v1/members/{user_id} ends one person’s membership in your Avatar. The person’s account and their memberships in other Avatars stay. The key needs the write scope.

curl -s -X DELETE https://api.maxgood.work/v1/members/7c1d5e0a9b2f4c36a8e1d0b4f5a96c27 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "7c1d5e0a9b2f4c36a8e1d0b4f5a96c27",
    "deleted": true
  }
}

The Avatar’s Owner is never removed (403 owner_not_removable). An Admin or a Coach is removed only with a key issued by the Avatar’s Owner or by MaxGood.work staff (403 role_change_owner_key_only). An unknown person, a person who is not a member of your Avatar and an erased person all answer 404 user_not_found. Removing a member counts as one change in the Avatar’s member-changes limit, and your member-event endpoint receives a member.removed event.

DELETE /v1/members/{user_id} replaces DELETE /v1beta/users/{user_id}, which ends on 1 June 2027.

Archive a member

POST /v1/members/{user_id}/archive pauses a member of your Avatar. Everything stored about the member stays (notes, structured data, the Coach link, the licence date, User Files and interactions), the member cannot chat with the Avatar and holds no seat. The call takes no body and is idempotent: archiving a member who is already archived answers 200 and changes nothing.

curl -s -X POST https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09c77/archive \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09c77",
    "email": "casey.lee@example.com",
    "name": "Casey Lee",
    "is_admin": false,
    "is_coach": false,
    "is_owner": false,
    "license_expires_at": null,
    "joined_at": "2026-03-18T14:05:09.000Z",
    "coach_user_id": null,
    "status": "archived",
    "archived_at": "2026-11-30T15:20:00.000Z"
  }
}

The key needs the write scope, its issuer must be an Avatar Owner, an Avatar Admin or MaxGood.work staff (otherwise 403 issuer_not_authorized), and the Avatar needs its member-event endpoint attached and verified. The Owner, an Admin and the members of the MaxGood.work User Support Avatar cannot be archived (403 owner_not_archivable, admin_not_archivable, support_avatar_not_archivable), a person who is not a member of the Avatar answers 404 user_not_found, and an erased member answers 409 member_erased.

Each change counts in the Avatar’s member-change limit, 1440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all its keys. A refused request costs nothing. It replaces POST /v1beta/users/{user_id}/archive, which ends on 1 June 2027.

Unarchive a member

POST /v1/members/{user_id}/unarchive restores an archived member exactly as archiving paused them. The member’s notes, structured data, Avatar Coach, licence date, User Files and interactions are as they were, and the member chats again and holds a seat again. The request takes no body, and the call succeeds again for a member who is not archived.

curl -s -X POST https://api.maxgood.work/v1/members/<user_id>/unarchive \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"

It answers 200 with the member, whose archived_at is null. The key needs the write scope, its issuer must be the Avatar Owner, an Avatar Admin or MaxGood.work staff, and the Avatar’s member-event endpoint must be confirmed.

  • 404 user_not_found: the person is not an active member of the Avatar.
  • 403 owner_not_archivable, admin_not_archivable, support_avatar_not_archivable: these members are never archived.
  • 409 member_erased: the member’s account was erased.
  • 409 avatar_full: the Avatar has no open seat. The body carries needed 1 and open_seats 0.

The call counts as one change in the Avatar’s member-changes limit, shared by all the Avatar’s keys on /v1 and /v1beta. A refused call costs nothing.

POST /v1/members/{user_id}/unarchive replaces POST /v1beta/users/{user_id}/unarchive, which ends on 1 June 2027.

A member’s Coach

PUT /v1/members/{user_id}/coach makes one member of the Avatar the Coach of another, or leaves the member without a Coach. It needs the write scope. Send the Coach’s id, or null to remove the Coach:

curl -s -X PUT https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09b33/coach \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"coach_user_id": "65f1c2a9b7d3e4a1c8f09b21"}'
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09b33",
    "email": "member@example.com",
    "name": "Casey Member",
    "is_admin": false,
    "is_coach": false,
    "is_owner": false,
    "license_expires_at": null,
    "joined_at": "2026-03-02T14:05:09.000Z",
    "coach_user_id": "65f1c2a9b7d3e4a1c8f09b21",
    "status": "active",
    "archived_at": null
  }
}

The body holds coach_user_id and nothing else. The answer is the member as they are afterwards, also when the member already had that Coach.

Who may assign a Coach

  • The Avatar’s plan must have the Coach role: otherwise 403 coach_role_not_enabled.
  • The Owner has no Coach: 403 owner_has_no_coach.
  • The Coach is a member who holds the Coach role and is not the member: otherwise 400 not_a_coach or coach_is_client.
  • A key issued by the Owner or by MaxGood.work staff may assign any Coach. A key issued by an Admin may not assign a Coach to another Admin and may not name its own issuer as the Coach: 403 coach_assign_owner_only. A key whose issuer is neither the Owner nor an Admin receives 403 issuer_not_authorized.
  • A person who is not a member of the Avatar receives 404 user_not_found.

Every call counts as one change in the Avatar’s member-change limit, shared by all the Avatar’s keys on /v1 and /v1beta; a call refused by a check counts for nothing, and every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.

PUT /v1/members/{user_id}/coach replaces PUT /v1beta/users/{user_id}/coach, which ends on 1 June 2027. The answer is the member in the /v1 shape, and not_org_admin is issuer_not_authorized.

Member tags

GET /v1/members/{user_id}/tags lists the tags an integration has attached to one member of the Avatar your key is bound to. Member tags are part of Enterprise Avatars. The key needs the read scope, the person who issued it must be an Avatar Owner or an Avatar Admin, and the key must be attached to your Avatar’s member-event endpoint.

curl -s "https://api.maxgood.work/v1/members/<user_id>/tags?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "name": "onboarding-complete",
        "description": "The member finished the onboarding course.",
        "source": "learning-platform",
        "applied_at": "2026-10-02T09:30:00.000Z"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

page is a whole number of at least 1 and page_size a whole number from 1 to 100; they default to 1 and 50. A value outside those bounds receives 400 invalid_page or invalid_page_size and costs nothing against a limit. total is the number of tags the member holds across all pages, and a page past the last has no items. The oldest tag is first, and tags applied at the same moment are listed by name.

A tag is identified by its name within the member, so it has no id; applied_at is null when no time was recorded. A person who is not an active member of your Avatar receives 404 user_not_found, and an Avatar without member tags receives 403 user_tags_not_enabled. Each lookup counts in the Avatar’s reading limit, described under Limits above.

GET /v1/members/{user_id}/tags replaces GET /v1beta/users/{user_id}/tags, which ends on 1 June 2027. The list is paged in items where /v1beta answered tags beside the member’s user_id.

Add tags to a member

POST /v1/members/{user_id}/tags adds 1 to 50 tags to a member of your Avatar. Member tags are available on Enterprise Avatars. The key needs the write scope, its issuer must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff, and the Avatar’s member-event endpoint must be attached and confirmed. The call is an upsert by tag name: a name the member already holds keeps its applied_at and takes the new description and source. The tags are written together or not at all, and the Avatar uses a member’s tags when it replies to them.

curl -s -X POST https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09b12/tags \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"tags":[{"name":"completed-onboarding","description":"Finished the onboarding course","source":"lms-sync"}]}'
{
  "result": "success",
  "response": {
    "items": [
      {
        "name": "completed-onboarding",
        "description": "Finished the onboarding course",
        "source": "lms-sync",
        "applied_at": "2026-12-01T15:04:05.123Z"
      }
    ],
    "page": 1,
    "page_size": 1,
    "total": 1
  }
}

Each tag has exactly the text fields name, description and source. The name is not blank. The name and the description have none of {, }, [, ], <, >, " or ', and together at most 2,000 characters. A member’s tags in an Avatar together hold at most the number of characters the Avatar’s type allows. A body that is not valid answers 400 invalid_request with fields naming each invalid path, for example tags[2].name, and a short reason; the answer never repeats a value you sent. A call that would pass the character limit answers 400 invalid_request with fields {"tags":"too_long"} and writes nothing.

An unknown member, a member of another Avatar, a person who left the Avatar and a person whose account was erased all answer the same 404 user_not_found. The call counts once in the Avatar’s member-changes limit, whatever the number of tags: 1,440 a day for an Enterprise Avatar. It replaces POST /v1beta/tags, which ends on 1 June 2027, and POST /api/enterprise/add_tags_to_user, which ends on 1 June 2027. The member is user_id in the path, not user_email in the body, and tags_to_add is tags.

Remove a tag from a member

DELETE /v1/members/{user_id}/tags?name={name} removes the tag named in name from a member of your Avatar. It is available on Enterprise Avatars. The key needs the write scope and an issuer who is an Owner or Admin of the Avatar, and the Avatar needs a member-event endpoint.

curl -s -X DELETE "https://api.maxgood.work/v1/members/<user_id>/tags?name=completed-onboarding" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "completed-onboarding",
    "deleted": true
  }
}

A name that is missing answers 400 tag_name_required, and one that is given more than once, is too long or holds a character a tag name cannot hold answers 400 tag_name_invalid. A person who is not a member of your Avatar answers 404 user_not_found, and a member who holds no tag of that name answers 404 tag_not_found. The call counts as one change in the Avatar’s member changes limit, and a refused request costs nothing.

DELETE /v1/members/{user_id}/tags replaces DELETE /v1beta/users/{user_id}/tags, which ends on 1 June 2027. The response is id and deleted where it was user_id, name and removed, and a tag the member does not hold answers 404 where it answered 200.

Member files

GET /v1/members/{user_id}/files lists the User Files the Avatar keeps about one member, newest first. The key needs the read scope and must be attached to the Avatar’s confirmed member-event endpoint. Only the extracted text of a file is ever available through the API; the original is never offered for download.

curl -s "https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f01a10/files?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09c55",
        "user_id": "65f1c2a9b7d3e4a1c8f01a10",
        "filename": "coaching-notes.txt",
        "extension": "txt",
        "content_type": "text/plain",
        "size_bytes": 2048,
        "chunk_count": 3,
        "uploaded_at": "2026-11-14T15:04:05Z"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1,
    "access": "content",
    "limits": { "max_bytes": 5242880, "allowed_extensions": ["txt", "md", "pdf"] },
    "chunks_in_prompt": 3
  }
}

A key reads what the person who issued it reads in the MaxGood.work web app. access is content or metadata; under metadata every file’s filename and content_type are null. A person who is not a member of the Avatar, and a member whose files the issuer may not see, both answer 404 user_not_found. page is a whole number of at least 1 and page_size a whole number from 1 to 100; they default to 1 and 50, and a value outside those bounds receives 400 invalid_page or invalid_page_size and costs nothing against a limit. Each lookup counts in the Avatar’s reading limit, described under Limits above.

GET /v1/members/{user_id}/files replaces GET /v1beta/users/{user_id}/files, which ends on 1 June 2027. The list is items where /v1beta answered files; file_id is id and each file carries its user_id.

A member’s User File

GET /v1/members/{user_id}/files/{file_id} returns the details of one file an Avatar keeps about a member. The key needs the read scope and the Avatar’s confirmed member-event endpoint.

curl -s https://api.maxgood.work/v1/members/<user_id>/files/<file_id> \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "4f2a9c1e8b7d4a63b5c0e1f2a3b4c5d6",
    "user_id": "65f1c2a9b7d3e4a1c8f09b13",
    "filename": "intake-notes.pdf",
    "extension": "pdf",
    "content_type": "application/pdf",
    "size_bytes": 48213,
    "chunk_count": 6,
    "uploaded_at": "2026-11-09T14:20:00Z"
  }
}

The original file is never offered for download. The text the Avatar extracted is at GET /v1/members/{user_id}/files/{file_id}/chunks.

Who sees the file

A key acts with the access its issuer has in the MaxGood.work web app. When the issuer may read the member’s files in full, the call returns the file. When the issuer may only list them without their names, it answers 403 user_files_owner_coach_only. A person who is not a member of the Avatar, an erased member and a member the issuer may not reach all answer 404 user_not_found, so the answer never tells whether a person exists. A file that does not exist, belongs to another member or belongs to another Avatar answers 404 file_not_found.

The call counts as one lookup in the Avatar’s reading limit. Each read is recorded in the Avatar’s audit trail with ids only.

GET /v1/members/{user_id}/files/{file_id} replaces GET /v1beta/users/{user_id}/files/{file_id}, which ends on 1 June 2027. The file is the response itself, not {"file": ...}; file_id is id and user_id is new.

Read a Member’s User File

GET /v1/members/{user_id}/files/{file_id}/chunks returns the text the Avatar extracted from a Member’s User File, in chunks by position, one page at a time. This is the text the Avatar reads when it answers the Member. The original file is never offered.

curl -s "https://api.maxgood.work/v1/members/<user_id>/files/<file_id>/chunks?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09b31",
        "position": 0,
        "text": "Maria leads a team of eight and wants shorter planning meetings.",
        "token_count": 12
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

The key needs the read scope, and the Avatar needs a member-event endpoint that is attached and answering. The key’s issuer needs full access to the Member’s User Files; an issuer who may list the files without their names receives 403 user_files_owner_coach_only.

A Member who is not in the Avatar, or whom the key’s issuer may not reach, receives 404 user_not_found. A file that does not exist, is another Member’s or belongs to another Avatar receives 404 file_not_found. page starts at 1 and page_size is from 1 to 100; any other value receives 400 invalid_page or invalid_page_size.

Each call counts as one lookup in the Avatar’s reading limit once it has passed its checks; a refused request counts nothing. GET /v1/members/{user_id}/files/{file_id}/chunks replaces GET /v1beta/users/{user_id}/files/{file_id}/chunks, which ends on 1 June 2027. chunks is items, chunk_id is id, and the file object is not repeated.

Upload a User File about a member

POST /v1/members/{user_id}/files stores a document about one member of your Avatar. Your Avatar reads its text when it answers that member. The key needs the write scope and must be attached to your Avatar’s member-event endpoint. Send the file as multipart form data with the single part file:

curl -s https://api.maxgood.work/v1/members/<user_id>/files \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -F "file=@intake-notes.txt"
{
  "result": "success",
  "response": {
    "id": "0b6f2c1e-8a4d-4f0e-9a57-3d1c2b7e9a10",
    "user_id": "65f1c2a9b7d3e4a1c8f09b12",
    "filename": "intake-notes.txt",
    "extension": "txt",
    "content_type": "text/plain",
    "size_bytes": 2048,
    "chunk_count": 2,
    "uploaded_at": "2026-11-30T14:05:09Z"
  }
}

The extension must be one your Avatar’s file settings allow, the file must not be empty, and it must be within limits.max_bytes as the file list reports it. The size is measured on the body as it arrives; a larger file receives 413 payload_too_large with max_bytes. A part other than file receives 400 invalid_request with fields. The original file is never returned.

A person who is not an active member, and a member your key’s issuer may not reach, receive 404 user_not_found. A key whose issuer may list the member’s files without their names, but not open them, receives 403 user_files_owner_coach_only.

Each upload counts as one member change in the Avatar’s daily limit: 1,440 for an Enterprise Avatar and 360 for an Essential Avatar. All the Avatar’s keys share the limit, on /v1 and /v1beta together, and a day starts at 00:00 UTC. Over the limit the call receives 429 rate_limited with Retry-After. While the counting service is unavailable the call receives 503 service_unavailable and nothing is counted. A request refused by a check costs nothing against the limit.

POST /v1/members/{user_id}/files replaces POST /v1beta/users/{user_id}/files, which ends on 1 June 2027. The answer is the file itself, not wrapped in file, and file_id is now id.

Delete a member’s User File

DELETE /v1/members/{user_id}/files/{file_id} deletes one User File the Avatar keeps about a member, together with the original the Avatar stored with it. The key needs the write scope and must be attached to the Avatar’s confirmed member-event endpoint.

curl -s -X DELETE https://api.maxgood.work/v1/members/<user_id>/files/<file_id> \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "65f1c2a9b7d3e4a1c8f09c55",
    "deleted": true,
    "mode": "hard"
  }
}

mode is hard when the file was removed. It is soft when an earlier reply cited one of the file’s chunks: the text is redacted and a record of the citation stays. Either way the member’s list omits the file, and a second delete of the same file answers 404 file_not_found.

A key does no more than the person who issued it can do in the MaxGood.work web app. An issuer who may list the member’s files without their names, an Avatar Admin who is not the member’s Avatar Coach, receives 403 user_files_owner_coach_only. The person is 404 user_not_found when they are not an active member of the Avatar and when the issuer may not reach their files; the file is 404 file_not_found when it does not exist, is already deleted or belongs to another member or Avatar. A value that cannot name a person or a file receives the same 404.

A delete that succeeds counts as one member change in the Avatar’s daily limit: 1440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all the Avatar’s keys, on /v1 and /v1beta together. A request refused by a check costs nothing. Every delete and every refusal is recorded in the Avatar’s audit trail with ids only.

It replaces DELETE /v1beta/users/{user_id}/files/{file_id}, which ends on 1 June 2027. The answer adds the file’s id.

Member Facts

GET /v1/members/{user_id}/facts lists the Facts an Avatar keeps about one member: short statements the Avatar weaves into its replies to that member. The list holds the Facts about this member, in ascending order of id.

curl -s "https://api.maxgood.work/v1/members/7c2d9e4b1a3f4685b0e1d2c3a4b5f607/facts?status=active" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "418",
        "user_id": "7c2d9e4b1a3f4685b0e1d2c3a4b5f607",
        "text": "Prefers one concrete action step at the end of each reply.",
        "token_count": 11,
        "status": "active",
        "source": "coach",
        "created_by_user_id": "3b9e1f6a2c8d4e57b0a1c9d8e7f64a35",
        "created_at": "2026-11-12T10:20:30.000Z",
        "updated_at": "2026-11-12T10:20:30.000Z",
        "version_count": 0,
        "access": "edit"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1,
    "limits": {
      "per_fact_tokens": 60,
      "total_tokens": 2000,
      "active_tokens": 23,
      "history_tracked": true
    }
  }
}

The key needs the read scope, and the Avatar needs a confirmed member-event endpoint. The person who issued the key sees the Facts they may see in the MaxGood.work web app: an Avatar Owner or Admin sees every Fact about the member, and an Avatar Coach sees the Facts about their current clients. status is active, hidden or all (the default). page starts at 1 and page_size goes from 1 to 100; a value outside those ranges answers 400 with invalid_page or invalid_page_size, and the API never adjusts it. total counts every matching Fact across pages.

A user_id that is not an active member of the Avatar, an erased member, and a member the issuer may not reach all answer 404 user_not_found. An Avatar whose type keeps no Facts answers 403 facts_disabled. Each Fact carries access (edit or view), created_by_user_id (null where the issuer may not see who wrote it) and version_count (null when the Avatar’s type keeps no edit history). limits reports the Avatar type’s limits; the Avatar’s own Facts and its members’ Facts count toward the same total.

The call counts as one lookup in the Avatar’s reading limit, and a call that a check refuses counts for nothing. It replaces GET /v1beta/facts, which ends on 1 June 2027.

One Fact about a member

GET /v1/members/{user_id}/facts/{fact_id} returns one Fact your Avatar keeps about one of its members: a short statement the Avatar weaves into its replies to that member. The key needs the read scope and a confirmed member-event endpoint. The person who issued the key sees the Facts they could see in the MaxGood.work web app: an Avatar Owner or Admin sees the Facts about any member, and an Avatar Coach sees the Facts about their own clients.

curl -s https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09b21/facts/123 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "123",
    "user_id": "65f1c2a9b7d3e4a1c8f09b21",
    "text": "Prefers morning calls and a short written summary.",
    "token_count": 9,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "65f1c2a9b7d3e4a1c8f09b99",
    "created_at": "2026-11-01T09:30:00.000Z",
    "updated_at": "2026-11-02T10:00:00.000Z",
    "version_count": 2,
    "access": "edit"
  }
}

version_count is null when your Avatar’s type keeps no edit history, and created_by_user_id is null where the issuer of the key may not see who wrote the Fact. access is edit or view: what the issuer may do with the Fact in the web app.

A member who does not exist, is not an active member of your Avatar, has erased their account, or (for an Avatar Coach) is not the issuer’s client answers 404 user_not_found. An id that is not a whole number, a Fact that does not exist, a Fact of another Avatar, a Fact about your Avatar itself, a Fact about another member and a Fact the issuer may not see all answer 404 fact_not_found in one body, so the answer never shows whether a Fact exists elsewhere. An Avatar whose type keeps no Facts answers 403 facts_disabled.

Each lookup counts in the Avatar’s reading limit, shared by all its keys on /v1 and /v1beta together. The checks every key endpoint makes are listed under Avatar and API keys. The read is recorded in your Avatar’s audit trail with the Fact’s id and never its text.

GET /v1/members/{user_id}/facts/{fact_id} replaces GET /v1beta/facts/{fact_id} for a Fact about a member, and GET /v1beta/facts/{fact_id} ends on 1 June 2027. scope is gone because the path says which kind of Fact it is, id is a string, and user_id names the member.

Add a Fact about a member

POST /v1/members/{user_id}/facts adds one Fact about one member: a short statement the Avatar keeps in mind and weaves into its replies to that member. The key needs the write scope and the Avatar needs a confirmed member-event endpoint. The Fact is recorded as added by the person who issued the key, who can edit it in the MaxGood.work web app.

curl -s -X POST https://api.maxgood.work/v1/members/7c2d9e4b1a3f4685b0e1d2c3a4b5f607/facts \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Prefers one concrete next step at the end of each reply."}'
{
  "result": "success",
  "response": {
    "id": "418",
    "user_id": "7c2d9e4b1a3f4685b0e1d2c3a4b5f607",
    "text": "Prefers one concrete next step at the end of each reply.",
    "token_count": 11,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "3b9e1f6a2c8d4e57b0a1c9d8e7f64a35",
    "created_at": "2026-12-01T10:15:00.000Z",
    "updated_at": "2026-12-01T10:15:00.000Z",
    "version_count": 0,
    "access": "edit"
  }
}

The body holds text and nothing else and is sent as application/json. text is trimmed and must hold at most 2,000 characters and at most the largest Fact the Avatar type allows, counted in tokens. A missing or blank text answers 400 fact_text_required; a longer one answers 400 fact_too_long. Any other field, or a text that is not a string, answers 400 invalid_request with fields. An id that is not an active member answers 404 user_not_found. The Avatar’s Owner and Admins add a Fact about any member; an Avatar Coach adds one only about a current client and receives 403 fact_clients_only for anyone else.

The Fact budget

The Avatar type limits the total of the Avatar’s active Facts, the Avatar’s own and its members’ together, counted in tokens. The check and the add happen while no other Fact of the Avatar is being added, changed or switched on, so two requests sent together cannot pass the total between them. A Fact that would pass it answers 409 fact_budget_exceeded with active_tokens, max_tokens and token_count, and nothing is stored.

Limit

An add is one change in the Avatar’s member-change limit, shared by all the Avatar’s keys on /v1 and /v1beta. A request refused by a check costs nothing. Over the limit the endpoint answers 429 rate_limited with Retry-After and rate_class member_changes.

It replaces the member use of POST /v1beta/facts (a request with a user_id). A Fact about the Avatar itself is added with POST /v1/content/facts.

Change a Fact about a member

PATCH /v1/members/{user_id}/facts/{fact_id} hides, shows or rewords one Fact about a member. Send status (active or hidden), text or both, and no other field. It needs a key with the write scope that is attached to a confirmed member-event endpoint.

curl -s -X PATCH https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09b44/facts/412 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"text": "Prefers a short summary before the detail.", "status": "active"}'
{
  "result": "success",
  "response": {
    "id": "412",
    "user_id": "65f1c2a9b7d3e4a1c8f09b44",
    "text": "Prefers a short summary before the detail.",
    "token_count": 9,
    "status": "active",
    "source": "owner",
    "created_by_user_id": "65f1c2a9b7d3e4a1c8f09b13",
    "created_at": "2026-11-02T14:05:09.000Z",
    "updated_at": "2026-11-30T09:12:41.000Z",
    "version_count": 2,
    "access": "edit"
  }
}

The change is one step. The new text, the new status and the saved earlier version of the text are written together or not at all, so a refused change leaves the Fact as it was. The Avatar’s active Facts have a total limit of tokens, checked against the Fact as it will stand after the change: showing a hidden Fact, or making an active Fact longer, answers 409 fact_budget_exceeded with active_tokens and max_tokens when the limit would be passed, while a Fact that stays hidden never counts.

An Admin cannot change a Fact an Avatar Coach added (403 fact_view_only), and an Avatar Coach changes only Facts about their own clients (403 fact_clients_only). A Fact of the whole Avatar, a Fact about another member and an id that is not a whole number answer 404 fact_not_found; a member the Avatar does not have answers 404 user_not_found. A change counts in the Avatar’s daily limit for member changes. It replaces PATCH /v1beta/facts/{fact_id} for a Fact about a member.

Delete a member’s Fact

DELETE /v1/members/{user_id}/facts/{fact_id} deletes one Fact the Avatar keeps about a member, together with its edit history. The deletion cannot be undone; to keep a Fact and stop the Avatar using it, hide it instead.

curl -s -X DELETE https://api.maxgood.work/v1/members/7c1d5e0a9b2f4c36a8e1d0b4f5a96c27/facts/412 \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "id": "412",
    "deleted": true
  }
}

The key needs the write scope, and its issuer must be the Avatar’s Owner, an Avatar Admin, MaxGood.work staff acting for the Avatar, or an Avatar Coach deleting a Fact the Coach added about one of their own clients. A Fact the issuer may read but not change answers 403 fact_view_only. An Avatar whose type has no Facts answers 403 facts_disabled, and an Avatar without a confirmed member-event endpoint answers 403 member_events_endpoint_required.

An unknown person, a person who is not a member of your Avatar and an erased person all answer 404 user_not_found. An Avatar-wide Fact, a Fact about another member and an id that names nothing all answer 404 fact_not_found.

The deletion counts as one change in the Avatar’s member-changes limit, shared by all its keys on /v1 and /v1beta.

DELETE /v1/members/{user_id}/facts/{fact_id} replaces DELETE /v1beta/facts/{fact_id} for a Fact about a member, which answers the Fact’s fact_id as a number and retires on 1 June 2027. The answer names the Fact id as a string.

Member Fact history

GET /v1/members/{user_id}/facts/{fact_id}/history lists the earlier texts of one Fact about a member, newest edit first. Only an Enterprise Avatar keeps a Fact’s edit history; any other Avatar type receives 403 fact_history_not_enabled. The key needs the read scope and an issuer who may view the Facts about the member, and it must be attached to a member-event endpoint that answers.

curl -s "https://api.maxgood.work/v1/members/65f1c2a9b7d3e4a1c8f09b13/facts/123/history?page=1&page_size=50" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "fact_id": "123",
    "items": [
      {
        "id": "41",
        "fact_id": "123",
        "text": "Prefers evening sessions.",
        "token_count": 4,
        "edited_at": "2026-11-02T15:20:41.125Z",
        "edited_by_user_id": "65f1c2a9b7d3e4a1c8f09b13",
        "edit_source": "owner"
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1
  }
}

Each version is the text the Fact held before an edit. page counts from 1 and page_size runs from 1 to 100 (default 50); a value outside those bounds answers 400 invalid_page or invalid_page_size. total counts every version the Fact has. edited_by_user_id is null when the editor is not shown to the reader. A user_id that names no active member of your Avatar answers 404 user_not_found. A Fact that does not exist, is one of your Avatar’s own Facts, is about another member or may not be viewed answers 404 fact_not_found; an Avatar whose type has no Facts answers 403 facts_disabled.

The lookup counts in the Avatar’s reading limit and is recorded in the Avatar’s audit trail with the Fact’s id, the member’s id and the number of versions returned, never the text of a Fact. It replaces GET /v1beta/facts/{fact_id}/history for Facts about a member, which ends on 1 June 2027; read the Avatar’s own Facts at GET /v1/content/facts/{fact_id}/history.

Member notes

GET /v1/members/{user_id}/notes returns the notes your Avatar keeps about one member. The notes are not part of a Member. The call needs a key with the read scope and a member-event endpoint attached to the key.

curl -s https://api.maxgood.work/v1/members/<user_id>/notes \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "user_id": "65f1c2a9b7d3e4a1c8f09b34",
    "notes": "Prefers morning sessions.",
    "withheld": false,
    "meta": {
      "chars": 25,
      "updated_at": "2026-11-02T09:30:15.123Z",
      "updated_by_role": "owner"
    }
  }
}

What a key reads follows the person who issued it. On an Avatar type without the Avatar Coach role, a key issued by the Owner, an Avatar Admin or MaxGood.work staff reads the notes. On an Avatar type with the role, only a key issued by the Owner or by MaxGood.work staff does. Any other key receives 200 with withheld set to true, notes set to null and meta.

A person who is not an active member of the Avatar answers 404 user_not_found, whether or not the person exists. The call counts as one lookup in the Avatar’s reading limit.

Replace a member’s notes

PUT /v1/members/{user_id}/notes replaces the Avatar’s notes about one member and answers with the notes as stored. The key needs the write scope and the Avatar’s member-event endpoint. The body is a JSON object with one field, notes: a text of at most 2,500 characters, or null to clear the notes.

curl -s -X PUT https://api.maxgood.work/v1/members/<user_id>/notes \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"notes": "Prefers morning sessions."}'
{
  "result": "success",
  "response": {
    "user_id": "65f1c2a9b7d3e4a1c8f09b44",
    "notes": "Prefers morning sessions.",
    "withheld": false,
    "meta": {
      "chars": 25,
      "updated_at": "2026-12-01T15:04:05.123Z",
      "updated_by_role": "api"
    }
  }
}

Who may write notes

The person who issued the key decides. On an Avatar whose type has no Avatar Coach role, a key issued by MaxGood.work staff, the Avatar’s Owner or an Avatar Admin may write notes. On an Avatar whose type has the Avatar Coach role, only a key issued by MaxGood.work staff or the Owner may. Any other key answers 403 notes_owner_key_only, also when it sends the text already stored, so a key that cannot read the notes learns nothing by writing them.

The body is checked strictly

A missing notes, a field that is not listed and a value that is not a text or null answer 400 invalid_request, and fields names each refused field with a short reason. A text over 2,500 characters answers 400 field_too_long with field and max_length; nothing is truncated. The text may hold line breaks and tabs and no other control character. An id that is not a member of the Avatar answers 404 user_not_found.

Member changes and their limit

The call counts as one member change in the Avatar’s daily limit, shared by all the Avatar’s keys and by /v1 and /v1beta together. A request refused by a check costs nothing against the limit. Every write is recorded in the Avatar’s audit trail with the size of the text, never the text.

The notes field of PUT /v1beta/users/{user_id} is replaced by this endpoint.

A Member’s structured data

GET /v1/members/{user_id}/structured-data returns the structured data your Avatar keeps about one Member, a JSON object:

curl -s https://api.maxgood.work/v1/members/<user_id>/structured-data \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "user_id": "65f1c2a9b7d3e4a1c8f09b44",
    "structured_data": {
      "goal": "Plan sprints in half the time",
      "team_size": 8
    },
    "withheld": false,
    "meta": { "chars": 54 }
  }
}

A key issued by your Avatar’s Owner, an Avatar Admin or MaxGood.work staff reads the value. A key issued by any other member answers 200 with structured_data null, withheld true and meta, the size of the stored value in characters of compact JSON. meta is always present, and chars is 0 when there is no value.

The key needs the read scope, and a confirmed member-event endpoint must be attached to it. An unknown person, a person who is not a Member of your Avatar, a removed Member and an erased person all receive 404 user_not_found, as does a user_id that cannot be a Member id. The call counts as one lookup in the Avatar’s reading limit; a request refused before the lookup costs nothing. Each read is recorded in your Avatar’s audit log with the Member’s id and never the value.

It replaces the structured_data, structured_data_withheld and structured_data_meta fields of GET /v1beta/users and GET /v1beta/users/{user_id}.

Replacing a member’s structured data

PUT /v1/members/{user_id}/structured-data replaces the structured data your Avatar keeps about one member, or removes it. The body is exactly {"structured_data": ...}, an object or null. The key needs the write scope and must have been issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff.

curl -s -X PUT https://api.maxgood.work/v1/members/<user_id>/structured-data \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"structured_data": {"goal": "Lead a team of ten", "cohort": "2027-spring"}}'
{
  "result": "success",
  "response": {
    "user_id": "65f1c2a9b7d3e4a1c8f09b13",
    "structured_data": { "goal": "Lead a team of ten", "cohort": "2027-spring" },
    "withheld": false,
    "meta": { "chars": 52 }
  }
}

The object replaces what was stored: a key you leave out is gone afterwards. null removes the stored value. meta.chars is the size of the stored value written as compact JSON.

  • A body with a field other than structured_data, with no structured_data, or with a value that is neither an object nor null answers 400 invalid_request; fields names each field and the reason.
  • A value whose compact JSON holds more than 262,144 characters answers 400 field_too_large with field and max_length. The value is never shortened.
  • A key that was not issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff answers 403 user_data_admin_key_only, also when it sends the value already stored.
  • A person who is not an active member answers 404 user_not_found.
  • The call counts as one change in the Avatar’s member-change limit; a refused request costs nothing. When the limit’s counter cannot be read the call answers 503 service_unavailable and writes nothing.

It replaces the structured_data field of PUT /v1beta/users/{user_id}. That operation, POST /v1beta/users and POST /v1beta/users/batch end on 1 June 2027, 1 June 2027 and 1 June 2027.

Interactions

GET /v1/interactions lists the interactions with the Avatar your key is bound to, newest first. The key needs the read scope and a confirmed member-event endpoint, and it reads what the person who issued it reads in the MaxGood.work web app.

curl -s "https://api.maxgood.work/v1/interactions?page=1&page_size=50&since=2026-11-01" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "65f1c2a9b7d3e4a1c8f09c01",
        "avatar_id": "65f1c2a9b7d3e4a1c8f09b21",
        "user_id": "65f1c2a9b7d3e4a1c8f09b77",
        "created_at": "2026-11-14T15:04:05.250Z",
        "access": "content",
        "reference_chunk_ids": ["65f1c2a9b7d3e4a1c8f09d10"],
        "user_text": "How should I prepare for my first one-to-one?",
        "reply": "Start by writing down the two outcomes you want from the meeting."
      }
    ],
    "page": 1,
    "page_size": 50,
    "total": 1,
    "access": "content",
    "scope": "all"
  }
}

page is a whole number of at least 1 and page_size a whole number from 1 to 100; they default to 1 and 50. since is an RFC 3339 timestamp or a date and keeps the interactions stored at or after it. A value that cannot be read receives 400 invalid_page, invalid_page_size or invalid_since and costs nothing against a limit. total is the number of interactions you may read across all pages, and a page past the last has no items.

scope says whose interactions the list holds: all, own_and_clients or clients, by the role of the person who issued the key. An interaction that the retention rules blanked has access metadata, a null user_id and no user_text or reply. An issuer who left the Avatar, or who holds no Owner, Admin or Coach role, receives 403 issuer_not_authorized. Each lookup counts in the Avatar’s reading limit, described under Limits above.

GET /v1/interactions replaces GET /v1beta/interactions, which ends on 1 June 2027. org_id is avatar_id here, references is reference_chunk_ids and the list is items where /v1beta answered interactions.

A member’s interactions

GET /v1/members/{user_id}/interactions returns one page of a member’s interactions with your Avatar, newest first, as the person who issued the key reads them in the MaxGood.work web app. Send page, page_size (1 to 100) and since (a timestamp or a date) as query values:

curl -s "https://api.maxgood.work/v1/members/<user_id>/interactions?page_size=20&since=2026-11-01" \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>"
{
  "result": "success",
  "response": {
    "items": [
      {
        "id": "1048223",
        "avatar_id": "65f1c2a9b7d3e4a1c8f09b12",
        "user_id": "65f1c2a9b7d3e4a1c8f09b21",
        "created_at": "2026-11-17T15:04:05.120Z",
        "access": "content",
        "reference_chunk_ids": ["66a0d4e1c9b8f7a2d3e45f60"],
        "user_text": "How can I make our sprint planning shorter?",
        "reply": "Start with a clear timebox for each topic."
      }
    ],
    "page": 1,
    "page_size": 20,
    "total": 1,
    "access": "content",
    "summary": null
  }
}

When the person who issued the key reads this member’s size and activity only, access is metadata, items is empty and summary holds counts and sizes with no words. A person who is not a member, an erased account and a member the issuer may not read all answer 404 user_not_found. The call needs the Avatar’s member-event endpoint and counts in the reading limit.

GET /v1/members/{user_id}/interactions replaces GET /v1beta/users/{user_id}/interactions, which ends on 1 June 2027.

Avatar replies

POST /v1/avatar/respond returns the Avatar’s reply to a message from one of its members. The key needs the chat scope. The body is a JSON object with two fields, user_id and prompt.

curl -s -X POST https://api.maxgood.work/v1/avatar/respond \
  -H "Authorization: Bearer mgak_<credential_id>.<secret>" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "7c1d5e0a9b2f4c36a8e1d0b4f5a96c27", "prompt": "How can I make our sprint planning shorter?"}'
{
  "result": "success",
  "response": {
    "reply": "Start with one clear sprint goal and timebox the meeting to 45 minutes.",
    "interaction_id": "0b4f1d6a8c2e4a79b3d5e7f9a1c3e5b7",
    "reference_urls": ["https://app.example.com/reference/66a0d4e1c9b8f7a2d3e45f60"]
  }
}

The reply is generated as it is for the member in the MaxGood.work web app and draws on the member’s stored interaction history, so you do not manage threads. Show reply as it is: Foundation attribution is rendered into it. When the Avatar displays its references, reply ends with a [References] line and reference_urls is empty; otherwise reference_urls lists the links. interaction_id names the stored interaction and is for reference only.

The body is checked strictly

user_id is the id of a member of the Avatar. prompt is not empty once spaces at its ends are removed, holds at most 10,000 characters and 4,096 tokens, and may hold new lines. A field that is not listed, a value of the wrong type and a missing or blank value answer 400 invalid_request with fields. A longer prompt answers 400 prompt_too_long with max_characters or max_tokens.

Who can be answered

  • A person who is not a member of the Avatar, was removed or was erased receives 404 user_not_found.
  • A key whose issuer may not see the member’s interactions receives 403 interaction_access_required. Nothing is stored.
  • A member who has not accepted the Avatar’s terms and conditions or agreement receives 403 agreement_required with agreement_party member and agreement_url. Nothing is stored. No key can accept for a member: send the member to agreement_url.
  • A member whose membership is archived, whose licence has expired or whose account is suspended receives 403 member_archived, member_license_expired or member_suspended. The turn is stored and no reply is generated. response holds the refusal text the member would read, and interaction_id names the stored turn.

Replies and their limit

Each reply counts in an hourly limit for the Avatar, shared by all its keys on /v1 and /v1beta: 30 an hour for an Enterprise Avatar and 6 for an Essential Avatar. An hour runs from the top of the hour to the next, UTC. Over the limit the call answers 429 rate_limited with rate_class replies and Retry-After. MaxGood.work support raises an Avatar’s limits on request.

Only a turn that reaches the model counts. A request refused by any check, the three stored refusals included, costs nothing. When MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and generates nothing: retry it after the wait.

POST /v1/avatar/respond replaces POST /v1beta/avatar/respond, which ends on 1 June 2027. mg_user_id is user_id here, and the answer is reply, interaction_id and reference_urls where it was response.response, interaction_id and partner_content_ids.

Migration guide

This guide lists every change an integration makes when it moves a call from the Public BETA API (/v1beta) to the Public API (/v1). A row is added for each endpoint as its /v1 replacement ships.

What changes

  • The prefix changes from /v1beta to /v1, endpoint by endpoint, when the endpoint’s /v1 replacement appears in the table below.
  • Every error answers in one shape, {"result":"failure","response":"<message>","error_code":"<code>","request_id":"<id>"}.
  • Every response carries X-Request-Id.
  • The public read tier lives at /v1/public/*.

The authentication format, the rule that a key acts with the authority of its issuer, and the success envelope {"result":"success","response":...} are the same on /v1.

How to move

  1. Find the endpoint’s row in the table below.
  2. Change the base URL of the call to its /v1 replacement.
  3. Update your parser for the renamed fields in the row and for the failure shape.
  4. Handle 429 with retry_after_seconds and the Retry-After header.
  5. Ship the change, then read the Deprecation, Sunset and Link headers of any /v1beta response you still receive: each names the replacement and the date the endpoint ends.

How to test

The API has no test mode. Call the public read tier with no key to compare a /v1 answer with the /v1beta answer, and keep both prefixes live in parallel until your parser reads the /v1 answer.

Endpoint changes

| /v1beta endpoint | /v1 replacement | What changes | | — | — | — | | GET /v1beta/public/stats | GET /v1/public/stats | total_organizations is total_avatars. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/public/foundation-titles | GET /v1/public/foundation/titles | title is name and title_usage_count is usage_count. The titles are ordered by name. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/public/authors | GET /v1/public/foundation/authors | The fields are the same. Authors with the same display name are ordered by id, and the answer is cached for up to 60 seconds. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/public/free-avatars | GET /v1/public/free-avatars | The entries keep their fields: name, free_trial_days and key_benefit. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/public/avatars | GET /v1/public/avatars | created_on (a YYYY-MM-DD date, or null) is created_at (an RFC 3339 UTC timestamp, or null). A type that is repeated, empty, over 100 characters or holds a control character answers 400. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/public/showcase | GET /v1/public/foundation/showcase | The answer has the same shape, and the Foundation titles are cached for up to 2 minutes. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | GET /v1beta/organization | GET /v1/avatar | org_id is id, org_name is name, and type is new (the name of the Avatar type). The key needs the read scope. The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. A paused key receives 403 key_frozen, and a key whose Avatar’s Owner has not accepted the Owner agreement receives 403 agreement_required. | | GET /api/enterprise/get_organization_details | GET /v1/avatar | The response holds id, name and type where it held org_id. The route follows the same key checks and the same limit. | | POST /v1beta/rag-search | none | The endpoint has ended and answers 410 endpoint_retired with a successor of null. /v1 has no search endpoint; remove calls to it. | | POST /api/enterprise/avatar_simple_rag | none | The endpoint has ended and answers 410 endpoint_retired with a successor of null. /v1 has no search endpoint; remove calls to it. | | GET /v1beta/content/titles | GET /v1/content/titles | The list is paged: it answers items, page, page_size and total (page_size defaults to 50 and is at most 100), where /v1beta answered every title in titles with titles_count. In each title title_id is id, title_name is name, count is chunk_count and is_linked_from_other_organization is is_linked_from_other_avatar; priority is new and is high, normal or low. The Avatar’s own titles come first, then the titles shared into it, each newest first. The key needs the read scope and an issuer who is an Avatar Owner or an Avatar Admin. A page or page_size outside its bounds receives 400 invalid_page or invalid_page_size. | | GET /v1beta/content/titles/<title_id> | GET /v1/content/titles/{title_id} | title_id is id, title_name is name, count is chunk_count, is_linked_from_other_organization is is_linked_from_other_avatar, and priority is new. A title shared into the Avatar is returned, with is_linked_from_other_avatar true; /v1beta returned 404 for it. A missing title returns 404 with error_code title_not_found. The key needs the read scope and its issuer must be an Avatar Owner or an Avatar Admin. The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. | | POST /v1beta/content/titles | POST /v1/content/titles | The body field title is name, and the body is checked strictly: another field, a value of the wrong type or a blank name receives 400 invalid_request with fields. The answer is 201 with the new title (id, name, is_enabled, chunk_count, created_at, is_linked_from_other_avatar, priority) where it was 200 with message and id. The key needs the write scope and an issuer who manages members. The call counts as one Content change in the Avatar’s daily limit (one a day for an Avatar that has a member who is neither its Owner nor an Admin, otherwise the Avatar’s daily limit for adding documents), and it receives 503 when the counter cannot be read. | | PUT /v1beta/content/titles/{title_id} | PATCH /v1/content/titles/{title_id} | The method is PATCH, title_name is name, and the answer is the whole title where it was {"title_name": ...}. The body may also carry is_enabled and priority. Every field is checked before any is applied, and a field the API does not know is 400 with the reason unknown_field. The key needs the write scope, and the change counts as one change in the Avatar’s content limit. | | PUT /v1beta/content/titles/{title_id}/is_enabled | PATCH /v1/content/titles/{title_id} | Send is_enabled in the body of the title PATCH. A title with no active chunks answers 409 title_empty. A title shared in from another Avatar cannot be switched by the Avatar it is shared into: the call answers 400 with the reason not_editable. The call counts as one change in the Avatar’s content limit. | | DELETE /v1beta/content/titles/{title_id} | DELETE /v1/content/titles/{title_id} | The response is {"id", "deleted": true} where it was {"message": "Title deleted successfully"}. The key needs the write scope and an issuer who is an Owner or Admin of the Avatar. The call counts as one change in the Avatar’s content changes limit. A title shared into the Avatar answers 404 title_not_found, as before. Failures answer in the failure shape with error_code and request_id. | | POST /v1beta/content/titles/{title_id}/upload | POST /v1/content/titles/{title_id}/uploads | The path ends /uploads. The success status is 201, and the response is title_id, document_id (null for text), chunk_ids and chunk_count; message is gone. The multipart part is file; the part name files is not accepted. A body with an unknown field, a source_document_title over 500 characters, or a file with no content or of a program type is refused with 400. The key needs the write scope and an issuer who still manages the Avatar. The size limit of 25 MiB is measured on the body as it arrives. Each upload counts in the Avatar’s upload limit, 120 a day for an Enterprise Avatar and 60 a day for an Essential Avatar, shared by all its keys; over the limit the call receives 429 rate_limited, and while the counting service is unavailable it receives 503 service_unavailable. Failures arrive in the failure shape with an error_code. WordPress sites update the MaxGood.work WordPress plugin to 1.3.0. | | GET /v1beta/content/titles/{title_id}/documents | GET /v1/content/titles/{title_id}/documents | The list is paged: send page and page_size (default 50, at most 100), and read total where document_count was. The response is items with page, page_size and total. In each document document_id is id, filetype is extension, mimetype is content_type, filesize is size_bytes and upload_date is uploaded_at, an RFC 3339 timestamp in UTC; title_id is new on each document, and download_url_expires_at says when its link stops. A document with no link has download_url of null where it had an empty string. The key needs the read scope and an issuer who is an Owner or Admin. The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. A title that is missing, deleted, another Avatar’s or shared in answers 404 title_not_found. | | GET /v1beta/content/titles/{title_id}/chunks | GET /v1/content/titles/{title_id}/chunks | The answer is a page: chunk_count and chunks are total and items, and the query page and page_size (default 50, at most 100) choose the page, ordered by id ascending. Each chunk’s chunk_id, chunk_name and chunk_text are id, name and text, and title_id and is_active are new. A page outside the range answers 400 invalid_page or invalid_page_size. The key needs the read scope, and the person who issued it must be an Owner or Admin of the Avatar. A deleted title answers 404 title_not_found. The lookup counts in the Avatar’s reading limit, shared by all its keys. | | GET /v1beta/content/chunks/{chunk_id} | GET /v1/content/chunks/{chunk_id} | chunk_text is text, chunk_name is name, and the chunk’s own id is new; title_id and is_active keep their names. The key needs the read scope and its issuer must be an Owner or Admin of the Avatar. The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. A chunk of another Avatar, a missing chunk and an id that cannot be a chunk id answer 404 chunk_not_found. A paused key receives 403 key_frozen, and a key whose Avatar’s Owner has not accepted the Owner agreement receives 403 agreement_required. | | PUT /v1beta/content/chunks/{chunk_id} | PATCH /v1/content/chunks/{chunk_id} | The method is PATCH, the body field chunk_text is text, and source_document_title is unchanged. The body must be a JSON object with no other field, and a value of the wrong type is 400 invalid_request with fields. The answer is the edited chunk (id, title_id, name, text, is_active), where /v1beta answered a message. A chunk that is missing, deleted or another Avatar’s is 404 chunk_not_found. The key needs the write scope. The edit counts as one change in the Avatar’s content-changes limit, shared by all its keys, and is refused with 503 while the counting service is unavailable. | | DELETE /v1beta/content/chunks/{chunk_id} | DELETE /v1/content/chunks/{chunk_id} | The response is {"id":"<string>","deleted":true} where /v1beta answered a message. The key needs the write scope and an issuer who is an Owner or Admin. The call counts as one change in the Avatar’s Content changes limit, shared by all its keys, once the section is found; a call over the limit receives 429 with rate_class content_changes, and a call while the counting service is unavailable receives 503 and deletes nothing. A section that is unknown, in another Avatar or already deleted answers 404 chunk_not_found; an unexpected failure returns no text. | | GET /v1beta/content/titles/{title_id}/footer | GET /v1/content/titles/{title_id}/footer | footer_id is id; title_id and is_default are new (is_default is true and id is null when the title has no footer of its own and the Avatar type’s default is shown). The key needs the read scope and an issuer who is the Avatar’s Owner or an Avatar Admin. An id that cannot name a title answers 404 like an unknown title. Failures answer in the failure shape with error_code and request_id, and a 500 carries a fixed text. The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. | | PUT /v1beta/content/titles/{title_id}/footer | PUT /v1/content/titles/{title_id}/footer | The response is the whole footer (id, title_id, footer_html, is_default) where /v1beta answered footer_id and message. footer_html is required and must be a string of at most 500 characters: a body without it, with a value that is not a string, or with any other field is 400 invalid_request with fields, where /v1beta stored an empty footer. A title that is missing, deleted, shared in or another Avatar’s is 404 title_not_found; an Avatar type without footer edits is 403 footer_not_editable. The key needs the write scope and its issuer must be an Owner or an Admin. The call counts as one change in the Avatar’s Content-changes limit, shared by all its keys, and answers 503 when the counting service is unavailable. | | GET /v1beta/facts (the Avatar’s own Facts) | GET /v1/content/facts | The path says which Facts: scope and user_id are gone and the list holds the Avatar’s own Facts only; a member’s Facts have their own path. The list is items, page, page_size, total and limits, where /v1beta answered facts, facts_count and limits; each Fact’s id is a string, its timestamps are RFC 3339 UTC with milliseconds, and scope and user_id are not in it. page_size goes from 1 to 100, and a page or page_size out of range answers 400 invalid_page or invalid_page_size; /v1 never adjusts it. status is active, hidden or all in lower case. The key needs the read scope, the key’s issuer must manage the Avatar’s members (an Avatar Coach’s key reaches Facts about members only), and the lookup counts in the Avatar’s reading limit. An Avatar whose type keeps no Facts receives 403 facts_disabled. | | GET /v1beta/facts/{fact_id} | GET /v1/content/facts/{fact_id} | For an Avatar-wide Fact. id is a string and was a number, and scope and user_id are absent: the path says the Fact is the Avatar’s own. A Fact of a Member is not found here. The key needs the read scope and its issuer must manage the Avatar’s Members. The lookup counts in the Avatar’s reading limit. The id must be digits only; +5, 05 and 5 answer 404 fact_not_found. Failures answer in the shape of section 3, and 403 facts_disabled and 404 fact_not_found keep their codes. | | POST /v1beta/facts with no user_id (an Avatar-wide Fact) | POST /v1/content/facts | The body is text only; user_id and scope are not fields here, and any other field answers 400 invalid_request with fields. The Fact has no scope or user_id. text must be a string; a missing or blank text answers 400 fact_text_required. The key needs the write scope and an issuer who is an Avatar Owner or Avatar Admin (403 issuer_not_authorized otherwise; an Avatar Coach issuer receives it where /v1beta answered fact_clients_only). The success status is 201 where /v1beta answered 200, and id is a string. The add counts as one change in the Avatar’s content-change limit and answers 503 when the counter is unavailable. Failures answer in the failure shape with error_code and request_id. Every response carries X-Request-Id. | | PATCH /v1beta/facts/{fact_id} (an Avatar-wide Fact) | PATCH /v1/content/facts/{fact_id} | The Fact id is a string and the Fact has no scope or user_id. The body takes status, text or both and refuses any other field with 400 invalid_request and fields. The change is one step: a change that is refused leaves the Fact as it was, and a Fact that stays hidden never counts against the Avatar’s total Fact limit. The change counts in the Avatar’s daily limit for Content changes, 1 a day for an Avatar with members other than its Owner and Admins. The key needs the write scope and an issuer who manages members. A Fact of a member answers 404 fact_not_found; change it with PATCH /v1/members/{user_id}/facts/{fact_id}. Failures answer in the failure shape with error_code and request_id. Every response carries X-Request-Id. | | DELETE /v1beta/facts/{fact_id} | DELETE /v1/content/facts/{fact_id} | For an Avatar’s own Fact. The answer is {"id":"<string>","deleted":true} where it was {"deleted":true,"fact_id":<number>}. The key needs the write scope and its issuer must manage members. A Fact about a member answers 404 fact_not_found here and is deleted at /v1/members/{user_id}/facts/{fact_id}. The deletion counts in the Avatar’s daily limit for changing Content, and answers 503 when that limit cannot be counted. | | GET /v1beta/facts/{fact_id}/history | GET /v1/content/facts/{fact_id}/history | The answer is paged: versions is items beside page, page_size and total, newest edit first, and fact_id and each version’s id are strings. edited_at is an RFC 3339 UTC timestamp. The path serves the Avatar’s own Facts only; a member’s Fact answers 404 fact_not_found (member Facts have their own path). The key needs the read scope and an issuer who manages the Avatar. The lookup counts in the Avatar’s reading limit. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | none | GET /v1/content/logistics | New in /v1. It returns the Avatar’s Logistics, the details edited in Avatar Admin under Logistics, as ten keys with one enabled switch each. The key needs the read scope and its issuer must be an Owner or Admin of the Avatar. The lookup counts in the Avatar’s reading limit. | | none | PUT /v1/content/logistics | New in /v1. It replaces the Avatar’s Logistics, the details edited in Avatar Admin under Logistics, with the whole object: all ten keys, one enabled switch each, every enabled a boolean. The body is checked strictly and each value with the checks of Avatar Admin; a failure receives 400 invalid_request with fields. The key needs the write scope and its issuer must be an Owner or Admin of the Avatar. The call counts as one Content change in the Avatar’s daily limit (one a day for an Avatar that has a member who is neither its Owner nor an Admin, otherwise the Avatar’s daily limit for adding documents), and it receives 503 when the counter cannot be read. | | GET /v1beta/users | GET /v1/members | user_id is id, license_expiry_date is license_expires_at, users_count is total and the list is items. A member carries id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status and archived_at; the profile fields, notes and structured_data are not part of a member (notes and structured data have their own endpoints). page_size is at most 100, and a page or page_size out of range answers 400 instead of being lowered. A status of licence_expired is license_expired. The call needs a confirmed member-event endpoint (403 member_events_endpoint_required) and counts as one lookup in the Avatar’s reading limit. | | GET /v1beta/users/{user_id} | GET /v1/members/{user_id} | user_id is id and license_expiry_date is license_expires_at. role, expertise, industry, goal, problem, language, notes, notes_withheld, notes_meta, structured_data, structured_data_withheld and structured_data_meta are not returned: read notes and structured data from their own /v1/members/{user_id} endpoints. status is license_expired where /v1beta said licence_expired. The key needs the read scope, its issuer must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff, and a confirmed member-event endpoint must be attached to it. The lookup counts in the Avatar’s reading limit. An unknown person, a person who is not a Member, a removed Member and an erased person all receive 404 user_not_found. | | POST /v1beta/users | POST /v1/members | The answer is 201 with the Member (id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status, archived_at) where it was 200 with user_id, email, name, existing_user and invitation_sent; existing_user and invitation_sent are gone, so the answer never tells whether the email had an account. The profile fields role, expertise, industry, goal, problem and language move under profile. license_expiry_date is license_expires_at (an RFC 3339 timestamp or a YYYY-MM-DD date). is_admin and is_coach must be booleans. notes and structured_data are refused with 400 and the reason not_editable. The body is checked strictly: another field or a value of the wrong type receives 400 invalid_request with fields. A full Avatar answers 409 avatar_full (it was 403), and an existing member answers 409 with the code already_member. The call counts as one member change in the Avatar’s daily limit (1,440 for an Enterprise Avatar and 360 for an Essential Avatar, shared by all its keys), and it receives 503 when the counter cannot be read. The Avatar needs a confirmed member-event endpoint. | | POST /v1beta/users/batch | POST /v1/members/batch | The body is checked strictly: a field that is not listed in a row, a value of the wrong type (is_admin and is_coach must be booleans) and an unknown top-level field are refused. license_expiry_date is license_expires_at, and the row’s profile fields (role, expertise, industry, goal, problem, language) move into a profile object; notes and structured_data are not sent. A body without a list of 1 to 100 rows receives 400 invalid_batch. Each result entry has index, email, status, id (for added, where /v1beta had user_id), error_code and fields, and no existing_user; added is added_count. The call counts one for each row in the Avatar’s daily member-change limit (1,440 for an Enterprise Avatar and 360 for an Essential Avatar), where /v1beta allowed 200 or 100 invitations an hour, and it receives 503 when the counter cannot be read. The seat check comes before the limit. The key needs the write scope and an issuer who manages members. | | PUT /v1beta/users/{user_id} (is_admin, is_coach, license_expiry_date) | PATCH /v1/members/{user_id} | A change to the member’s roles and licence date is a PATCH. license_expiry_date is license_expires_at (an RFC 3339 timestamp or a YYYY-MM-DD date, or null to remove it). is_admin and is_coach must be JSON booleans; "false" and 1 answer 400. The response is the Member (id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status, archived_at). A profile field, notes or structured_data in the body answers 400 with the reason not_editable. The call needs the write scope and counts in the Avatar’s member-change limit. | | DELETE /v1beta/users/{user_id} | DELETE /v1/members/{user_id} | The response is {"id":"<id>","deleted":true} where it was {"removed":true,"user_id":"<id>"}. The key needs the write scope and counts one change in the Avatar’s member-changes limit. The Owner is refused with owner_not_removable, and an Admin or Coach with a key the Owner did not issue is refused with role_change_owner_key_only, as before. An unknown person, a person who is not a member and an erased person all answer 404 user_not_found. The Avatar needs a confirmed member-event endpoint. | | POST /v1beta/users/{user_id}/archive | POST /v1/members/{user_id}/archive | The answer is a Member (id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status, archived_at), not the user object, and user_id is id. A refusal answers in the failure shape with error_code and request_id, without error and message: owner, admin, support_avatar, deleted, not_member and not_admin are owner_not_archivable, admin_not_archivable, support_avatar_not_archivable, member_erased, user_not_found and issuer_not_authorized. The key needs the write scope, and the Avatar needs its member-event endpoint attached and verified. The change counts in the Avatar’s member-change limit, 1440 a day for an Enterprise Avatar and 360 for an Essential Avatar, shared by all its keys. A key whose issuer has left the Avatar receives 403 issuer_not_authorized. | | POST /v1beta/users/{user_id}/unarchive | POST /v1/members/{user_id}/unarchive | The member is a Member: id is user_id, license_expires_at is license_expiry_date, and the profile fields, notes and structured_data are not part of it. A refusal carries the failure shape of the guide: error and message are gone and error_code names the reason (owner is owner_not_archivable, admin is admin_not_archivable, support_avatar is support_avatar_not_archivable, deleted is member_erased, not_member is user_not_found, not_admin is issuer_not_authorized). The key needs the write scope and a confirmed member-event endpoint. The call counts as one change in the Avatar’s member-changes limit. | | PUT /v1beta/users/{user_id}/coach | PUT /v1/members/{user_id}/coach | user_id in the path is the member’s id. The answer is the member in the /v1 shape, without notes or structured data. The refusal not_org_admin is issuer_not_authorized, a person who is not a member is 404 user_not_found, and a body with a field other than coach_user_id is 400 invalid_request with fields. The key needs the write scope and a verified member-event endpoint. The call counts as one change in the Avatar’s member-change limit, shared by all its keys. | | GET /v1beta/users/{user_id}/tags | GET /v1/members/{user_id}/tags | The path is under /members. The list is paged: it answers items, page, page_size and total (page_size defaults to 50 and is at most 100), where /v1beta answered every tag in tags beside the member’s user_id. Each tag keeps name, description, source and applied_at; applied_at is written to the millisecond. The oldest tag is first, then by name. The key needs the read scope, an issuer who is an Avatar Owner or an Avatar Admin and a member-event endpoint. A person who is not an active member receives 404 user_not_found. A page or page_size outside its bounds receives 400 invalid_page or invalid_page_size. | | POST /v1beta/tags | POST /v1/members/{user_id}/tags | The member is user_id in the path, not user_email in the body. tags_to_add is tags, 1 to 50 tags. The answer is {"items":[...],"page":1,"page_size":<n>,"total":<n>}, the tags applied, each with applied_at, where it was a message. An invalid body answers 400 invalid_request with fields, where an incorrect tag format answered 404. The call counts once in the Avatar’s member-changes limit. Failures answer in the failure shape with error_code and request_id. Every response carries X-Request-Id. | | POST /api/enterprise/add_tags_to_user | POST /v1/members/{user_id}/tags | The route is the same operation as POST /v1beta/tags and follows the same change. | | DELETE /v1beta/users/{user_id}/tags?name={name} | DELETE /v1/members/{user_id}/tags?name={name} | The response is {"id": "<tag name>", "deleted": true} where it was {"user_id", "name", "removed"}. A member who holds no such tag answers 404 tag_not_found where /v1beta answered 200 with removed false. The key needs the write scope and an issuer who is an Owner or Admin of the Avatar, and the call counts as one change in the Avatar’s member changes limit. The Avatar needs a member-event endpoint. A name given more than once answers 400 tag_name_invalid. Failures answer in the failure shape with error_code and request_id. | | GET /v1beta/users/{user_id}/files | GET /v1/members/{user_id}/files | The member is in the path as /members/{user_id}. The list is in items where /v1beta named it files, with page, page_size and total as before; each file’s file_id is id and each file carries its user_id, so the top-level user_id is gone. access, limits and chunks_in_prompt keep their names and meaning. uploaded_at is a UTC time to the second. A page or page_size outside its bounds (a whole number of at least 1, and from 1 to 100) receives 400 invalid_page or invalid_page_size where /v1beta answered invalid_paging. The key needs the read scope and, like every member operation, an attached member-event endpoint. | | GET /v1beta/users/{user_id}/files/{file_id} | GET /v1/members/{user_id}/files/{file_id} | The path says members for users. The answer is the file itself, not {"file": {...}}: file_id is id, user_id is new. The key needs the read scope and a confirmed member-event endpoint. The lookup counts in the Avatar’s reading limit, shared by all its keys, instead of a limit per key. A missing member, a member the key’s issuer may not reach and an erased member answer 404 user_not_found; a missing file answers 404 file_not_found; a key whose issuer may only list the member’s files answers 403 user_files_owner_coach_only. Every failure has the one failure shape. | | GET /v1beta/users/{user_id}/files/{file_id}/chunks | GET /v1/members/{user_id}/files/{file_id}/chunks | chunks is items, and each chunk’s chunk_id is id. The file object is not repeated. page and page_size are refused with invalid_page or invalid_page_size where /v1beta answered invalid_paging, and a value given twice or with a sign or a space is refused. An unknown Member answers user_not_found and a missing file file_not_found, each with an error_code. The key needs the read scope and the Avatar needs an attached, answering member-event endpoint. The call counts in the Avatar’s reading limit once its checks have passed. | | POST /v1beta/users/{user_id}/files | POST /v1/members/{user_id}/files | The path is under /members. The response is the file itself, not wrapped in file; the file is named id where /v1beta named it file_id, and it carries the member’s user_id; uploaded_at is a UTC time to the second. A file over the size limit receives 413 payload_too_large with max_bytes, where /v1beta answered 413 file_too_large. A request with a part other than file, or with two file parts, is refused with 400 invalid_request and fields, and a body that is not multipart/form-data receives 415. The key needs the write scope. Each upload counts in the Avatar’s daily member-change limit, 1,440 for an Enterprise Avatar and 360 for an Essential Avatar, shared by all its keys, where /v1beta counted uploads in a rolling hour; over the limit the call receives 429 rate_limited, and while the counting service is unavailable it receives 503 service_unavailable. Failures arrive in the failure shape with an error_code. | | DELETE /v1beta/users/{user_id}/files/{file_id} | DELETE /v1/members/{user_id}/files/{file_id} | The answer holds the file’s id beside deleted and mode. The key needs the write scope and must be attached to the Avatar’s confirmed member-event endpoint. A delete counts as one member change in the Avatar’s daily limit, 1440 a day for an Enterprise Avatar and 360 for an Essential Avatar, shared by all its keys. An id that cannot name a member or a file receives the same 404 as one that matches nothing, and an error answer carries a fixed message and no internal text. | | GET /v1beta/facts?user_id=... (a member’s Facts) | GET /v1/members/{user_id}/facts | The member is in the path, so user_id and scope are gone from the query and the list holds that member’s Facts only. The list is items, page, page_size, total and limits, where /v1beta answered facts, facts_count and limits; each Fact’s id is a string, its timestamps are RFC 3339 UTC with milliseconds, and user_id names the member; a Fact has no scope. page_size goes from 1 to 100, and a page or page_size out of range answers 400 invalid_page or invalid_page_size; /v1 never adjusts it. status is active, hidden or all in lower case. The key needs the read scope and the Avatar needs a confirmed member-event endpoint; an Avatar Coach’s key reaches current clients only. An id that is no active member, an erased member and an unreachable member answer 404 user_not_found. The lookup counts in the Avatar’s reading limit. | | GET /v1beta/facts/{fact_id} for a Fact about a member | GET /v1/members/{user_id}/facts/{fact_id} | The member is in the path and is user_id in the answer, scope is gone because the path says which kind of Fact it is, and id is a string. The key needs the read scope, a confirmed member-event endpoint, and an issuer who may read Facts about the member (the Avatar’s Owner, an Avatar Admin or MaxGood.work staff, or an Avatar Coach for their own clients). The lookup counts in the Avatar’s reading limit, 15 a minute for an Enterprise Avatar and 6 for an Essential Avatar, shared by all its keys. A member who is not an active member of the Avatar answers 404 user_not_found; a Fact that does not exist, is about the Avatar or another member, or is not visible to the issuer answers 404 fact_not_found; an Avatar whose type keeps no Facts answers 403 facts_disabled. | | POST /v1beta/facts with a user_id (a Fact about a member) | POST /v1/members/{user_id}/facts | The member is in the path; the body is text only, so user_id and scope are not fields here and any other field answers 400 invalid_request with fields. text must be a string; a missing or blank text answers 400 fact_text_required. The key needs the write scope and the Avatar needs a confirmed member-event endpoint. An Avatar Coach’s key adds a Fact only about a current client and receives 403 fact_clients_only for any other person (/v1beta answered 404 user_not_found for a person who is not a client). An issuer who holds no Fact role receives 403 issuer_not_authorized where /v1beta answered 404 fact_not_found. The success status is 201 where /v1beta answered 200; id is a string, timestamps are RFC 3339 UTC with milliseconds and the Fact has user_id and no scope. The add counts as one change in the Avatar’s member-change limit, which replaces the hourly Fact-write limit. Failures answer in the failure shape with error_code and request_id. Every response carries X-Request-Id. | | PATCH /v1beta/facts/{fact_id} (a Fact about a member) | PATCH /v1/members/{user_id}/facts/{fact_id} | The member is in the path, so a Fact of the whole Avatar and a Fact about another member answer 404 fact_not_found; the Fact id is a string and the Fact has no scope. The body takes status, text or both and refuses any other field with 400 invalid_request and fields. The change is one step: a change that is refused leaves the Fact as it was, and a Fact that stays hidden never counts against the Avatar’s total Fact limit. The change counts in the Avatar’s daily limit for member changes. The key needs the write scope and a confirmed member-event endpoint (403 member_events_endpoint_required). A member the Avatar does not have answers 404 user_not_found. Failures answer in the failure shape with error_code and request_id. Every response carries X-Request-Id. | | DELETE /v1beta/facts/{fact_id} | DELETE /v1/members/{user_id}/facts/{fact_id} | For a Fact about a member. The member’s id is in the path, and the answer is {"id":"<string>","deleted":true} where it was {"deleted":true,"fact_id":<number>}. The key needs the write scope. An Avatar-wide Fact, a Fact about another member and an id that names nothing answer 404 fact_not_found; an unknown person, a person who is not a member and an erased person answer 404 user_not_found. A key whose issuer holds no role over Facts answers 403 issuer_not_authorized. The deletion counts in the Avatar’s daily member-changes limit, and the Avatar needs a confirmed member-event endpoint. | | GET /v1beta/facts/{fact_id}/history (a Fact about a member) | GET /v1/members/{user_id}/facts/{fact_id}/history | The path names the member as well as the Fact, and serves Facts about that member only; an Avatar’s own Fact answers 404 fact_not_found (read it at GET /v1/content/facts/{fact_id}/history). A user_id that names no active member answers 404 user_not_found. The answer is paged: versions is items beside page, page_size and total, newest edit first, and fact_id and each version’s id are strings. edited_at is an RFC 3339 UTC timestamp. The key needs the read scope and must be attached to a member-event endpoint that answers. The lookup counts in the Avatar’s reading limit. Failures answer in the failure shape with error_code and request_id, and the 429 carries retry_after_seconds, limit and window_seconds. Every response carries X-Request-Id. | | notes, notes_withheld and notes_meta of GET /v1beta/users and GET /v1beta/users/{id} | GET /v1/members/{user_id}/notes | The notes are not part of a member. The endpoint answers notes, withheld (the old notes_withheld) and meta (the old notes_meta: chars, updated_at, updated_by_role). A key whose issuer may not read the notes receives 200 with withheld true and notes null, as before. The key needs the read scope and a member-event endpoint. The lookup counts in the Avatar’s reading limit. | | PUT /v1beta/users/{user_id} (the notes field) | PUT /v1/members/{user_id}/notes | Notes have their own endpoint. The body is {"notes": <text or null>} and nothing else; null or an empty text clears the notes. The answer is the notes as stored (user_id, notes, withheld, meta) where it was the whole user object. A text over 2,500 characters receives 400 field_too_long with field and max_length. A key whose issuer may not write notes receives 403 notes_owner_key_only, also when it sends the stored text. An id that is not a member receives 404 user_not_found. The call counts as one member change in the Avatar’s daily limit (1,440 for an Enterprise Avatar and 360 for an Essential Avatar, shared by all its keys). The Avatar needs a confirmed member-event endpoint. | | structured_data, structured_data_withheld and structured_data_meta in GET /v1beta/users and GET /v1beta/users/{user_id} | GET /v1/members/{user_id}/structured-data | A Member’s structured data is not part of the Member or of any list. Read it with one call per Member: structured_data is the JSON object or null, withheld is structured_data_withheld, and meta.chars is structured_data_meta.chars. A key issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff reads the value on every Avatar type; a key issued by any other member answers 200 with withheld true, a null value and meta. The key needs the read scope and a confirmed member-event endpoint. The lookup counts in the Avatar’s reading limit. An unknown person, a person who is not a Member, a removed Member and an erased person all receive 404 user_not_found. | | PUT /v1beta/users/{user_id} (structured_data) | PUT /v1/members/{user_id}/structured-data | Structured data changes through its own operation. The body is {"structured_data": <object or null>} and replaces the stored value; null removes it. The response is the value as stored: user_id, structured_data, withheld (false) and meta (chars). A value over 262,144 characters of compact JSON answers 400 field_too_large; a key that was not issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff answers 403 user_data_admin_key_only. The call needs the write scope and counts in the Avatar’s member-change limit. | | GET /v1beta/interactions | GET /v1/interactions | The Avatar is avatar_id where /v1beta answered org_id, references is reference_chunk_ids, and the list is items where /v1beta answered interactions; the answer also carries access and scope in the same place as before. A page, page_size or since that cannot be read receives 400 invalid_page, invalid_page_size or invalid_since. An issuer who reads no interactions receives 403 issuer_not_authorized where /v1beta answered 404. The key needs the read scope and a confirmed member-event endpoint (403 member_events_endpoint_required and member_events_unreachable). | | GET /v1beta/users/{user_id}/interactions | GET /v1/members/{user_id}/interactions | The member’s id is in the path as before. The page is items, with page, page_size, total, access and summary; the member’s id is not repeated at the top. Each interaction names its Avatar avatar_id (was org_id) and its cited chunks reference_chunk_ids (was references). The summary names the Avatar avatar_id, and last_interaction_at is a UTC timestamp. A person the key may not read is 404 user_not_found with an error_code. A bad page, page_size or since is 400 with invalid_page, invalid_page_size or invalid_since. The call needs the member-event endpoint (403 member_events_endpoint_required) and counts in the Avatar’s reading limit. | | POST /v1beta/avatar/respond | POST /v1/avatar/respond | The body field mg_user_id is user_id, and the body is checked strictly: another field, a value of the wrong type or a blank value receives 400 invalid_request with fields. The answer {"response":{"response","interaction_id","partner_content_ids"}} is {"reply","interaction_id","reference_urls"}. A member who is archived, whose licence has expired or whose account is suspended received 200 with the refusal text as the reply; the call now answers 403 member_archived, member_license_expired or member_suspended, with the refusal text in response and the stored turn’s interaction_id. A member who has not accepted the agreement receives 403 agreement_required with agreement_party member; a person who is not a member receives 404 user_not_found. The key needs the chat scope. Each reply counts in the Avatar’s hourly limit (30 for an Enterprise Avatar, 6 for an Essential Avatar), and a refused turn costs nothing; the call receives 503 when the counter cannot be read. |

Retirement dates

| /v1beta endpoint | /v1 replacement | Ends on | | — | — | — | | GET /v1beta/public/stats | GET /v1/public/stats | 30 May 2027 | | GET /v1beta/public/foundation-titles | GET /v1/public/foundation/titles | 30 May 2027 | | GET /v1beta/public/authors | GET /v1/public/foundation/authors | 30 May 2027 | | GET /v1beta/public/free-avatars | GET /v1/public/free-avatars | 30 May 2027 | | GET /v1beta/public/avatars | GET /v1/public/avatars | 30 May 2027 | | GET /v1beta/public/showcase | GET /v1/public/foundation/showcase | 30 May 2027 | | GET /v1beta/organization | GET /v1/avatar | 1 June 2027 | | GET /api/enterprise/get_organization_details | GET /v1/avatar | 1 June 2027 | | POST /v1beta/rag-search | none | 1 December 2026 | | POST /api/enterprise/avatar_simple_rag | none | 1 December 2026 | | GET /v1beta/content/titles | GET /v1/content/titles | 1 June 2027 | | GET /v1beta/content/titles/<title_id> | GET /v1/content/titles/{title_id} | 1 June 2027 | | POST /v1beta/content/titles | POST /v1/content/titles | 1 June 2027 | | PUT /v1beta/content/titles/{title_id} | PATCH /v1/content/titles/{title_id} | 1 June 2027 | | PUT /v1beta/content/titles/{title_id}/is_enabled | PATCH /v1/content/titles/{title_id} | 1 June 2027 | | DELETE /v1beta/content/titles/{title_id} | DELETE /v1/content/titles/{title_id} | 1 June 2027 | | POST /v1beta/content/titles/{title_id}/upload | POST /v1/content/titles/{title_id}/uploads | 1 June 2027 | | GET /v1beta/content/titles/{title_id}/documents | GET /v1/content/titles/{title_id}/documents | 1 June 2027 | | GET /v1beta/content/titles/{title_id}/chunks | GET /v1/content/titles/{title_id}/chunks | 1 June 2027 | | GET /v1beta/content/chunks/{chunk_id} | GET /v1/content/chunks/{chunk_id} | 1 June 2027 | | PUT /v1beta/content/chunks/{chunk_id} | PATCH /v1/content/chunks/{chunk_id} | 1 June 2027 | | DELETE /v1beta/content/chunks/{chunk_id} | DELETE /v1/content/chunks/{chunk_id} | 1 June 2027 | | GET /v1beta/content/titles/{title_id}/footer | GET /v1/content/titles/{title_id}/footer | 1 June 2027 | | PUT /v1beta/content/titles/{title_id}/footer | PUT /v1/content/titles/{title_id}/footer | 1 June 2027 | | DELETE /v1beta/users/{user_id} | DELETE /v1/members/{user_id} | 1 June 2027 | | POST /v1beta/users/{user_id}/archive | POST /v1/members/{user_id}/archive | 1 June 2027 | | POST /v1beta/users/{user_id}/unarchive | POST /v1/members/{user_id}/unarchive | 1 June 2027 | | PUT /v1beta/users/{user_id}/coach | PUT /v1/members/{user_id}/coach | 1 June 2027 | | GET /v1beta/users/<user_id>/tags | GET /v1/members/{user_id}/tags | 1 June 2027 | | POST /v1beta/tags | POST /v1/members/{user_id}/tags | 1 June 2027 | | POST /api/enterprise/add_tags_to_user | POST /v1/members/{user_id}/tags | 1 June 2027 | | DELETE /v1beta/users/{user_id}/tags | DELETE /v1/members/{user_id}/tags | 1 June 2027 | | GET /v1beta/users/{user_id}/files | GET /v1/members/{user_id}/files | 1 June 2027 | | GET /v1beta/users/{user_id}/files/{file_id} | GET /v1/members/{user_id}/files/{file_id} | 1 June 2027 | | GET /v1beta/users/{user_id}/files/{file_id}/chunks | GET /v1/members/{user_id}/files/{file_id}/chunks | 1 June 2027 | | POST /v1beta/users/{user_id}/files | POST /v1/members/{user_id}/files | 1 June 2027 | | DELETE /v1beta/users/{user_id}/files/{file_id} | DELETE /v1/members/{user_id}/files/{file_id} | 1 June 2027 | | GET /v1beta/facts | GET /v1/members/{user_id}/facts (a member’s Facts) and GET /v1/content/facts (the Avatar’s own Facts) | 1 June 2027 | | GET /v1beta/facts/{fact_id} | GET /v1/content/facts/{fact_id} for a Fact about the Avatar, GET /v1/members/{user_id}/facts/{fact_id} for a Fact about a member | 1 June 2027 | | POST /v1beta/facts | POST /v1/members/{user_id}/facts (a member’s Fact) and POST /v1/content/facts (the Avatar’s own Fact) | 1 June 2027 | | PATCH /v1beta/facts/{fact_id} | PATCH /v1/content/facts/{fact_id} for a Fact of the Avatar, PATCH /v1/members/{user_id}/facts/{fact_id} for a Fact about a member | 1 June 2027 | | DELETE /v1beta/facts/{fact_id} | DELETE /v1/members/{user_id}/facts/{fact_id} (a member’s Facts) and DELETE /v1/content/facts/{fact_id} (the Avatar’s own Facts) | 1 June 2027 | | GET /v1beta/facts/{fact_id}/history | GET /v1/content/facts/{fact_id}/history (the Avatar’s own Facts), GET /v1/members/{user_id}/facts/{fact_id}/history (Facts about a member) | 1 June 2027 | | GET /v1beta/users | GET /v1/members | 1 June 2027 | | GET /v1beta/users/{user_id} | GET /v1/members/{user_id} | 1 June 2027 | | POST /v1beta/users | POST /v1/members | 1 June 2027 | | POST /v1beta/users/batch | POST /v1/members/batch | 1 June 2027 | | PUT /v1beta/users/{user_id} | PATCH /v1/members/{user_id}, PUT /v1/members/{user_id}/notes and PUT /v1/members/{user_id}/structured-data | 1 June 2027 | | GET /v1beta/interactions | GET /v1/interactions | 1 June 2027 | | GET /v1beta/users/{user_id}/interactions | GET /v1/members/{user_id}/interactions | 1 June 2027 | | POST /v1beta/avatar/respond | POST /v1/avatar/respond | 1 June 2027 |

A retired endpoint answers 410 with error_code endpoint_retired and a successor field holding the replacing path, or null when there is none.

Where to ask

Questions go to the api-support channel of the MaxGood.work Global User Community on Discord at https://discord.gg/xhkwCfYurk. MaxGood.work posts every announcement of a change to the API and to its terms in the api-announcements channel of the same server. Security reports go privately to security@maxgood.work.

Endpoint reference

The interactive reference below is rendered from the OpenAPI 3 specification. To generate clients, download the OpenAPI specification.

Terms of Use

These terms cover the Public API. The API lives under the /v1/ prefix (https://api.maxgood.work/v1/...). The endpoint reference, with every request, response and error, is published beside these terms at https://blog.maxgood.work/api-documentation.

1. Disclaimer

The Public API is offered for building and testing integrations. You use it at your own risk.

MaxGood.work provides the API and its documentation “as is” and “as available”. To the extent the law allows, MaxGood.work gives no warranty or guarantee of any kind. That includes any warranty or guarantee of fitness for a purpose, of accuracy, of availability, of security, of privacy, of compliance, and that the API or its documentation stays unchanged.

MaxGood.work may change, suspend or end any part of the API at any time.

To the extent the law allows, MaxGood.work is not liable for any loss that comes from using the API or from relying on it or its documentation.

The documentation is information, not a promise. Nothing in these terms limits a liability that the law does not allow to be limited.

An Avatar’s Owner accepts the Owner agreement before a /v1 key of that Avatar works. Until then the key receives 403 with error_code agreement_required.

2. Who can use it, and what the API covers

The Public API is for the Owners and Avatar Admins of Essential Avatars and Enterprise Avatars, and for the developers who build their integrations. An Avatar Admin or Avatar Owner creates an API key in the MaxGood.work web app (Avatar Admin > Account). Each key is bound to one Avatar and acts only on that Avatar. An Avatar Admin of several Avatars creates one key for each. A key of an Avatar whose Avatar type does not offer the API receives 403 api_not_available, and the key works again when the Avatar’s type offers the API.

Some features belong to Enterprise Avatars only: member tags, the Avatar Coach role and the edit history of Facts. The endpoint reference marks each one, and an Essential Avatar’s key receives 403 on it.

The API manages an Avatar’s Content and Members. An Avatar’s purpose, identity and behaviour belong to the Avatar’s Owner and Admins, who set them in the MaxGood.work web app.

The /v1/ surface covers these endpoint groups. The endpoint reference defines the behaviour of each.

  • Public read tier (/v1/public/*): platform statistics.
  • Avatar (/v1/avatar): the Avatar a key is bound to.
  • Content (/v1/content/*): the Avatar’s Content titles.
  • Content (/v1/content/*): the titles that hold an Avatar’s Content.
  • Content chunks (/v1/content/chunks): reading the chunks of the Avatar’s Content.
  • Facts (/v1/content/facts): the short statements an Avatar keeps about itself and weaves into its replies.
  • Members (/v1/members): the people in the Avatar a key is bound to. These operations need a confirmed member-event endpoint (section 9).
  • Interactions (/v1/interactions, /v1/members/{user_id}/interactions): what members said to the Avatar and what it answered.
  • Reply (/v1/avatar/respond): an Avatar’s reply to a message from one of its members.

The public read tier (/v1/public/*) needs no key. It serves only information that is public by design. An Avatar that is not public answers exactly as an Avatar that does not exist.

Other MaxGood.work routes, including those the MaxGood.work web app and the messaging integrations use, are outside these terms. Only /v1/* is covered.

3. How the API answers

Every error answers in one shape: {"result":"failure","response":"<message>","error_code":"<code>","request_id":"<id>"}, with named extra fields where the endpoint reference lists them. Branch on error_code; the message is fixed text for its code. Write your client to ignore response fields it does not know and to treat an enum value it does not know as “other”.

4. Response headers

Every response carries X-Request-Id, whose value is req_ followed by 32 lowercase hexadecimal characters; a failure body repeats it as request_id. MaxGood.work records the same value with the request, so support answers a question about a request from its X-Request-Id without asking for the request’s content.

5. Retiring endpoints

A retiring endpoint carries Deprecation, Sunset and Link headers on every response from the day its replacement is in production. After its Sunset date the endpoint answers 410 with error_code endpoint_retired, a successor field (the replacing path, or null) and the request_id.

5.1 Dated /v1beta ends

Each /v1beta/ endpoint and each /api/enterprise/* route ends six months after its /v1/ replacement is in production, on the date in its Sunset header and in the migration guide’s retirement table. A /v1beta endpoint with several /v1 replacements carries its Deprecation and Sunset headers from the last replacement’s release. After its date the endpoint answers 410 endpoint_retired. The migration guide at https://blog.maxgood.work/api-documentation#migration lists every change per endpoint.

6. Notices of change

MaxGood.work posts every announcement of a change to the API and to these terms in the api-announcements channel of the MaxGood.work Discord server at https://discord.gg/xhkwCfYurk.

MaxGood.work emails the Owners and Admins of one Avatar about that Avatar’s own key or endpoint, for example when a key is frozen or unfrozen, or when its member-event endpoint is added, changed, confirmed, failing, suspended or restored.

7. Rate limits and fair use

  • The public read tier allows 600 requests per client IP address in each 60-second window. A request over the limit receives 429 with error_code rate_limited, a Retry-After header, and retry_after_seconds, limit and window_seconds in the body. Wait for retry_after_seconds, then retry.
  • MaxGood.work may change any limit at any time, and may lower one at once to control cost or stop abuse.
  • Contact support before you backfill or migrate a large volume.
  • MaxGood.work may throttle or block a client that generates sustained abnormal load, abusive content, or unauthorized security-test traffic.
  • All actions are production actions. The API has no test mode and no test keys. Ask support for a separate Avatar if you need one for testing.

8. Versioning

/v1/ is the version of the API these terms cover. Another version can appear under another prefix.

9. Support and feedback

  • Documentation: https://blog.maxgood.work/api-documentation holds the endpoint reference, the migration guide and these terms.
  • Support, bug reports and feature requests: join our Discord server at https://discord.gg/xhkwCfYurk and use the api-support channel.
  • Security reports: send them privately to security@maxgood.work. Do not post a vulnerability in Discord.

10. Endpoint sections

Each endpoint has its own section. A section states the method and path, who may call it, the limit that applies, its request and response shape, its error codes, and the /v1beta route it replaces with that route’s sunset date.

10.1 GET /v1/public/stats

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: no parameters and no body.
  • Response: 200 with {"result":"success","response":{"total_avatars":<integer>,"total_users":<integer>,"total_interactions":<integer>}}. The three totals are historical, platform-wide and never negative; archived and removed accounts and interactions stay in the counts, so they only grow. The response is cached for up to 2 minutes.
  • Errors: 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/stats, whose total_organizations field is total_avatars here. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.2 GET /v1/public/foundation/titles

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: no parameters and no body.
  • Response: 200 with {"result":"success","response":{"titles":[{"id","name","description","authors","owner","usage_count","image_url"}]}}. The collection holds the Foundation Titles that are public; it is bounded, not paged, and ordered by name without regard to case. usage_count is the number of times the title’s content has been cited in an Avatar reply, never negative. owner is the id of the Foundation Author who owns the title. image_url is the path of the title’s image, which is shown only once the image has been approved. The response is cached for up to 2 minutes.
  • Errors: 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/foundation-titles, whose title is name and whose title_usage_count is usage_count here. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.3 GET /v1/public/foundation/authors

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: no parameters and no body.
  • Response: 200 with {"result":"success","response":{"authors":[{"id":<string>,"display_name":<string>,"bio":<string>,"backlink":<string>,"photo_url":<string>}]}}. The list holds the Foundation Authors who own a public Author Avatar or have at least one public Foundation title, ordered by display name. bio and backlink are the empty string when the author has published none. photo_url is the path of the author’s photo; it answers the photo once MaxGood.work has approved it and 404 until then. The response is cached for up to 60 seconds.
  • Errors: 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/authors. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.4 GET /v1/public/free-avatars

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: no parameters and no body.
  • Response: 200 with {"result":"success","response":{"avatars":[{"name":<string>,"free_trial_days":<integer>,"key_benefit":<string>}]}}. The list holds each Avatar a new account receives for free once, ordered by name without regard to case. free_trial_days is 0 for an Avatar that is free with no end date and otherwise the free period in days. key_benefit is one short sentence, or the empty string. The response is cached for up to 5 minutes, and a change to the free Avatars appears on the next request after the change.
  • Errors: 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/free-avatars, which answers the same entries. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.5 GET /v1/public/avatars

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: the optional query type narrows the list to one Avatar type, by exact name. Send it at most once, with 1 to 100 printable characters.
  • Response: 200 with {"result":"success","response":{"avatars":[...]}}. The list holds every Avatar whose public listing is on and whose Avatar type has a public listing category, in ascending order of id. It is not paged and a change to an Avatar’s listing state appears on the next request, and any other change to an entry within 2 minutes. Each entry carries id, name, mission, vision, values, industries, expertise, avatar_info_url, avatar_logo_url, type, category (key, label, rank), created_at, has_icon, popularity, public_link and public_sort_rank, and nothing else. Member counts, waiting counts and every non-public Avatar are absent. A type that matches no listed Avatar answers an empty list.
  • Errors: 400 invalid_request with fields naming type when it is repeated, empty, over 100 characters or holds a control character; 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/avatars, whose created_on date is created_at here, an RFC 3339 timestamp in UTC. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.6 GET /v1/public/foundation/showcase

  • Who may call it: anyone. The endpoint needs no key and allows requests from any browser origin.
  • Limit: the public read tier’s 600 requests per client IP address in each 60-second window (section 7).
  • Request: no parameters and no body; a query string is ignored.
  • Response: 200 with {"result":"success","response":{"titles":[...],"author_avatars":[...]}}. Each title carries id, name, description, authors, image_url and owner_image_url, each title once, ordered by name. Each Author Avatar carries id, name, type, blurb, avatar_logo_url and avatar_info_url. Only Foundation titles and Avatars that are public by design appear. An image address is the empty string when no approved image exists. The Foundation titles are cached for up to 2 minutes; the Author Avatars, author names and image addresses are read at each call.
  • Errors: 429 rate_limited, 500 internal_error and 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: GET /v1beta/public/showcase, whose answer has the same shape. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.7 GET /v1/avatar

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still in the Avatar. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no parameters and no body. The endpoint reads the key’s own Avatar and nothing else.
  • Response: 200 with {"result":"success","response":{"id":"<string>","name":"<string>","type":"<string>"}}. id is the Avatar’s id, name its name and type the name of its Avatar type, for example Enterprise Avatar. The endpoint reports nothing about the Avatar’s purpose, identity or behaviour, which its Owner and Admins set in the MaxGood.work web app.
  • Checks: every key endpoint makes these checks in this order, and the first that fails answers. They hold on /v1/ and /v1beta/.
  1. The key is present, well formed, known and not revoked: 401 api_key_missing, api_key_invalid or api_key_revoked. Too many failed key checks from one address answer 429 auth_throttled with Retry-After.
  2. MaxGood.work has not paused the key: 403 key_frozen. Only a holder of the real key learns that it is paused.
  3. The Avatar’s type offers the API: 403 api_not_available.
  4. The key holds the scope the endpoint needs: 403 insufficient_scope, with required_scope. read allows every GET endpoint, write every other change to Members and Content, and chat the Avatar’s replies.
  5. The person who issued the key may act: 403 issuer_not_authorized. A key acts with the authority its issuer holds in the Avatar, and a key whose issuer has left the Avatar reaches nothing.
  6. The Avatar’s Owner has accepted the current Owner agreement: 403 agreement_required, with agreement_party owner and agreement_url. On /v1beta/ this check applies to keys created after the Owner agreement was published.

The endpoint’s own input checks follow, and then its limit is counted. A request refused by any check costs nothing against a limit.

  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/organization, whose org_id and org_name are id and name here, and GET /api/enterprise/get_organization_details, which returned only org_id. Both carry Deprecation, Sunset and Link headers and end on the dates in their Sunset headers and in the migration guide’s retirement table.
  • Search: the API has no search endpoint. POST /v1beta/rag-search and POST /api/enterprise/avatar_simple_rag answer 410 endpoint_retired with a successor of null. The API manages an Avatar’s Content and Members; an Avatar searches and answers inside the Avatar, because using content has a cost that belongs there.

10.8 GET /v1/content/titles

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is an Avatar Owner or an Avatar Admin. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused for its page or page_size costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. The query takes page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50). A value outside those bounds is refused, never changed. The endpoint reads the key’s own Avatar and nothing else.
  • Response: 200 with {"result":"success","response":{"items":[<Title>],"page":<integer>,"page_size":<integer>,"total":<integer>}}. total is the number of titles the Avatar has across all pages, its own and the titles shared into it together. A page past the last has no items and the same total. A Title is {"id":"<string>","name":"<string>","is_enabled":<boolean>,"chunk_count":<integer>,"created_at":"<UTC time to the second>","is_linked_from_other_avatar":<boolean>,"priority":"high"|"normal"|"low"}. chunk_count is the number of active chunks. is_linked_from_other_avatar is true for a title shared into the Avatar from another Avatar; its is_enabled is the Avatar Owner’s choice in the MaxGood.work web app. priority is the Avatar’s own preference for the title and is normal until it is set; for a shared-in title it is the Avatar’s own as well. The Avatar’s own titles come first and the shared-in titles after them; within each group the newest title is first, and the id orders titles created in the same second. Foundation titles are not Content and do not appear.
  • Checks: the key endpoint checks of GET /v1/avatar come first, in the same order. Content is managed by the Avatar’s Owner and Admins, so check 5 requires an issuer who is an Avatar Owner or an Avatar Admin. The endpoint’s own input checks follow, and then its limit is counted.
  • Errors: 400 invalid_page, invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/content/titles, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table. It answered every title at once in titles, with titles_count, title_id, title_name, count and is_linked_from_other_organization; here the list is paged in items and those names are total, id, name, chunk_count and is_linked_from_other_avatar.

10.9 GET /v1/content/titles/{title_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is an Avatar Owner or an Avatar Admin of the Avatar. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A 200 and a 404 count. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the title’s id in the path, as the list of titles returns it. No query parameters and no body.
  • Response: 200 with {"result":"success","response":{"id","name","is_enabled","chunk_count","created_at","is_linked_from_other_avatar","priority"}}, the same Title as the list of titles returns. The title is one the Avatar owns or one another Avatar has shared into it; is_linked_from_other_avatar is true for the second. priority is the Avatar’s own preference for the title (high, normal or low).
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 404 title_not_found; 429 rate_limited and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. title_not_found is the answer for a title that does not exist, a deleted title, a Foundation title, a title of another Avatar and a title no Avatar has shared into this one, so the answer never shows whether a title of another Avatar exists. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/content/titles/<title_id>, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table. /v1beta answered 404 for a title shared into the Avatar.

10.10 POST /v1/content/titles

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar. The key needs the write scope, and the person who issued it must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. A key issued by any other member receives 403 issuer_not_authorized.
  • Limit: one Content change in the Avatar’s daily limit, counted for /v1/ and /v1beta/ together and shared by all the Avatar’s keys. An Avatar that has any member who is neither its Owner nor an Admin (a Coach who is not an Admin, or a client) may make one Content change a day. An Avatar whose members are all its Owner and Admins may make as many Content changes a day as it may add documents to Content: 120 for an Enterprise Avatar and 60 for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body with Content-Type: application/json and one field, name, a string of 1 to 300 characters once spaces at its ends are removed. The body is checked strictly. A field that is not listed, a value of the wrong type and a missing or blank name answer 400 invalid_request; fields names each refused field and gives a short reason (required, must_be_string, too_long, invalid_format or unknown_field) and never repeats what was sent. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 201 with {"result":"success","response":{...}}, where response is the new title: id, name, is_enabled (false), chunk_count (0), created_at, is_linked_from_other_avatar (false) and priority (normal). A new title is switched off and holds no sections.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order. Then the body is checked, then the Content change is counted, then the title is created. A request refused by any check costs nothing against the limit. If MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and creates nothing; retry it.
  • Errors: 400 invalid_json, invalid_request; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/content/titles, whose body field title is name here and whose answer {"message","id"} is the title object here. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.11 PATCH /v1/content/titles/{title_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer manages the Avatar’s members. The key needs the write scope. Only a key issued by the Avatar’s current Owner may send priority.
  • Limit: one change in the Avatar’s content limit, whatever the number of fields in the body, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). When the counting service is unavailable the call answers 503 service_unavailable. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON object with at least one of name (text of 1 to 255 characters), is_enabled (a boolean) and priority (high, normal or low). Every other field is refused with the reason unknown_field, so the call changes no weight, owner or description. The body is at most 8,192 bytes and its content type is application/json.
  • Response: 200 with the title as it is after the change, in the shape of GET /v1/content/titles/{title_id}.
  • Checks: the key checks of every key endpoint come first. Then every field is checked before any is applied, and a request with one invalid field changes nothing. The title must be the Avatar’s own or shared into it. priority needs an Owner-issued key. A title shared in from another Avatar takes priority only. A title with no active chunks cannot be switched on.
  • Errors: 400 invalid_json, invalid_request (with fields: required, must_be_object, must_be_string, must_be_boolean, invalid_format, too_long, unknown_field, not_editable); 403 priority_owner_key_only; 404 title_not_found; 409 title_empty; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes); 503 service_unavailable; plus the key errors of section 4. Each is in the failure shape of section 3.
  • Replaces: PUT /v1beta/content/titles/{title_id}, whose title_name is name here, and PUT /v1beta/content/titles/{title_id}/is_enabled. Both carry Deprecation, Sunset and Link headers and end on the dates in their Sunset headers and in the migration guide’s retirement table.

10.12 DELETE /v1/content/titles/{title_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is an Owner or Admin of the Avatar. The key needs the write scope.
  • Limit: one change in the Avatar’s content changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. If the counting service is unavailable, the call is refused with 503 service_unavailable.
  • Request: the title’s id in the path; no body. The title must belong to the key’s Avatar.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true}}, where id is the title’s id. The deletion cannot be undone: the title’s name, description and footer and each chunk’s text are replaced with placeholders, the chunks stop being retrieved, and the uploaded files are permanently deleted. Replies that already cited the chunks keep their citations.
  • Errors: the key checks of the first endpoint’s section; 403 issuer_not_authorized; 404 title_not_found for a title that does not exist, is already deleted, belongs to another Avatar or is shared into this Avatar; 429 rate_limited (with rate_class content_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: DELETE /v1beta/content/titles/{title_id}, which answered {"message":"Title deleted successfully"}. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.13 POST /v1/content/titles/{title_id}/uploads

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer still manages the Avatar (its Owner, an Admin or MaxGood.work staff). The key needs the write scope.
  • Limit: one upload in the Avatar’s upload limit: 120 a day for an Enterprise Avatar and 60 a day for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. If the counting service is unavailable the upload is refused with 503 service_unavailable and is not counted.
  • Request: the path names one of the Avatar’s own Content titles. Send either multipart/form-data with the part file (one file) and the optional field source_document_title, or application/json with text (Markdown; HTML is converted to Markdown) and the optional source_document_title (at most 500 characters). A request is at most 25 MiB, measured on the body as it arrives. Any other field or part is refused.
  • Response: 201 with {"result":"success","response":{"title_id":"<string>","document_id":"<string or null>","chunk_ids":["<string>"],"chunk_count":<integer>}}. document_id names the stored document when a file was uploaded and is null when text was uploaded. chunk_ids lists the sections created, in order.
  • Checks: the key checks of GET /v1/avatar come first. The endpoint’s own checks follow in this order, and the first that fails answers: the media type (415 unsupported_media_type); the size (413 payload_too_large, with max_bytes); the title (404 title_not_found, for a title that does not exist, is deleted, belongs to another Avatar or is shared in from another Avatar); the size of the body as read; the body (400 invalid_json, or 400 invalid_request with fields); the file (400 empty_file or file_type_not_allowed). The upload is counted only after every check has passed, and a request refused by a check costs nothing against the limit.
  • Errors: 400 invalid_json, invalid_request, empty_file, file_type_not_allowed, no_text_extracted; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 404 title_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_uploads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 extraction_failed, embedding_failed, storage_failed (nothing is stored; retry) and service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/content/titles/{title_id}/upload, which answered 200 with message, chunk_ids and chunk_count and also accepted the part name files. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.14 GET /v1/content/titles/{title_id}/documents

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is an Owner or Admin of the Avatar. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path holds the title’s title_id, 1 to 64 letters, digits, hyphens or underscores. The optional query page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50) select the page. There is no body.
  • Response: 200 with {"result":"success","response":{"items":[...],"page":<int>,"page_size":<int>,"total":<int>}}. total is the number of documents the title holds, on all pages. The items run from the newest uploaded_at to the oldest, and by id where two share a time. Each item carries id, title_id, filename, extension (without the dot), content_type, size_bytes, uploaded_at (an RFC 3339 timestamp in UTC, or null when it was not recorded), is_active, download_url and download_url_expires_at, and nothing else. download_url is a link to the original file that works for 15 minutes and opens the file without a key; download_url_expires_at says when it stops. Both are null for a document that is not active and when no link can be made. Call the endpoint again for a fresh link. A page past the last one returns an empty items.
  • Checks: the key checks listed under GET /v1/avatar, in the same order, come first. Then page and page_size, then the title, and then the lookup is counted. A request refused by any check costs nothing against a limit.
  • Errors: 400 invalid_page or invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 404 title_not_found for a title that does not exist, was deleted, belongs to another Avatar or is shared into this Avatar from another, all answered alike; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/content/titles/{title_id}/documents, whose document_id, filetype, mimetype, filesize and upload_date are id, extension, content_type, size_bytes and uploaded_at here, and whose document_count is total. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.15 GET /v1/content/titles/{title_id}/chunks

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is an Owner or Admin of the Avatar. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request refused by a check costs nothing against a limit.
  • Request: the path names one of the Avatar’s own titles. The optional query page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50) choose the page.
  • Response: 200 with {"result":"success","response":{"items":[{"id","title_id","name","text","is_active"}],"page":<integer>,"page_size":<integer>,"total":<integer>}}. The list holds the title’s active chunks, ordered by id ascending, which is the order the chunks were created in. text is Markdown. total is the number of active chunks the title holds. A deleted chunk is not listed.
  • Errors: 400 invalid_page or invalid_page_size; 404 title_not_found for a title that does not exist, was deleted, or belongs to another Avatar, the three answered alike; 429 rate_limited; 500 internal_error; 503 service_unavailable, each in the failure shape of section 3, together with the key checks of GET /v1/avatar.
  • Replaces: GET /v1beta/content/titles/{title_id}/chunks, which listed every chunk at once with chunk_count and chunks, each chunk as chunk_id, chunk_name and chunk_text. Here chunk_id, chunk_name and chunk_text are id, name and text, and the list is paged. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.16 GET /v1/content/chunks/{chunk_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still an Owner or Admin of the Avatar (the endpoint reads Content). The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the chunk’s id in the path, 1 to 64 letters, digits, ., _ and -, starting with a letter or digit. No query parameters and no body.
  • Response: 200 with {"result":"success","response":{"id":"<string>","title_id":"<string>","name":"<string>","text":"<string>","is_active":<boolean>}}. text is the chunk’s text as Markdown. A chunk that was deleted stays readable with is_active false and placeholder text and name, so a chunk id from an earlier reply remains valid to read. A chunk of a member’s own profile file belongs to the member and is not served here.
  • Checks: the checks of every key endpoint, listed under GET /v1/avatar, run first in the same order. The chunk is then looked up in the key’s own Avatar only: an id that no chunk of the Avatar has, the id of a chunk of another Avatar and an id that cannot be a chunk id all answer 404 chunk_not_found, so the answer never shows whether a chunk exists elsewhere. A request refused by any check costs nothing against a limit.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 404 chunk_not_found; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/content/chunks/{chunk_id}, whose chunk_text and chunk_name are text and name here, and whose title_id and is_active keep their names. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.17 PATCH /v1/content/chunks/{chunk_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer manages members in the Avatar (its Owner or an Admin). The key needs the write scope.
  • Limit: one change in the Avatar’s content-changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: path parameter chunk_id, a chunk of the Avatar’s own Content. The body is a JSON object, sent with Content-Type: application/json and at most 1 MiB: text (string, required, with something in it besides white space; HTML is converted to Markdown) and source_document_title (string, optional, at most 255 characters, no control characters; it rebuilds the chunk’s header, which names its title and its source document, and leaving it out keeps the current one). Any other field is refused.
  • Response: 200 with {"result":"success","response":{"id","title_id","name","text","is_active"}}, the chunk after the edit; text is Markdown and the text is embedded again before the answer.
  • Checks: the key checks of the Avatar endpoint come first, then the body, then the chunk, then the limit is counted, then the edit is made. The edit is recorded in the Avatar’s audit log with the new text’s length and never the text.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 400 invalid_json, invalid_request (with fields); 413 payload_too_large (with max_bytes); 415 unsupported_media_type; 404 chunk_not_found (a chunk that does not exist, is deleted, belongs to a deleted title or belongs to another Avatar); 429 rate_limited (with rate_class content_changes) and auth_throttled; 500 internal_error; 503 service_unavailable (also when the counting service is unavailable: the edit is refused and nothing is changed). Each is in the failure shape of section 3.
  • Replaces: PUT /v1beta/content/chunks/{chunk_id}, whose body field chunk_text is text here and which answered a message. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.18 DELETE /v1/content/chunks/{chunk_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is an Owner or Admin of the Avatar. The key needs the write scope.
  • Limit: one change in the Avatar’s Content changes limit, counted once the section is found: 1 a day for an Avatar that has any member who is neither its Owner nor an Admin, and otherwise the Avatar’s adding-documents limit (120 a day for an Enterprise Avatar, 60 for an Essential Avatar). The limit is shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the chunk_id in the path and no body. The section is one of the Avatar’s own.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true}}, where id is the id of the deleted section. The section’s text and name are replaced with placeholders, it becomes inactive and its embedding is removed, so the Avatar stops using it. Its id stays readable with GET /v1/content/chunks/{chunk_id}, and replies that cited it keep their citations.
  • Checks: the key checks of GET /v1/avatar run first, in the same order, with the issuer check requiring an Owner or Admin. The section is then looked up in the Avatar’s own Content: a section that does not exist, belongs to another Avatar, is already deleted or belongs to a deleted title answers 404 chunk_not_found, and the answer never shows whether a section exists in another Avatar. The limit is counted only after the section is found, so a refused request costs nothing.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 404 chunk_not_found; 429 rate_limited (with rate_class content_changes, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, the endpoint deletes nothing and answers 503.
  • Replaces: DELETE /v1beta/content/chunks/{chunk_id}, which answered {"message":"Chunk deleted successfully"}; it carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.19 GET /v1/content/titles/{title_id}/footer

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is the Avatar’s Owner or an Avatar Admin. The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the id of one of the Avatar’s own titles in the path; no query and no body.
  • Response: 200 with {"result":"success","response":{"id":"<string or null>","title_id":"<string>","footer_html":"<string>","is_default":<boolean>}}. When the title has a footer of its own, id is its id and is_default is false. When it has none, id is null, footer_html is the footer default of the Avatar’s type and is_default is true.
  • Errors: the key checks of the first endpoint’s section, then 404 title_not_found for a title that does not exist, is deleted, belongs to another Avatar or is only shared into this Avatar, and for an id that cannot name a title; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/content/titles/{title_id}/footer, whose footer_id is id here, and which has no title_id or is_default. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.20 PUT /v1/content/titles/{title_id}/footer

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is an Owner or an Admin of the Avatar. The key needs the write scope. The Avatar’s type must allow footer edits.
  • Limit: one change in the Avatar’s Content-changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7): 1 a day when the Avatar has any Member who is neither its Owner nor an Admin; otherwise 120 a day for an Enterprise Avatar and 60 a day for an Essential Avatar. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names one of the Avatar’s own Content titles. The body is {"footer_html":"<string>"} and nothing else: footer_html is required, a string of at most 500 characters, and any other field is refused. Scripts, event handlers and script links are removed from the HTML before it is stored.
  • Response: 200 with {"result":"success","response":{"id":"<string>","title_id":"<string>","footer_html":"<string>","is_default":false}}. The call is an upsert: it creates the footer when the title has none and replaces it when it has one, and answers 200 either way. footer_html is the footer as stored.
  • Checks: the key checks of section 6, in their order. The body is checked next (415 unsupported_media_type, 413 payload_too_large, 400 invalid_json, 400 invalid_request with fields), then the title (404 title_not_found: a title that does not exist, is deleted, belongs to another Avatar, is shared into this Avatar or is a Foundation title), then the Avatar type (403 footer_not_editable). The limit is counted last, just before the write. A request refused by any check costs nothing against a limit.
  • Errors: 400 invalid_json, invalid_request (fields reasons required, must_be_string, too_long, unknown_field, must_be_object); 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, footer_not_editable; 404 title_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint answers 503 and changes nothing.
  • Replaces: PUT /v1beta/content/titles/{title_id}/footer, which answered footer_id and a message and now carries Deprecation, Sunset and Link headers; it ends on the date in its Sunset header and in the migration guide’s retirement table.

10.21 GET /v1/content/facts

  • Who may call it: a key of an Avatar whose type keeps Facts, issued by the Avatar’s Owner or an Avatar Admin who is still in the Avatar. The key needs the read scope. The call needs no member-event endpoint.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request that a check refuses costs nothing.
  • Request: no body. The optional query status is active, hidden or all (the default), in lower case. page is a whole number from 1 (the default) and page_size a whole number from 1 to 100 (the default is 50). Any other query parameter is ignored.
  • Response: 200 with {"result":"success","response":{"items":[...],"page":<int>,"page_size":<int>,"total":<int>,"limits":{...}}}. The list holds the Avatar’s own Facts, the statements the Avatar keeps about itself, in ascending order of their numeric id; the Facts about a member are not in it. total counts every Fact that matches, across pages. A page past the last one has an empty items list. Each item carries id (a string of digits), text, token_count, status (active or hidden), source, created_by_user_id (null where the key’s issuer may not see who wrote the Fact), created_at, updated_at, version_count (null when the Avatar’s type keeps no edit history) and access (edit or view: what the key’s issuer may do with the Fact in the MaxGood.work web app), and nothing else. limits holds per_fact_tokens (the most one Fact may hold), total_tokens (the most the Avatar’s active Facts may hold together, the Facts about members included), active_tokens (what they use now) and history_tracked (whether the type keeps edit history).
  • Errors: 400 invalid_page, invalid_page_size (a value that is not a whole number in range is refused and never adjusted) and invalid_status; 403 facts_disabled when the Avatar’s type keeps no Facts, and issuer_not_authorized; each in the failure shape of section 3, besides the key checks, 429, 500 and 503 that every key endpoint can answer (see GET /v1/avatar).
  • Replaces: GET /v1beta/facts for the Avatar’s own Facts. GET /v1beta/facts takes the same paging rules now: page_size goes from 1 to 100 and a value outside the range answers 400 invalid_paging; the call counts in the reading limit, and an issuer who does not manage the Avatar’s members receives 403 issuer_not_authorized for scope avatar.

10.22 GET /v1/content/facts/{fact_id}

  • Who may call it: a key of an Avatar whose type has Facts and offers the API, and whose issuer manages the Avatar’s Members (its Owner or an Admin, or MaxGood.work staff acting as the Owner). The key needs the read scope.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path holds the Fact’s id, a whole number written in digits from 1 to 2147483647 with no sign, space or leading zero. No query and no body.
  • Response: 200 with {"result":"success","response":<Fact>}. A Fact is {"id":"<string>","text":"<string>","token_count":<integer>,"status":"active"|"hidden","source":"<string>"|null,"created_by_user_id":"<string>"|null,"created_at":"<timestamp>"|null,"updated_at":"<timestamp>"|null,"version_count":<integer>|null,"access":"edit"|"view"}. id is a string. version_count is the number of earlier versions of the text, and null when the Avatar’s type keeps no Fact history. access says whether the key’s issuer may change the Fact. The Fact holds no scope and no user_id: this endpoint reads Facts the Avatar keeps about itself, and a Member’s Facts have their own endpoints.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, facts_disabled; 404 fact_not_found; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. fact_not_found answers one body for an id that is not a Fact id, a Fact that does not exist, a Fact of another Avatar, a Fact about a Member and a Fact the key’s issuer may not see. A request refused by any check costs nothing against a limit.
  • Audit: each successful read is recorded in the Avatar’s audit trail with the Fact’s id and the key, and never the Fact’s text.
  • Replaces: GET /v1beta/facts/{fact_id} for an Avatar-wide Fact. id is a string here and was a number; scope and user_id are absent. The /v1beta route reads its Facts with the same checks and the same limit.

10.23 POST /v1/content/facts

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is an Avatar Owner or Avatar Admin of the Avatar, and whose Avatar type keeps Facts. The key needs the write scope. A Fact the key adds is recorded as added by its issuer, who can edit it in the MaxGood.work web app under the same rules.
  • Limit: one change in the Avatar’s content-change limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). An Avatar that has members other than its Owner and Admins may make one content change a day; any other Avatar may make 120 a day (Enterprise Avatar) or 60 a day (Essential Avatar). A request refused by any check costs nothing against the limit. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body, sent as application/json and at most 16,384 bytes, holding text (string, required) and nothing else. text is trimmed, then must hold at least one character, at most 2,000 characters and at most the largest Fact the Avatar type allows, counted in tokens.
  • Response: 201 with {"result":"success","response":{"id":"<string>","text":"<string>","token_count":<integer>,"status":"active","source":"<string>","created_by_user_id":"<string>","created_at":"<timestamp>","updated_at":"<timestamp>","version_count":<integer or null>,"access":"edit"}}. A new Fact is active and reaches the Avatar’s replies to every member. version_count is 0 on an Avatar type that keeps the edit history of Facts and null on one that does not.
  • Budget: the Avatar type limits the total of the Avatar’s active Facts, counted in tokens. The check and the add happen while no other Fact of the Avatar is being added, changed or switched on, so two requests sent together cannot pass the total between them. A Fact that would pass it is refused with 409 fact_budget_exceeded and is not stored.
  • Errors: 400 invalid_json, invalid_request (with fields naming the field and the reason), fact_text_required, and fact_too_long (with max_characters, or token_count and max_tokens); 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, facts_disabled; 409 fact_budget_exceeded (with active_tokens, max_tokens and token_count); 413 payload_too_large (with max_bytes); 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, the endpoint answers 503 service_unavailable and adds nothing.
  • Replaces: the Avatar-wide use of POST /v1beta/facts, a request with no user_id. A Fact about one member is added with the Members endpoints. POST /v1beta/facts carries Deprecation, Sunset and Link headers once the Members endpoint that adds a member’s Fact is in production, and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.24 PATCH /v1/content/facts/{fact_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose type keeps Facts, issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. The key needs the write scope.
  • Limit: one change in the Avatar’s daily limit for Content changes, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request refused before the change is made costs nothing.
  • Request: the path names the Fact. The body is a JSON object with status (active or hidden, any letter case), text (a non-empty string of at most 2000 characters, within the Avatar’s limit of tokens for one Fact) or both. Any other field is refused.
  • Response: 200 with {"result":"success","response":<Fact>}, the Fact as it stands after the change. The change is one step: the new text, the new status and the saved earlier version of the text (on an Avatar type that keeps a Fact history) are written together or not at all. A change that is refused leaves the Fact as it was.
  • Total limit: the Avatar’s active Facts have a total limit of tokens. It is checked against the Fact as it will stand after the change. A Fact that stays hidden never counts against it, and a change that would take the active Facts past it answers 409 fact_budget_exceeded with active_tokens and max_tokens.
  • Errors: 400 invalid_json, invalid_request (with fields), invalid_status, fact_text_required, fact_too_long (with max_characters, or token_count and max_tokens); 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, facts_disabled, fact_view_only (the issuer may read this Fact and not change it, for example an Admin and a Fact an Avatar Coach added); 404 fact_not_found (a Fact that does not exist, a Fact of another Avatar, a Fact of a member, a Fact the issuer may not see and an id that is not a whole number); 409 fact_budget_exceeded; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes) and auth_throttled; 500 internal_error; 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: PATCH /v1beta/facts/{fact_id} for an Avatar-wide Fact. The /v1beta endpoint takes the same strict body and the same single-step change from this release.

10.25 DELETE /v1/content/facts/{fact_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, with the write scope, whose issuer is the Avatar’s Owner, an Avatar Admin or MaxGood.work staff acting for the Avatar. The Avatar’s type must offer Facts.
  • Limit: one change in the Avatar’s daily limit for changing Content, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). The change is counted once every other check has passed, and a refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. fact_id is the Fact’s id in plain digits.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true}}. The Fact and its edit history are deleted for good. To keep a Fact and stop the Avatar using it, hide it with PATCH /v1/content/facts/{fact_id}.
  • Which Facts: this endpoint reaches the Avatar’s own Facts, the ones that describe the Avatar. A Fact about a member, a Fact of another Avatar and an id that names nothing all answer 404 fact_not_found, so the answer discloses nothing about them.
  • Errors: the key checks of section 6; 403 facts_disabled (the Avatar’s type has no Facts) and fact_view_only (the issuer may read the Fact and not change it); 404 fact_not_found; 429 rate_limited (with rate_class content_changes, retry_after_seconds, limit and window_seconds); 500 internal_error; 503 service_unavailable, which also answers when the limit cannot be counted just now, in which case nothing is deleted. Each is in the failure shape of section 3.
  • Replaces: DELETE /v1beta/facts/{fact_id}, which answered {"deleted":true,"fact_id":<number>}. It carries Deprecation, Sunset and Link headers and retires on the date in its Sunset header.

10.26 GET /v1/content/facts/{fact_id}/history

  • Who may call it: a key of an Enterprise Avatar whose issuer manages the Avatar (its Owner, an Avatar Admin or MaxGood.work staff). The key needs the read scope. An Avatar of any other type receives 403 fact_history_not_enabled.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names one of the Avatar’s own Facts. The optional query page (a whole number from 1, default 1) and page_size (a whole number from 1 to 100, default 50) select a page.
  • Response: 200 with {"result":"success","response":{"fact_id":"<string>","items":[FactVersion],"page":<integer>,"page_size":<integer>,"total":<integer>}}. The versions run from the newest edit to the oldest, by edited_at and then id, both descending. A version holds id, fact_id, text (the text the Fact held before the edit), token_count, edited_at, edited_by_user_id (null when the editor is not shown to the reader) and edit_source. total counts every version the Fact has.
  • Checks: after the key checks, the request is checked in this order and the first that fails answers: 400 invalid_page or invalid_page_size; 404 fact_not_found when the issuer holds no role that sees Facts; 403 facts_disabled when the Avatar’s type has no Facts; 404 fact_not_found when the Fact does not exist, belongs to another Avatar, is about a member, or may not be viewed by the issuer (one answer for all four); 403 fact_history_not_enabled when the Avatar’s type keeps no edit history. A request refused by any check costs nothing against a limit.
  • Errors: 400 invalid_page, invalid_page_size; 403 facts_disabled, fact_history_not_enabled and the key refusals of GET /v1/avatar; 404 fact_not_found; 429 rate_limited; 500 internal_error; 503 service_unavailable, each in the failure shape of section 3.
  • Audit: each read is recorded in the Avatar’s audit trail with the key, the Fact’s id, the number of versions returned and the request id, and never the text of a Fact.
  • Replaces: GET /v1beta/facts/{fact_id}/history, which answered all versions in a list named versions and served both kinds of Fact. The /v1beta endpoint keeps its answer and takes the checks and the limit above.

10.27 GET /v1/content/logistics

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar. The key needs the read scope, and the person who issued it must still be an Owner or Admin of the Avatar (or MaxGood.work staff). The key passes the checks listed under GET /v1/avatar.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no parameters and no body. The endpoint reads the key’s own Avatar and nothing else.
  • Response: 200 with {"result":"success","response":{...}}. The response holds the Logistics the Avatar’s Owner and Admins keep in Avatar Admin under Logistics: always the ten keys support_email, whatsapp, booking_url, website_url, linkedin_url, x_url, instagram_url, phone, office_hours and preferred_channel_note, and nothing else. Eight keys are {"enabled":<boolean>,"value":<string>}; support_email has an array of addresses for its value. phone is {"enabled","number","country"} and office_hours is {"enabled","hours","timezone"}, one enabled switch each for the pair. enabled is true until the Avatar’s Owner or Admin switches the detail off. A detail that is not stored is the empty string, and for support_email an empty array.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 429 rate_limited (with rate_class reads) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.

10.28 PUT /v1/content/logistics

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar. The key needs the write scope, and the person who issued it must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. A key issued by any other member receives 403 issuer_not_authorized.
  • Limit: one Content change in the Avatar’s daily limit, counted for /v1/ and /v1beta/ together and shared by all the Avatar’s keys. An Avatar that has any member who is neither its Owner nor an Admin (a Coach who is not an Admin, or a client) may make one Content change a day. An Avatar whose members are all its Owner and Admins may make as many Content changes a day as it may add documents to Content: 120 for an Enterprise Avatar and 60 for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body with Content-Type: application/json: the whole object, with all ten keys support_email, whatsapp, booking_url, website_url, linkedin_url, x_url, instagram_url, phone, office_hours and preferred_channel_note, shaped as GET /v1/content/logistics answers. Every enabled is true or false. A detail that is cleared is the empty string, and for support_email an empty array. The call replaces everything the Avatar holds: a key left out is refused, not kept. The body is checked strictly. A missing key, a key or a member that is not listed and a value of the wrong type answer 400 invalid_request; fields names each refused path and gives a short reason (required, unknown_field, must_be_object, must_be_array, must_be_string or must_be_boolean) and never repeats what was sent. Each value is then checked with the checks of Avatar Admin under Logistics: a link is an http or https address of at most 500 characters; whatsapp is a link or a phone number of at most 500 characters; phone.number holds 7 to 20 digits, with an optional leading plus sign, spaces, brackets, dots and hyphens; support_email.value holds email addresses, stored in lower case without repeats; phone.country, office_hours.hours and preferred_channel_note.value are text of at most 1,000 characters; office_hours.timezone is a name from the IANA time zone database. The first value that fails answers 400 invalid_request with fields naming its path, for example phone.number, and the reason too_long or invalid_format. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 200 with {"result":"success","response":{...}}, where response is the Logistics now held, in the shape of GET /v1/content/logistics. An object whose details are all empty and all switched on clears the Avatar’s Logistics.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order. Then the body is checked, then the Content change is counted, then the Logistics are replaced. Nothing is written when any check fails. A request refused by any check costs nothing against the limit. If MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and changes nothing; retry it.
  • Screening: the Logistics reach every reply the Avatar gives. MaxGood.work screens the text its Owners and Admins write for an Avatar, the Logistics included, with an automated classifier, and its staff review what the screen flags. The screen never refuses, delays or changes this call: the answer is the same whatever the screen finds.
  • Errors: 400 invalid_json, invalid_request; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class content_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.

10.29 GET /v1/members

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer manages members (the Avatar’s Owner, an Avatar Admin or MaxGood.work staff). The key needs the read scope, and it needs a confirmed member-event endpoint (section 9).
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request with an invalid page or page_size costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the optional query page (a whole number from 1, default 1) and page_size (a whole number from 1 to 100, default 50). A value outside those bounds is refused and never lowered.
  • Response: 200 with {"result":"success","response":{"items":[Member],"page":<integer>,"page_size":<integer>,"total":<integer>}}. The list holds the Avatar’s active members, the member who joined last first, with the member’s id as tiebreak; total counts every active member whatever the page. A Member carries id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status (active, license_expired or archived) and archived_at, every key always present and every timestamp an RFC 3339 UTC time. A member who was removed, and a person whose account was erased, is not listed.
  • Errors: 400 invalid_page, invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable; 429 rate_limited and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: GET /v1beta/users, whose user_id is id here and whose license_expiry_date is license_expires_at. The listing omits the profile fields, notes and structured data. GET /v1beta/users carries Deprecation, Sunset and Link headers from the release of the last endpoint that replaces its content and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.30 GET /v1/members/{user_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. The key needs the read scope and, like every Member endpoint, a confirmed member-event endpoint attached to it.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused before the lookup, a malformed user_id included, costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the user_id of a Member in the path, as GET /v1/members returns it: 1 to 64 letters, digits, hyphens and underscores. No body.
  • Response: 200 with {"result":"success","response":<Member>}. A Member holds id, email, name, is_admin, is_coach, is_owner, license_expires_at (a timestamp or null), joined_at, coach_user_id (a string or null), status (active, license_expired or archived) and archived_at (a timestamp or null). A Member’s notes, structured data, Facts, tags and Files have their own endpoints, and the fields a person keeps across Avatars, such as their role, industry and goal, are never returned. A Member whose licence has expired or who is archived is returned with the status that says so.
  • Checks: the checks of GET /v1/avatar run first and in the same order. Then the issuer must manage Members (403 issuer_not_authorized otherwise), and the key must have a confirmed member-event endpoint attached: 403 member_events_endpoint_required, or member_events_unreachable when that endpoint has failed for 24 hours. The user_id check follows, and then the limit is counted.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable; 404 user_not_found; 429 rate_limited (with rate_class reads) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. user_not_found answers an unknown person, a person who is not a Member of the Avatar, a removed Member, an erased person and a user_id that cannot be a Member id alike, so the answer tells nothing about people outside the Avatar. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: GET /v1beta/users/{user_id}: id is user_id, license_expires_at is license_expiry_date, and role, expertise, industry, goal, problem, language, notes and structured_data (with their _withheld and _meta fields) are not returned. The /v1beta route now answers 404 with error_code user_not_found, needs an issuer who manages Members, counts in the reading limit and needs the member-event endpoint.

10.31 POST /v1/members

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar. The key needs the write scope, and the person who issued it must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. A key issued by any other member receives 403 issuer_not_authorized. Setting is_admin or is_coach to true needs a key issued by the Avatar’s Owner or MaxGood.work staff (403 role_change_owner_key_only), and is_coach also needs an Avatar whose plan has the Coach role (403 coach_role_not_enabled). The key’s Avatar must have a confirmed member-event endpoint (403 member_events_endpoint_required or member_events_unreachable).
  • Limit: one member change in the Avatar’s daily limit, counted for /v1/ and /v1beta/ together and shared by all the Avatar’s keys: 1,440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar. A day runs from 00:00 to 24:00 UTC. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body with Content-Type: application/json. email and name are required strings. is_admin and is_coach are optional booleans ("false" is not a boolean). license_expires_at is optional: an RFC 3339 timestamp with a zone, a YYYY-MM-DD date read as UTC, or null. profile is optional: an object of the strings role, expertise, industry, goal, problem and language, used only when the email has no account yet and never returned. notes and structured_data are refused with the reason not_editable. The body is checked strictly: a field that is not listed, a value of the wrong type and an email that is not an address answer 400 invalid_request; fields names each refused field and gives a short reason (required, must_be_string, must_be_boolean, must_be_object, too_long, invalid_format, unknown_field or not_editable) and never repeats what was sent. A value over its save limit answers 400 field_too_long, field_too_large or field_not_object with field and max_length. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 201 with {"result":"success","response":{...}}, where response is the new Member: id, email, name, is_admin, is_coach, is_owner, license_expires_at, joined_at, coach_user_id, status and archived_at. The answer is the same whether or not the email already had an account: it carries the name and email you sent, and never says whether an account existed. The person receives an invitation to the Avatar.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order, then the Avatar’s member-event endpoint is checked. Then the body is checked, then the key’s issuer for the roles asked for, then the save limits, the Avatar’s member limit, an existing membership and the seats; then the member change is counted, then the person is added. A request refused by any check costs nothing against the limit. If MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and adds nobody; retry it.
  • Errors: 400 invalid_json, invalid_request, field_too_long, field_too_large, field_not_object; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, role_change_owner_key_only, coach_role_not_enabled, user_cap_reached; 409 already_member, avatar_full (with needed and open_seats); 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/users, whose answer {user_id, email, name, existing_user, invitation_sent} is the Member here. POST /v1beta/users follows the same member change limit and the same fixes from the release of this endpoint, and ends with the last endpoint that replaces it.

10.32 POST /v1/members/batch

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar. The key needs the write scope, and the person who issued it must be the Avatar’s Owner, an Avatar Admin or MaxGood.work staff. A key issued by any other member receives 403 issuer_not_authorized. Only a key issued by the Avatar’s Owner or by MaxGood.work staff may set is_admin or is_coach on a row.
  • Limit: one count in the Avatar’s daily member-change limit for each row of the list, so a list of 40 rows counts 40. The limit is 1,440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together. A day runs from 00:00 to 24:00 UTC. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body {"users": [...]} with Content-Type: application/json. users is a list of 1 to 100 rows, and each row has the fields of POST /v1/members: email and name (strings, required), and optionally is_admin and is_coach (booleans), license_expires_at (an RFC 3339 timestamp or a YYYY-MM-DD date, or null) and profile (an object with role, expertise, industry, goal, problem and language, all strings, used only when the email has no account yet). A body with any other field, and a value of the wrong type, is refused. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 200 with {"result":"success","response":{"results":[...],"added_count":<integer>}}. results holds one entry for each row, in request order, and is not paged. Each entry has index (the row’s position, from 0), email (the address with spaces removed and letters in lower case, or null when the row has no usable address) and status: added (the entry also has id, the new member’s id), already_member, invalid or failed. An entry with status invalid or failed has an error_code: invalid_email, duplicate_email (the second and later rows of one address), invalid_request (the entry also has fields, naming each refused field and a short reason), avatar_full, user_cap_reached, rate_limited, coach_role_not_enabled, field_too_long, field_too_large, field_not_object, service_unavailable or internal_error. added_count is the number of entries with status added. The answer never says whether an address already had an account.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order. Then the body is checked, then the key’s issuer for every row (403 role_change_owner_key_only or coach_role_not_enabled), then the seats for the whole list (409 avatar_full, with needed and open_seats), then the limit is counted, and then each row is added on its own. A row that is refused does not stop the rows after it. A request refused by any check, including a list that does not fit what is left of the day’s limit, adds nobody and costs nothing against the limit. If MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and adds nobody; retry it.
  • Errors: 400 invalid_json, invalid_request (with fields), invalid_batch; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, role_change_owner_key_only, coach_role_not_enabled; 409 avatar_full; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/users/batch, whose result entries carry user_id and existing_user, and whose added is added_count here. The /v1beta endpoint carries Deprecation, Sunset and Link headers once its last replacement ships, and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.33 PATCH /v1/members/{user_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still in the Avatar, with the write scope and a confirmed member-event endpoint attached (section 3). A change to is_admin or is_coach needs a key issued by the Avatar’s Owner or by MaxGood.work staff.
  • Limit: one change in the Avatar’s member-change limit (section 7), counted once the body, the member and the role rules have passed. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names the member by id. The body is one JSON object with at least one of is_admin (boolean), is_coach (boolean) and license_expires_at (an RFC 3339 timestamp, a YYYY-MM-DD date read as midnight UTC, or null to remove the end date). A value is never converted: "false" and 1 are not booleans. Any other field answers 400 invalid_request with fields naming it and the reason not_editable (the member’s profile, notes and structured_data) or unknown_field.
  • Response: 200 with the member as stored: {"result":"success","response":<Member>}. A request that re-sends the stored values changes nothing and answers 200.
  • Checks: after the key checks, the body (400, 413, 415), then the member (404 user_not_found, also for a person who left or whose account was erased), then the role rules: 403 role_change_owner_key_only for a role change from a key the Owner did not issue, 403 coach_role_not_enabled for is_coach true on an Avatar type with no Coach role. On an Avatar type with the Coach role, making a member an Avatar Admin also makes them an Avatar Coach. The roles and the licence date are written in one step.
  • Errors: 400 invalid_json, invalid_request; 401 the key errors; 403 role_change_owner_key_only, coach_role_not_enabled, member_events_endpoint_required, member_events_unreachable and the key checks; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: the role and licence fields of PUT /v1beta/users/{user_id}: license_expiry_date is license_expires_at, and the two role flags must be JSON booleans. notes and structured_data change through their own endpoints.

10.34 DELETE /v1/members/{user_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer manages members (an Owner or an Admin) and whose Avatar has a confirmed member-event endpoint. The key needs the write scope.
  • Limit: one change in the Avatar’s member-changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s id in the path; no body.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true}}. id is the member’s id. The person’s membership in the Avatar ends: its notes, structured data and licence date are cleared, and adding the person again starts a new membership. The person’s account and memberships in other Avatars stay. The Avatar’s member-event endpoint receives a member.removed event.
  • Who is never removed, and who needs an Owner key: the Avatar’s Owner is never removed, with any key (403 owner_not_removable). An Admin or a Coach is removed only with a key issued by the Avatar’s current Owner or by MaxGood.work staff (403 role_change_owner_key_only). A refusal writes nothing except an entry in the Avatar’s audit log.
  • Errors: the key checks of GET /v1/avatar; 403 owner_not_removable, role_change_owner_key_only, member_events_endpoint_required, member_events_unreachable; 404 user_not_found (the same answer for an unknown person, a person who is not a member of the Avatar and an erased person); 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: DELETE /v1beta/users/{user_id}, which answered {"removed":true,"user_id":"<id>"}. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.35 POST /v1/members/{user_id}/archive

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is an Avatar Owner, an Avatar Admin or MaxGood.work staff, and whose Avatar has its member-event endpoint attached and verified. The key needs the write scope.
  • Limit: one change in the Avatar’s member-change limit: 1440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). The change is counted after every check has passed and just before it is made, so a refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names the member by user_id, the id of a Member. The endpoint takes no body; a body is ignored.
  • Response: 200 with {"result":"success","response":<Member>}. The Member has status archived and archived_at set to the moment of the pause. Archiving pauses the member: notes, structured data, the Coach link, the licence date, User Files and interactions stay as they are, the member cannot chat with the Avatar and holds no seat. The call is idempotent; a member who is already archived answers 200 with the same Member and nothing changes.
  • Errors: 403 issuer_not_authorized (the key’s issuer may not archive members), member_events_endpoint_required and member_events_unreachable (the Avatar’s member-event endpoint), owner_not_archivable, admin_not_archivable and support_avatar_not_archivable (the Owner, an Admin and the members of the MaxGood.work User Support Avatar cannot be archived); 404 user_not_found (no such member in this Avatar, a person of another Avatar included); 409 member_erased (the member’s account has been erased); the key checks, 429 rate_limited, 500 internal_error and 503 service_unavailable of GET /v1/avatar, each in the failure shape of section 3.
  • Replaces: POST /v1beta/users/{user_id}/archive, whose user object is the Member here and whose refusals owner, admin, support_avatar, deleted, not_member and not_admin are owner_not_archivable, admin_not_archivable, support_avatar_not_archivable, member_erased, user_not_found and issuer_not_authorized. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.36 POST /v1/members/{user_id}/unarchive

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is the Avatar Owner, an Avatar Admin or MaxGood.work staff. The key needs the write scope and the Avatar’s member-event endpoint must be confirmed (403 member_events_endpoint_required or member_events_unreachable otherwise).
  • Limit: one change in the Avatar’s member-changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused by a check costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. If the counting service is unavailable, this endpoint runs and is not counted.
  • Request: no body; a body is ignored. {user_id} is the member’s id.
  • Response: 200 with {"result":"success","response":<Member>}, the member without archived_at. Restoring a member who is not archived succeeds and changes nothing.
  • Effect: the member is restored exactly as archiving paused them: notes, structured data, Avatar Coach, licence date, User Files and interactions are as they were. The member chats again and holds a seat again, so an Avatar with no open seat refuses.
  • Errors: the checks of every key endpoint (listed under GET /v1/avatar), then 403 member_events_endpoint_required and member_events_unreachable; 403 owner_not_archivable, admin_not_archivable and support_avatar_not_archivable; 404 user_not_found (a person who is not an active member of the Avatar); 409 member_erased and 409 avatar_full (with needed 1 and open_seats 0); 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/users/{user_id}/unarchive, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.37 PUT /v1/members/{user_id}/coach

  • Who may call it: a key of an Avatar whose plan has the Coach role, with the write scope and a verified member-event endpoint. The key’s issuer must be the Owner, an Admin or MaxGood.work staff; the Owner and staff may assign any Coach to any member who is not the Owner, and an Admin may not assign a Coach to another Admin or name themself as the Coach.
  • Limit: one change in the Avatar’s member-change limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused by any check costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s id in the path and the body {"coach_user_id": "<id>"}, or {"coach_user_id": null} to leave the member without a Coach. The id is at most 128 characters. Any other field is refused.
  • Response: 200 with {"result":"success","response":<Member>}, the member as they are afterwards, also when the member already had that Coach.
  • Checks: the checks every key endpoint makes, then these, and the first that fails answers: the body (400 invalid_json, invalid_request with fields, or coach_user_id_required; 415 unsupported_media_type; 413 payload_too_large); the Avatar’s plan has the Coach role (403 coach_role_not_enabled); the key’s issuer may assign Coaches (403 issuer_not_authorized); the member exists in the Avatar (404 user_not_found); the member is not the Owner (403 owner_has_no_coach); only the Owner’s key assigns a Coach to an Admin or names its own issuer (403 coach_assign_owner_only); the Coach is not the member (400 coach_is_client) and is a Coach of the Avatar (400 not_a_coach). Then the limit is counted.
  • Errors: 400 invalid_json, invalid_request, coach_user_id_required, coach_is_client, not_a_coach; 401 and 403 of the key checks, member_events_endpoint_required, member_events_unreachable, coach_role_not_enabled, issuer_not_authorized, owner_has_no_coach, coach_assign_owner_only; 404 user_not_found; 413; 415; 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: PUT /v1beta/users/{user_id}/coach, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.38 GET /v1/members/{user_id}/tags

  • Who may call it: a key of an Enterprise Avatar whose issuer is an Avatar Owner or an Avatar Admin, and which is attached to its Avatar’s verified member-event endpoint. The key needs the read scope. Member tags are part of Enterprise Avatars; a key of any other Avatar receives 403 user_tags_not_enabled.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused for its page or page_size, its Avatar type or its member costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. user_id in the path is the member’s user id. The query takes page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50). A value outside those bounds is refused, never changed. The endpoint reads the key’s own Avatar and nothing else.
  • Response: 200 with {"result":"success","response":{"items":[<Tag>],"page":<integer>,"page_size":<integer>,"total":<integer>}}. total is the number of tags the member holds across all pages. A page past the last has no items and the same total. A Tag is {"name":"<string>","description":"<string>","source":"<string>","applied_at":"<UTC time to the millisecond>" or null}. A tag is identified by its name within the member, so it has no id. The oldest tag is first, and tags applied at the same moment are listed by name. applied_at is null when no time was recorded.
  • Checks: the key endpoint checks of GET /v1/avatar come first, in the same order. Member tags are managed by the Avatar’s Owner and Admins, so check 5 requires an issuer who is an Avatar Owner or an Avatar Admin. The key’s member-event endpoint check follows (403 member_events_endpoint_required or member_events_unreachable). The endpoint’s own input checks come next, in this order: page and page_size, the Avatar type (403 user_tags_not_enabled) and the member (404 user_not_found, the same answer for a person who does not exist, belongs to another Avatar, left, or whose account was erased). Then its limit is counted.
  • Errors: 400 invalid_page, invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, user_tags_not_enabled; 404 user_not_found; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: each 200 writes one audit row naming the key, the member and the number of tags answered, never a tag.
  • Replaces: GET /v1beta/users/{user_id}/tags, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table. It answered every tag at once in tags, beside the member’s user_id; here the list is paged in items, and applied_at is written to the millisecond.

10.39 POST /v1/members/{user_id}/tags

  • Who may call it: a key of an Enterprise Avatar, whose issuer is the Avatar’s Owner, an Avatar Admin or MaxGood.work staff, with the Avatar’s member-event endpoint attached and confirmed. The key needs the write scope. Member tags are available on Enterprise Avatars only.
  • Limit: one change in the Avatar’s member-changes limit, whatever the number of tags: 1,440 a day for an Enterprise Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names the member by user_id, the id of a Member. The JSON body is {"tags":[{"name":<string>,"description":<string>,"source":<string>}]} with 1 to 50 tags. Each tag has exactly those three fields, all text. The name is not blank and has no control character. The name and the description have none of {, }, [, ], <, >, " or ', and together at most 2,000 characters. The description and the source may be empty. A name that appears twice is applied once, with the last description and source.
  • Response: 200 with {"result":"success","response":{"items":[{"name","description","source","applied_at"}],"page":1,"page_size":<n>,"total":<n>}}. The items are the tags the call applied, one per name, in the order of their first appearance. The call is an upsert by name: a name the member already holds keeps its applied_at and takes the new description and source. The tags are written together or not at all.
  • Checks: after the key checks, the call makes these checks in order, and the first that fails answers: the Avatar’s type offers member tags (403 user_tags_not_enabled); the body is valid (415 unsupported_media_type, 413 payload_too_large, 400 invalid_json or 400 invalid_request); the issuer may tag members (403 issuer_not_authorized); the member belongs to the Avatar (404 user_not_found). The same 404 answers an unknown member, a member of another Avatar, a person who left the Avatar and a person whose account was erased. A request refused by any check costs nothing against a limit.
  • Errors: 400 invalid_json; 400 invalid_request with fields naming each invalid path (for example tags[2].name) and a short reason: required, must_be_string, must_be_array, must_be_object, invalid_format, too_long or unknown_field; a member’s tags in an Avatar together hold at most the characters the Avatar’s type allows, and a call that would pass it answers 400 invalid_request with fields {"tags":"too_long"}; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, user_tags_not_enabled; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Replaces: POST /v1beta/tags and POST /api/enterprise/add_tags_to_user, whose body names the member by user_email and the tags by tags_to_add and whose answer is a message. Both carry Deprecation, Sunset and Link headers and end on the dates in their Sunset headers and in the migration guide’s retirement table.

10.40 DELETE /v1/members/{user_id}/tags?name={name}

  • Who may call it: a key of an Enterprise Avatar whose issuer is an Owner or Admin of the Avatar. The key needs the write scope, and whose Avatar has a confirmed member-event endpoint.
  • Limit: one change in the Avatar’s member changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s id in the path and the tag’s name in the name query parameter, given once and exactly as the tag was added; no body.
  • Response: 200 with {"result":"success","response":{"id":"<tag name>","deleted":true}}.
  • Errors: the key checks of GET /v1/avatar; 400 tag_name_required and tag_name_invalid; 403 issuer_not_authorized, user_tags_not_enabled, member_events_endpoint_required and member_events_unreachable; 404 user_not_found for a person who is unknown, not a member of the Avatar or erased, and tag_not_found for a member who holds no such tag; 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: DELETE /v1beta/users/{user_id}/tags, which answered {"user_id","name","removed"} and 200 with removed false for a tag the member did not hold. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.41 GET /v1/members/{user_id}/files

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, with the read scope, attached to the Avatar’s confirmed member-event endpoint (section 3 gate of member operations). The key reads what the person who issued it reads in the MaxGood.work web app: the Owner and every Avatar Admin read the files of every member, except that on an Avatar with Avatar Coaches an Avatar Admin who is not the member’s Avatar Coach reads the list as metadata.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused for its page or page_size costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. The query takes page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50); a value outside those bounds is refused, never changed. user_id is the member’s id.
  • Response: 200 with {"result":"success","response":{"items":[<File>],"page":<integer>,"page_size":<integer>,"total":<integer>,"access":"content"|"metadata","limits":{"max_bytes":<integer>,"allowed_extensions":["<extension>"]},"chunks_in_prompt":<integer>}}. A File is {"id":"<string>","user_id":"<string>","filename":"<string>"|null,"extension":"<string>"|null,"content_type":"<string>"|null,"size_bytes":<integer>,"chunk_count":<integer>,"uploaded_at":"<UTC time to the second>"}. Only active files appear, newest uploaded_at first, the id ordering files uploaded in the same second. Under metadata access filename and content_type are null. Only extracted text is available through the API; the original file never is. A page past the last has no items and the same total.
  • Checks: the key endpoint checks of GET /v1/avatar come first, in the same order, then the member-event gate. The endpoint’s own input checks follow (page, page_size), then its limit is counted, then the member is looked up: a user who is not an active member of the Avatar, an erased person, and a member whose files the issuer of the key may not see all answer 404 user_not_found.
  • Errors: 400 invalid_page, invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable; 404 user_not_found; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 user_documents_unavailable, service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: each read is recorded in the Avatar’s audit trail with ids, the access and counts, never a file name or text.
  • Replaces: GET /v1beta/users/{user_id}/files, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table. It named the list files and each file’s id file_id, repeated user_id at the top, and answered a paging error as invalid_paging; here the list is items, the id is id, user_id is on each file, and the paging errors are invalid_page and invalid_page_size.

10.42 GET /v1/members/{user_id}/files/{file_id}

  • Who may call it: a key of an Enterprise Avatar or an Essential Avatar with the read scope, attached to the Avatar’s confirmed member-event endpoint. The key acts with the access its issuer has in the MaxGood.work web app: an issuer who may read the member’s files in full gets the file; an issuer who may only list them without their names gets 403 user_files_owner_coach_only; an issuer with no access to the member gets 404 user_not_found.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body and no query. user_id and file_id are ids of 1 to 64 letters, digits, hyphens or underscores; any other value answers as an id that does not exist.
  • Response: 200 with {"result":"success","response":{"id","user_id","filename","extension","content_type","size_bytes","chunk_count","uploaded_at"}}. The original file is never offered and no storage location is returned. The text the Avatar extracted is at GET /v1/members/{user_id}/files/{file_id}/chunks.
  • Errors: the key checks of GET /v1/avatar, 403 member_events_endpoint_required and member_events_unreachable, 403 user_files_owner_coach_only, 404 user_not_found (a person who is not a member of the Avatar, an erased member and a member the key’s issuer may not reach answer alike) and file_not_found (a file that does not exist, belongs to another member or to another Avatar), 429 rate_limited, 500 internal_error, 503 service_unavailable. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: each read is recorded with the key, the member and the file ids and the access level; the record holds no file name and no text.
  • Replaces: GET /v1beta/users/{user_id}/files/{file_id}. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.43 GET /v1/members/{user_id}/files/{file_id}/chunks

  • Who may call it: a key of an Avatar whose type offers the API, whose issuer is still in the Avatar and has full access to the Member’s User Files. The key needs the read scope, and the Avatar needs a member-event endpoint that is attached and answering.
  • Limit: one lookup in the Avatar’s reading limit (section 7), counted once the request has passed every check below. A request that any check refuses costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the Member’s id and the file’s id in the path, and the query page (a whole number of at least 1, default 1) and page_size (a whole number from 1 to 100, default 50). A value given twice, empty, signed, or not a whole number is refused. No body.
  • Response: 200 with {"result":"success","response":{"items":[FileChunk],"page":<n>,"page_size":<n>,"total":<n>}}. items holds the file’s chunks by position, lowest first. Each FileChunk is {"id":"<string>","position":<integer>,"text":"<string>","token_count":<integer>}. total is the number of chunks the file holds. A page past the last holds no items and still reports total. The response does not repeat the file’s details. The original file is never offered.
  • Checks: the key checks of every key endpoint come first, and the first that fails answers; the Avatar’s member-event endpoint is checked after the Owner agreement. The endpoint’s own checks follow, in this order:
  1. page and page_size: 400 invalid_page or invalid_page_size.
  2. The Member: 404 user_not_found when the person is not a Member of the Avatar, has been erased, or is one the key’s issuer may not reach. The three cases answer alike.
  3. The file: 404 file_not_found when the file does not exist, is another Member’s or belongs to another Avatar.
  4. The content: 403 user_files_owner_coach_only when the key’s issuer may list the Member’s files without their names and may not read their content.
  • Errors: 400 invalid_page, invalid_page_size; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, user_files_owner_coach_only; 404 user_not_found, file_not_found; 429 rate_limited (with rate_class reads) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Audit: each read is recorded in the Avatar’s audit log with the key, the Member’s id, the file’s id and the counts, never the text.
  • Replaces: GET /v1beta/users/{user_id}/files/{file_id}/chunks, whose chunk_id is id, whose chunks list is items, and which also returned a file object. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.44 POST /v1/members/{user_id}/files

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer still has full access to the member’s files (the Avatar’s Owner, an Admin, or MaxGood.work staff; on an Avatar with the Avatar Coach role, the Owner and the member’s own Coach). The key needs the write scope and must be attached to the Avatar’s verified member-event endpoint (section 6).
  • Limit: one member change in the Avatar’s daily limit: 1,440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. If the counting service is unavailable the upload is refused with 503 service_unavailable and is not counted.
  • Request: multipart/form-data with exactly one part, file. The extension must be one the Avatar’s file settings allow, the file must not be empty, and it must be within limits.max_bytes as GET /v1/members/{user_id}/files reports it. The size is measured on the body as it arrives. Any other part or field, and a second file part, is refused.
  • Response: 201 with {"result":"success","response":{"id":"<string>","user_id":"<string>","filename":"<string>","extension":"<string>","content_type":"<string>","size_bytes":<integer>,"chunk_count":<integer>,"uploaded_at":"<RFC 3339 UTC time>"}}. The original file is never returned.
  • Checks: the key checks of GET /v1/avatar come first, then the member-event endpoint check. The endpoint’s own checks follow in this order, and the first that fails answers: the member (404 user_not_found, for a person who is not an active member, does not exist, was erased, or whom the key’s issuer may not reach); the issuer’s access (403 user_files_owner_coach_only); the media type (415 unsupported_media_type); the file settings (503 user_documents_unavailable); the size, declared and measured (413 payload_too_large, with max_bytes); the parts (400 missing_file, or 400 invalid_request with fields); the file (400 empty_file, file_type_not_allowed, or 413). The upload is counted only after every check has passed, and a request refused by a check costs nothing against the limit. Then the text is read, divided into sections, embedded and stored (400 no_text_extracted; 503 extraction_failed, embedding_failed, storage_failed).
  • Errors: 400 missing_file, empty_file, file_type_not_allowed, no_text_extracted, invalid_request; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, user_files_owner_coach_only; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 extraction_failed, embedding_failed, storage_failed, user_documents_unavailable (nothing is stored; retry) and service_unavailable. Each is in the failure shape of section 3.
  • Replaces: POST /v1beta/users/{user_id}/files, which answered 201 with the file inside file, named it file_id, answered 413 file_too_large and counted uploads in a rolling hour. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.45 DELETE /v1/members/{user_id}/files/{file_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still in the Avatar and may delete the member’s User Files in the MaxGood.work web app. The key needs the write scope and must be attached to the Avatar’s confirmed member-event endpoint (section 9).
  • Limit: one member change in the Avatar’s daily member-changes limit: 1440 a day for an Enterprise Avatar and 360 a day for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s user_id and the file’s file_id in the path; no query and no body. A user_id or file_id that is empty, longer than 64 characters or holds a space or a control character names nothing and answers as an id that matches nothing.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true,"mode":"hard"|"soft"}}. id is the file’s id. mode is hard when the file was removed and soft when an earlier reply cited one of its chunks: the text is then redacted and a record of the citation stays. The file’s stored original is deleted either way, and the member’s list omits the file.
  • Checks: after the key checks of section 2 and the member-event check, the endpoint checks in this order, and the first that fails answers: the person is an active member the key’s issuer may reach (404 user_not_found, the same answer for a person who does not exist, one of another Avatar and one whose files the issuer may not see); the file is an active file of that member (404 file_not_found, the same answer for a file that does not exist, is already deleted, belongs to another member or to another Avatar); the issuer may delete the member’s files (403 user_files_owner_coach_only for an issuer who may list them without their names only). A request refused by any check costs nothing against a limit; the call is counted once the checks pass.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, user_files_owner_coach_only; 404 user_not_found, file_not_found; 429 rate_limited (with rate_class member_changes, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: every delete and every refusal is recorded in the Avatar’s audit trail with ids only, never a file name or text.
  • Replaces: DELETE /v1beta/users/{user_id}/files/{file_id}, whose answer {"deleted":true,"mode":...} gains the file’s id here. The /v1beta endpoint carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.46 GET /v1/members/{user_id}/facts

  • Who may call it: a key of an Avatar whose type keeps Facts and that has a confirmed member-event endpoint, issued by the Avatar’s Owner, an Avatar Admin or an Avatar Coach who is still in the Avatar. The key needs the read scope. An Owner or Admin reaches every member; an Avatar Coach reaches their current clients only.
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request that a check refuses costs nothing.
  • Request: no body. user_id in the path names the member. The optional query status is active, hidden or all (the default), in lower case. page is a whole number from 1 (the default) and page_size a whole number from 1 to 100 (the default is 50). Any other query parameter is ignored.
  • Response: 200 with {"result":"success","response":{"items":[...],"page":<int>,"page_size":<int>,"total":<int>,"limits":{...}}}. The list holds the Facts the Avatar keeps about that member, in ascending order of their numeric id. total counts every matching Fact, across pages. A page past the last one has an empty items list. Each item carries id (a string of digits), user_id (the member), text, token_count, status (active or hidden), source, created_by_user_id (null where the key’s issuer may not see who wrote the Fact), created_at, updated_at, version_count (null when the Avatar’s type keeps no edit history) and access (edit or view: what the key’s issuer may do with the Fact in the MaxGood.work web app), and nothing else. limits holds per_fact_tokens, total_tokens (the Avatar’s own Facts and its members’ Facts count toward it), active_tokens and history_tracked.
  • Errors: 400 invalid_page, invalid_page_size (a value that is not a whole number in range is refused and never adjusted) and invalid_status; 403 facts_disabled when the Avatar’s type keeps no Facts, and member_events_endpoint_required or member_events_unreachable when the Avatar has no confirmed member-event endpoint; 404 user_not_found for an id that is not an active member, an erased member and a member the key’s issuer may not reach; each in the failure shape of section 3, besides the key checks, 429, 500 and 503 that every key endpoint can answer (see GET /v1/avatar).
  • Replaces: GET /v1beta/facts, which ends on 1 June 2027. The user_id filter is the path, and scope is gone: the Avatar’s own Facts are at GET /v1/content/facts.

10.47 GET /v1/members/{user_id}/facts/{fact_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, on an Avatar whose type keeps Facts. The key needs the read scope and a confirmed member-event endpoint (section 9). The key’s issuer sees the Facts they could see in the MaxGood.work web app: the Avatar’s Owner, an Avatar Admin or MaxGood.work staff see the Facts they may see about any member, and an Avatar Coach sees the Facts about their own clients.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused by any check costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s id and the Fact’s id in the path. The Fact id is a whole number written in digits. No query parameters and no body.
  • Response: 200 with {"result":"success","response":{"id":"<string>","user_id":"<string>","text":"<string>","token_count":<integer>,"status":"active"|"hidden","source":"<string>"|null,"created_by_user_id":"<string>"|null,"created_at":"<time>"|null,"updated_at":"<time>"|null,"version_count":<integer>|null,"access":"edit"|"view"}}. version_count is null when the Avatar’s type keeps no edit history, and created_by_user_id is null where the issuer may not see who wrote the Fact. Every key is always present and every time is an RFC 3339 UTC time.
  • Checks: the checks of every key endpoint, listed under GET /v1/avatar, and the member-event endpoint check run first in the same order. Then, in order: an issuer who holds no role over Facts receives 404 fact_not_found; an Avatar whose type keeps no Facts receives 403 facts_disabled; a member who does not exist, is not an active member of the Avatar, has erased their account, or (for an Avatar Coach) is not the issuer’s client receives 404 user_not_found; an id that is not a Fact id, a Fact that does not exist, a Fact of another Avatar, a Fact about the Avatar itself, a Fact about another member and a Fact the issuer may not see all answer 404 fact_not_found in one body, so the answer never shows whether a Fact exists elsewhere. The read is recorded in the Avatar’s audit trail with the Fact’s id and the member’s id and never its text.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, facts_disabled; 404 user_not_found, fact_not_found; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: GET /v1beta/facts/{fact_id} for a Fact about a member (GET /v1/content/facts/{fact_id} replaces it for a Fact about the Avatar). The response has no scope (the path says which kind of Fact it is), id is a string and user_id names the member. GET /v1beta/facts/{fact_id} carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.48 POST /v1/members/{user_id}/facts

  • Who may call it: a key of an Avatar whose type keeps Facts and that has a confirmed member-event endpoint, issued by the Avatar’s Owner, an Avatar Admin or an Avatar Coach who is still in the Avatar. The key needs the write scope. An Owner or Admin adds a Fact about any active member; an Avatar Coach adds a Fact only about a current client. A Fact the key adds is recorded as added by its issuer, who can edit it in the MaxGood.work web app under the same rules.
  • Limit: one change in the Avatar’s member-change limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused by any check costs nothing against the limit. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: user_id in the path names the member. A JSON body, sent as application/json, holding text (string, required) and nothing else. text is trimmed, then must hold at least one character, at most 2,000 characters and at most the largest Fact the Avatar type allows, counted in tokens.
  • Response: 201 with {"result":"success","response":{"id":"<string>","user_id":"<string>","text":"<string>","token_count":<integer>,"status":"active","source":"<string>","created_by_user_id":"<string>","created_at":"<timestamp>","updated_at":"<timestamp>","version_count":<integer or null>,"access":"edit"}}. A new Fact is active and reaches the Avatar’s replies to that member. version_count is 0 on an Avatar type that keeps the edit history of Facts and null on one that does not.
  • Budget: the Avatar type limits the total of the Avatar’s active Facts, the Avatar’s own Facts and its members’ Facts together, counted in tokens. The check and the add happen while no other Fact of the Avatar is being added, changed or switched on, so two requests sent together cannot pass the total between them. A Fact that would pass it is refused with 409 fact_budget_exceeded and is not stored.
  • Errors: 400 invalid_json, invalid_request (with fields naming the field and the reason), fact_text_required, and fact_too_long (with max_characters, or token_count and max_tokens); 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, facts_disabled and fact_clients_only (an Avatar Coach’s key and a person who is not a current client of that Coach, whether or not the person is in the Avatar); 404 user_not_found (an id that is not an active member of the Avatar, or an erased member); 409 fact_budget_exceeded (with active_tokens, max_tokens and token_count); 413 payload_too_large (with max_bytes); 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: the member use of POST /v1beta/facts, a request with a user_id. A Fact about the Avatar itself is added with POST /v1/content/facts. POST /v1beta/facts carries Deprecation, Sunset and Link headers and ends on 1 June 2027.

10.49 PATCH /v1/members/{user_id}/facts/{fact_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose type keeps Facts, attached to a confirmed member-event endpoint (section 8), issued by the Avatar’s Owner, an Avatar Admin, an Avatar Coach (for the Facts about their own clients) or MaxGood.work staff. The key needs the write scope.
  • Limit: one change in the Avatar’s daily limit for member changes, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A request refused before the change is made costs nothing.
  • Request: the path names the member and the Fact. The body is a JSON object with status (active or hidden, any letter case), text (a non-empty string of at most 2000 characters, within the Avatar’s limit of tokens for one Fact) or both. Any other field is refused.
  • Response: 200 with {"result":"success","response":<MemberFact>}, the Fact as it stands after the change. The change is one step: the new text, the new status and the saved earlier version of the text (on an Avatar type that keeps a Fact history) are written together or not at all. A change that is refused leaves the Fact as it was.
  • Total limit: the Avatar’s active Facts have a total limit of tokens, shared by Facts of the Avatar and Facts about members. It is checked against the Fact as it will stand after the change. A Fact that stays hidden never counts against it, and a change that would take the active Facts past it answers 409 fact_budget_exceeded with active_tokens and max_tokens.
  • Errors: 400 invalid_json, invalid_request (with fields), invalid_status, fact_text_required, fact_too_long (with max_characters, or token_count and max_tokens); 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, agreement_required, member_events_endpoint_required, member_events_unreachable, facts_disabled, fact_view_only (the issuer may read this Fact and not change it, for example an Admin and a Fact an Avatar Coach added), fact_clients_only (an Avatar Coach and a Fact about a member who is not their client); 404 user_not_found (a member the Avatar does not have), fact_not_found (a Fact that does not exist, a Fact of another Avatar, a Fact of the whole Avatar, a Fact about another member, a Fact the issuer may not see and an id that is not a whole number); 409 fact_budget_exceeded; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable, each in the failure shape of section 3.
  • Replaces: PATCH /v1beta/facts/{fact_id} for a Fact about a member. The /v1beta endpoint takes the same strict body and the same single-step change from the release that shipped PATCH /v1/content/facts/{fact_id}; from this release it counts a member’s Fact in the daily limit for member changes and needs a confirmed member-event endpoint for it.

10.50 DELETE /v1/members/{user_id}/facts/{fact_id}

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, with the write scope, whose issuer may change the Fact: the Avatar’s Owner, an Avatar Admin, MaxGood.work staff acting for the Avatar, or an Avatar Coach for a Fact about one of their own clients that the Coach added. The Avatar’s type must offer Facts, and the Avatar needs a confirmed member-event endpoint.
  • Limit: one change in the Avatar’s member-changes limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). The change is counted once every other check has passed, and a refused request costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. user_id is the member’s id, fact_id the Fact’s id in plain digits.
  • Response: 200 with {"result":"success","response":{"id":"<string>","deleted":true}}. The Fact and its edit history are deleted for good. To keep a Fact and stop the Avatar using it, hide it with PATCH /v1/members/{user_id}/facts/{fact_id}.
  • Which Facts: this endpoint reaches the Facts the Avatar keeps about the member named in the path. An Avatar-wide Fact, a Fact about another member, a Fact of another Avatar and an id that names nothing all answer 404 fact_not_found, so the answer discloses nothing about them. An unknown person, a person who is not a member of the Avatar and an erased person all answer 404 user_not_found.
  • Errors: the key checks of section 6; 403 issuer_not_authorized, facts_disabled, fact_view_only, member_events_endpoint_required, member_events_unreachable; 404 user_not_found, fact_not_found; 429 rate_limited (with rate_class member_changes, retry_after_seconds, limit and window_seconds); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: DELETE /v1beta/facts/{fact_id}, which answered {"deleted":true,"fact_id":<number>}. It carries Deprecation, Sunset and Link headers and retires on the date in its Sunset header.

10.51 GET /v1/members/{user_id}/facts/{fact_id}/history

  • Who may call it: a key of an Enterprise Avatar whose issuer may view the Facts about the member: the Avatar’s Owner, an Avatar Admin, MaxGood.work staff acting as Owner, or a Coach for a current client. The key needs the read scope and must be attached to a confirmed member-event endpoint that answers (section 6). An Avatar of any other type receives 403 fact_history_not_enabled.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names a member and one Fact about that member. The optional query page (a whole number from 1, default 1) and page_size (a whole number from 1 to 100, default 50) select a page.
  • Response: 200 with {"result":"success","response":{"fact_id":"<string>","items":[FactVersion],"page":<integer>,"page_size":<integer>,"total":<integer>}}. The versions run from the newest edit to the oldest, by edited_at and then id, both descending, and have the shape of GET /v1/content/facts/{fact_id}/history. total counts every version the Fact has.
  • Checks: after the key checks, the request is checked in this order and the first that fails answers: 400 invalid_page or invalid_page_size; 404 fact_not_found when the issuer holds no role that sees Facts; 403 facts_disabled when the Avatar’s type has no Facts; 404 user_not_found when the path names no active member of the Avatar; 404 fact_not_found when the Fact does not exist, belongs to another Avatar, is one of the Avatar’s own Facts, is about another member, or may not be viewed by the issuer (one answer for all five); 403 fact_history_not_enabled when the Avatar’s type keeps no edit history. A request refused by any check costs nothing against a limit.
  • Errors: 400 invalid_page, invalid_page_size; 403 facts_disabled, fact_history_not_enabled, member_events_endpoint_required, member_events_unreachable and the key refusals of GET /v1/avatar; 404 fact_not_found, user_not_found; 429 rate_limited; 500 internal_error; 503 service_unavailable, each in the failure shape of section 3.
  • Audit: each read is recorded in the Avatar’s audit trail with the key, the Fact’s id, the member’s id, the number of versions returned and the request id, and never the text of a Fact.
  • Replaces: GET /v1beta/facts/{fact_id}/history, which answered all versions in a list named versions and served both kinds of Fact. The /v1beta endpoint keeps its answer and ends on the date its Sunset header carries.

10.52 GET /v1/members/{user_id}/notes

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still in the Avatar, with the read scope and a member-event endpoint attached and confirmed.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys (section 7).
  • Request: the member’s id in the path; no body and no query.
  • Response: 200 with {"result":"success","response":{"user_id":"<string>","notes":"<string or null>","withheld":<boolean>,"meta":{"chars":<integer>,"updated_at":"<timestamp or null>","updated_by_role":"<string or null>"}}}. meta.chars is the number of characters stored (0 when there are none), updated_at when the notes were last written and updated_by_role the role that wrote them (owner, admin, coach, staff, api or system).
  • Who reads the notes: on an Avatar type without the Avatar Coach role, a key issued by the Owner, an Avatar Admin or MaxGood.work staff; on an Avatar type with the role, only a key issued by the Owner or by MaxGood.work staff. Any other key receives 200 with withheld true, notes null and meta.
  • Not a Member field: the notes are in no Member, and no other endpoint returns them.
  • Errors: the checks of GET /v1/avatar in the same order, then 403 member_events_endpoint_required or member_events_unreachable; 404 user_not_found for a person who is not an active member of the Avatar, whether or not the person exists; 429 rate_limited (with rate_class reads); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Audit: each call is recorded against the key with the member’s id and the number of characters read, never the text.

10.53 PUT /v1/members/{user_id}/notes

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, with the write scope, on an Avatar that has a confirmed member-event endpoint attached to the key. On an Avatar whose type has no Avatar Coach role, the person who issued the key must be MaxGood.work staff, the Avatar’s Owner or an Avatar Admin. On an Avatar whose type has the Avatar Coach role, the issuer must be MaxGood.work staff or the Owner. Any other key receives 403 notes_owner_key_only, also when it sends the text already stored.
  • Limit: one member change in the Avatar’s daily limit, counted for /v1/ and /v1beta/ together and shared by all the Avatar’s keys. A day runs from 00:00 to 24:00 UTC. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names the member by user_id. The body is a JSON object with Content-Type: application/json and one field, notes, a text of at most 2,500 characters or null. null and an empty text clear the notes. The text may hold line breaks and tabs and no other control character. The body is checked strictly: a missing notes, a field that is not listed and a value that is not a text or null answer 400 invalid_request, and fields names each refused field with a short reason (required, must_be_string, invalid_format or unknown_field) and never repeats what was sent. A text over the limit answers 400 field_too_long, with field and max_length, and nothing is truncated. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 200 with {"result":"success","response":{...}}, where response is the notes as stored: user_id, notes (the text, or null when there are none), withheld (false) and meta with chars (the number of characters), updated_at (an RFC 3339 timestamp, or null) and updated_by_role (api for a write through a key, or null). Sending the text already stored answers 200 and changes nothing.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order, then the member-event endpoint check (403 member_events_endpoint_required or member_events_unreachable). Then the body is checked, then the member (404 user_not_found for an id that is not a member of the Avatar), then the issuer’s right to write notes, then the size limit (503 service_unavailable when MaxGood.work cannot read it), then the member change is counted, then the notes are stored. A request refused by any check costs nothing against the limit. If MaxGood.work cannot read the limit’s counter, the call is made and is not counted.
  • Errors: 400 invalid_json, invalid_request, field_too_long; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, notes_owner_key_only; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Audit: each write is recorded in the Avatar’s audit trail with the key, the member and the size of the text, never the text.
  • Replaces: the notes field of PUT /v1beta/users/{user_id}, which keeps accepting it until its Sunset date. A member read at /v1/members never returns notes.

10.54 GET /v1/members/{user_id}/structured-data

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar whose issuer is still a member of the Avatar. The key needs the read scope and, like every Member endpoint, a confirmed member-event endpoint attached to it. A key issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff reads the value; a key issued by any other member reads its size only.
  • Limit: one lookup in the Avatar’s reading limit, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused before the lookup, a malformed user_id included, costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the user_id of a Member in the path, as GET /v1/members returns it: 1 to 64 letters, digits, hyphens and underscores. No body.
  • Response: 200 with {"result":"success","response":<MemberStructuredData>}. A MemberStructuredData holds user_id, structured_data (a JSON object, or null when there is none or when withheld is true), withheld (true when the key may not read the value) and meta, {"chars":<integer>}: the characters of the stored value written as compact JSON, 0 when there is none. meta is present whether or not the value is withheld. An archived Member and a Member whose licence has expired are shown.
  • Checks: the checks of GET /v1/avatar run first and in the same order. Then the issuer must still be a member of the Avatar (403 issuer_not_authorized otherwise), and the key must have a confirmed member-event endpoint attached: 403 member_events_endpoint_required, or member_events_unreachable when that endpoint has failed for 24 hours. The user_id check follows, and then the limit is counted.
  • Errors: 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable; 404 user_not_found; 429 rate_limited (with rate_class reads) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. user_not_found answers an unknown person, a person who is not a Member of the Avatar, a removed Member, an erased person and a user_id that cannot be a Member id alike. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: each read of a Member is recorded in the Avatar’s audit log with the Member’s id; the value and its size are never recorded.
  • Replaces: the structured_data, structured_data_withheld and structured_data_meta fields of GET /v1beta/users and GET /v1beta/users/{user_id}. Those two /v1beta endpoints carry Deprecation, Sunset and Link headers and end on the dates in their Sunset headers and in the migration guide’s retirement table.

10.55 PUT /v1/members/{user_id}/structured-data

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar, whose issuer is still in the Avatar, with the write scope and a confirmed member-event endpoint attached (section 3). Only a key issued by the Avatar’s Owner, an Avatar Admin or MaxGood.work staff writes structured data; any other key answers 403 user_data_admin_key_only, also when it sends the value already stored.
  • Limit: one change in the Avatar’s member-change limit (section 7), counted once the body, the member, the key’s right to write and the size limit have passed. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the path names the member by id. The body is exactly {"structured_data": <object or null>}. The object replaces the stored value as a whole; null removes it. Any other field answers 400 invalid_request with fields naming it (unknown_field); a missing structured_data is required, and a value that is not an object or null is must_be_object. A request body may hold up to max_bytes bytes (2,097,152).
  • Response: 200 with the value as stored: {"result":"success","response":<MemberStructuredData>}, where user_id is the member, structured_data the object or null, withheld is false and meta.chars holds the characters of the value as compact JSON.
  • Checks: after the key checks, the body (400, 413, 415), then the member (404 user_not_found, also for a person who left or whose account was erased), then the key’s right to write (403 user_data_admin_key_only), then the size limit: 400 field_too_large (with field and max_length, 262,144 characters of compact JSON) or field_not_object, 503 service_unavailable when the limit cannot be read. A value is never shortened. A value already stored over the limit may be replaced by a smaller one.
  • Errors: 400 invalid_json, invalid_request, field_too_large, field_not_object; 401 the key errors; 403 user_data_admin_key_only, member_events_endpoint_required, member_events_unreachable and the key checks; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class member_changes); 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Replaces: the structured_data field of PUT /v1beta/users/{user_id}. POST /v1beta/users, POST /v1beta/users/batch and PUT /v1beta/users/{user_id} carry Deprecation and Sunset from the release that ships this operation.

10.56 GET /v1/interactions

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar with the read scope, attached to a confirmed member-event endpoint, whose issuer reads interactions in the MaxGood.work web app: the Avatar Owner, an Avatar Admin, an Avatar Coach with a valid subscription, or MaxGood.work staff (who read as the Owner).
  • Limit: one lookup in the Avatar’s reading limit: 15 a minute for an Enterprise Avatar and 6 a minute for an Essential Avatar, shared by all the Avatar’s keys and counted for /v1/ and /v1beta/ together (section 7). A request refused for its page, page_size or since costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: no body. The query takes page (a whole number of at least 1, default 1), page_size (a whole number from 1 to 100, default 50) and since (an RFC 3339 timestamp or a date YYYY-MM-DD, midnight UTC; a timestamp without an offset is UTC; the interactions stored at or after it). A value outside those bounds, or given twice, is refused, never changed. The endpoint reads the key’s own Avatar and nothing else.
  • Response: 200 with {"result":"success","response":{"items":[<Interaction>],"page":<integer>,"page_size":<integer>,"total":<integer>,"access":"content","scope":"all"|"own_and_clients"|"clients"}}. total is the number of interactions the key may read across all pages; a page past the last has no items and the same total. The newest interaction is first, and the id orders interactions stored at the same moment, the greater first. An Interaction is {"id":"<string>","avatar_id":"<string>","user_id":"<string>"|null,"created_at":"<UTC time to the millisecond>","access":"content"|"metadata","reference_chunk_ids":["<string>"],"user_text":"<string>","reply":"<string>"}; user_text and reply are present only when access is content. An interaction the retention rules blanked, such as one of a member who has stopped, has access metadata, a null user_id and no text. scope is all for the Avatar Owner, MaxGood.work staff, and an Avatar Admin on an Avatar type without the Avatar Coach role (who does not read the interactions of the Owner and the other Admins), own_and_clients for an Avatar Admin on an Avatar type with the Avatar Coach role, and clients for an Avatar Coach.
  • Checks: the key endpoint checks of GET /v1/avatar come first, in the same order, with the member-event endpoint check after the Owner agreement check. The endpoint’s own input checks follow, and then its limit is counted. Last, the issuer must read interactions: an issuer who left the Avatar, or who holds no Owner, Admin or Coach role, receives 403 issuer_not_authorized.
  • Errors: 400 invalid_page, invalid_page_size, invalid_since; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable; 429 rate_limited (with rate_class reads, retry_after_seconds, limit and window_seconds) and auth_throttled; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3. If the counting service is unavailable, this endpoint runs and is not counted.
  • Audit: each read is recorded in the Avatar’s audit log with the number of interactions answered, never their text.
  • Replaces: GET /v1beta/interactions, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table. Here the Avatar is avatar_id (org_id there), the cited Content is reference_chunk_ids (references there), the list is items (interactions there), and an issuer who reads nothing receives 403 issuer_not_authorized (404 there).

10.57 GET /v1/members/{user_id}/interactions

  • Who may call it: a key of an Avatar whose type offers the API, whose issuer is still in the Avatar and reads the member’s interactions in the MaxGood.work web app. The key needs the read scope and a confirmed member-event endpoint.
  • Limit: one lookup in the Avatar’s reading limit, counted once the query is valid and shared by all the Avatar’s keys, on /v1/ and /v1beta/ together. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: the member’s id in the path, and the query page (from 1, default 1), page_size (1 to 100, default 50) and since (an RFC 3339 timestamp, or a date as YYYY-MM-DD for midnight UTC; a timestamp with no offset is UTC). Interactions stored at or after since are kept. No body.
  • Response: 200 with {"result":"success","response":{"items":[<Interaction>],"page":<int>,"page_size":<int>,"total":<int>,"access":"content"|"metadata","summary":<object>|null}}, newest interaction first. At content access each item carries user_text and reply and summary is null. At metadata access items is empty, total is 0 and summary holds user_id, avatar_id, interaction_count, characters, tokens, last_interaction_at, cited_chunks_total, cited_titles, unattributed_chunks, user_file_chunks, other_chunks, hidden_title_chunks and titles_hidden: counts and sizes and no words. A former member’s interactions that the Avatar’s retention rules keep as metadata only have access metadata, user_id null and no text.
  • Errors: 400 invalid_page, invalid_page_size, invalid_since; 404 user_not_found for a person who is not a member, an erased account or a member whose interactions the issuer may not read, all with the same answer; 403 member_events_endpoint_required, member_events_unreachable; the key errors of GET /v1/avatar; 429 rate_limited; 500 internal_error; 503 service_unavailable. Each is in the failure shape of section 3.
  • Audit: every read is recorded in the Avatar’s audit trail with the ids of the interactions it returned and never their text.
  • Replaces: GET /v1beta/users/{user_id}/interactions, which carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

10.58 POST /v1/avatar/respond

  • Who may call it: a key of an Essential Avatar or an Enterprise Avatar that holds the chat scope and is attached to a confirmed member-event endpoint. On an Enterprise Avatar the person who issued the key must be allowed to see the member’s interactions: the Avatar’s Owner, the member’s Avatar Coach or MaxGood.work staff. Any other key receives 403 interaction_access_required.
  • Limit: one Avatar reply in the Avatar’s hourly limit, counted for /v1/ and /v1beta/ together and shared by all the Avatar’s keys: 30 an hour for an Enterprise Avatar and 6 for an Essential Avatar. An hour runs from the top of the hour to the next, UTC. Only a turn that reaches the model is counted. A request refused by any check, including the three stored refusals below, costs nothing. Every response that counted carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
  • Request: a JSON body with Content-Type: application/json and two fields, both strings: user_id, the id of a member of the Avatar, and prompt, the member’s message. The prompt is not empty once spaces at its ends are removed, holds at most 10,000 characters and at most 4,096 tokens, and may hold new lines. The body is checked strictly. A field that is not listed, a value of the wrong type and a missing or blank value answer 400 invalid_request with fields; a longer prompt answers 400 prompt_too_long with max_characters or max_tokens. A body larger than 65,536 bytes receives 413, and another content type receives 415.
  • Response: 200 with {"result":"success","response":{"reply":"<string>","interaction_id":"<string>","reference_urls":["<string>"]}}. reply is the Avatar’s text with Foundation attribution rendered as Markdown; show it as it is. When the Avatar displays its references, reply ends with a [References]: <url>, <url> line and reference_urls is []; otherwise reference_urls lists the links. interaction_id is the id of the stored interaction, for reference only.
  • Checks: the key checks listed under GET /v1/avatar come first and in the same order, then the member-event endpoint check. Then the body is checked, then the prompt’s length, then the member:
  1. A person who is not a member of the Avatar, was removed or was erased: 404 user_not_found. All three answer alike.
  2. The key’s issuer may not see the member’s interactions: 403 interaction_access_required. Nothing is stored.
  3. The member has not accepted the Avatar’s terms and conditions or agreement: 403 agreement_required with agreement_party member and agreement_url. Nothing is stored. No key can accept for a member; send the member to agreement_url.
  4. The member’s membership is archived, its licence has expired or the account is suspended: 403 member_archived, member_license_expired or member_suspended. These store the turn and generate nothing. response is the refusal text the member would have read and interaction_id names the stored turn.

Then the reply is counted and generated. A request refused by any check costs nothing. If MaxGood.work cannot read the limit’s counter, the call answers 503 service_unavailable with Retry-After and generates nothing; retry it.

  • Errors: 400 invalid_json, invalid_request, prompt_too_long; 401 api_key_missing, api_key_invalid, api_key_revoked; 403 key_frozen, api_not_available, insufficient_scope, issuer_not_authorized, agreement_required, member_events_endpoint_required, member_events_unreachable, interaction_access_required, member_archived, member_license_expired, member_suspended; 404 user_not_found; 413 payload_too_large; 415 unsupported_media_type; 429 rate_limited (with rate_class replies) and auth_throttled; 500 internal_error; 502 avatar_no_response; 503 service_unavailable. Each is in the failure shape of section 3, except that the three stored refusals carry the refusal text in response and add interaction_id.
  • Replaces: POST /v1beta/avatar/respond, whose body field mg_user_id is user_id here and whose answer {"response":{"response","interaction_id","partner_content_ids"}} is {"reply","interaction_id","reference_urls"} here. A member who is archived, licence-expired or suspended received a 200 carrying the refusal text there and receives a 403 here. It carries Deprecation, Sunset and Link headers and ends on the date in its Sunset header and in the migration guide’s retirement table.

Questions? Post in the api-support channel of the MaxGood.work Global User Community on Discord. Security reports go privately to security@maxgood.work.