Skip to the page

Retrieve chat

One kept chat with everything that was said in it.

View as
GET/v1/ask/chats/{id}
Needs the scopeworkspace:read
Signed-in person only

This method answers a person who is signed in to the dashboard. A request with an API key is refused with 403, so it cannot be tried from this page.

Path parameters

  • idstringRequired

    The id of the item. Up to 64 characters.

Returns

  • object"chat"

    Always chat.

  • idstring

    The id of the chat.

  • titlestring

    The first question, shortened.

  • updatedAtstring

    When the chat was last saved.

  • createdAtstring

    When the chat was started.

  • entriesobject[]

    The whole conversation, oldest first.

  • entries[].idstring

    An id for the entry, unique in the chat. Up to 64 characters.

  • entries[].rolestring

    Who said it: user or assistant.

    One ofuserassistant

  • entries[].textstringOptional

    What was said. Up to 4,000 characters.

  • entries[].stepsobject[]Optional

    The methods that were run for this answer. Up to 20 items.

  • entries[].steps[].callstring

    The method that was run. Up to 80 characters.

  • entries[].steps[].titlestring

    The method in a few words. Up to 500 characters.

  • entries[].steps[].okboolean

    Whether it worked.

  • entries[].changeobjectOptional

    The change that was proposed with this answer.

  • entries[].change.callstring

    The method the assistant proposed. Up to 80 characters.

  • entries[].change.titlestring

    The method in a few words. Up to 500 characters.

  • entries[].change.descriptionstring

    What running it does. Up to 4,000 characters.

  • entries[].change.effectstring

    What it does to your data: write, send or destroy.

    One ofreadwritesenddestroy

  • entries[].change.inputRecord<string, unknown>

    The input it is run with.

  • entries[].change.statestring

    Where the proposal stands: waiting, busy, done, dismissed or failed.

    One ofwaitingbusydonedismissedfailed

  • entries[].change.faultstringOptional

    Why it failed, when it did. Up to 500 characters.

  • entries[].faultstringOptional

    Why the answer failed, when it did. Up to 500 characters.

  • entries[].offbooleanOptional

    Whether the assistant was not connected when this was asked.