Download OpenAPI specification:Download
This API supports all of the functionalities that power Kallo. For additional documentation, see https://kallo.dev
Create an access token for a user over which the requesting account has the appropriate authority.
userId required | string <uuid> The ID of the user for which the access token should be generated |
required | Array of objects (scopeObject) All of the objects for which the access token should include authorization |
allowOrigin | string When CORS is relevant, this value will be used to determine which origin is permitted for requests sent to a Kallo API using the generated access token. Providing a value is not required, but if not provided, responses from the Kallo API to requests using the generated access token JWT will entirely omit the To permit any origin, you may provide |
expiresAt required | string <date-time> |
{- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "scopeObjects": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "convo",
- "role": "participant"
}
], - "expiresAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "jwt": "string"
}
Manually invalidate a previously created access token, even if it has not reached its originally configured expiration time. The requester must be the same as the creator of the access token.
accessTokenId | any The ID of the access token to be revoked |
objectType required | string (objectType) Enum: "convo" "data_source" "prompt" "team" "topic" "user" Not all types are supported for all operations |
objectId required | string <uuid> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "convo",
- "role": "admin"
}
Add a grantees, defined in the request body, that should be given access to the object defined in the request params.
For a data source object type where the grantee type is "convo" or "topic", use the dedicated the "Add Convo Data Source" or "Add Topic Data Source" endpoint.
For a prompt object type where the grantee type is "topic", use the dedicated the "Add Topic Prompt" endpoint.
Grantees with "owner" roles can only be added/removed using the PUT method endpoint.
objectType required | string Enum: "convo" "data_source" "prompt" "team" "topic" "user" Not all types are supported for all operations |
objectId required | string <uuid> |
inviteEmail | string <email> If set to an email address, then this request will result in sending an invitation by email. This is designed for invitees who are not yet Kallo users. Accordingly, the request body grantee object should omit an ID since the user ID doesn't exist yet. |
id | string <uuid> The UUID of the object granted some role as to another object |
type | string (granteeType) Enum: "convo" "team" "topic" "user" Not all types are supported for all operations |
role | string (granteeRole) Enum: "admin" "dependent" "member" "owner" "participant" "viewer" Not all roles are supported for all operations |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "convo",
- "role": "admin"
}
Fully replace the set of grantees for the object defined in the request params. This will fully remove all direct grantees and add the grantees in the request body. The main use case for this endpoint is to change an owner. NOTE: This operation is currently only supported when the request includes exactly one owner-role grantee.
objectType required | string (objectType) Enum: "convo" "data_source" "prompt" "team" "topic" "user" Not all types are supported for all operations |
objectId required | string <uuid> |
id | string <uuid> The UUID of the object granted some role as to another object |
type | string (granteeType) Enum: "convo" "team" "topic" "user" Not all types are supported for all operations |
role | string (granteeRole) Enum: "admin" "dependent" "member" "owner" "participant" "viewer" Not all roles are supported for all operations |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "convo",
- "role": "admin"
}
]
Specify one or more grantees in the request body that should be un-granted the object defined in the request params. NOTE: grantees with owner roles can only be removed using the PUT method endpoint.
objectType required | string (objectType) Enum: "convo" "data_source" "prompt" "team" "topic" "user" Not all types are supported for all operations |
objectId required | string <uuid> |
granteeId required | string <uuid> The grantee's ID |
granteeType required | string (granteeType) Enum: "convo" "team" "topic" "user" The grantee's type |
granteeRole required | string (granteeRole) Enum: "admin" "dependent" "member" "owner" "participant" "viewer" The grantee's role to remove |
Query which of a set of supplied permissions a user has in relation to an object
userId | string <uuid> |
objectId | string <uuid> |
objectType | string (objectType) Enum: "convo" "data_source" "prompt" "team" "topic" "user" Not all types are supported for all operations |
permissions | Array of strings Items Enum: "can_add_admin" "can_add_data_source" "can_add_member" "can_add_owner" "can_add_participant" "can_add_viewer" "can_chat" "can_delete" "can_delete_steps" "can_edit" "can_remove_admin" "can_remove_data_source" "can_remove_member" "can_remove_owner" "can_remove_participant" "can_remove_viewer" "can_view" "can_add_dependent" "can_add_prompt" "can_remove_dependent" "can_remove_prompt" |
{- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "objectId": "e39ea5f2-2188-47f8-add0-f1976630af5e",
- "objectType": "convo",
- "permissions": [
- "can_add_admin"
]
}
{- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "objectId": "e39ea5f2-2188-47f8-add0-f1976630af5e",
- "objectType": "convo",
- "permissions": [
- {
- "permission": "can_add_admin",
- "allowed": true
}
]
}
topicId | string <uuid> The ID of the topic whose convos should be returned |
userId | string <uuid> The ID of the user whose convos (either created or participated in by the user) should be returned |
includeLatestStep | any Example: includeLatestStep=1 If set to any non-empty value, an additional property, |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "latestStep": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
}
]
topicId | string <uuid> If included, this becomes the owning topic of the convo |
teamId | string <uuid> If included, this becomes the owning team of the convo |
userId | string <uuid> If included, this becomes the owning user of the convo |
id | string <uuid> |
name | string |
createdAt | string <date-time> |
createdBy | string <uuid> |
object (step) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "latestStep": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "latestStep": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
}
convoId | string <uuid> The ID of the relevant convo |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "latestStep": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
}
Obtain topic-level config, if the convo belongs to a topic, that impact the convo's functionality
convoId | string <uuid> The ID of the relevant convo |
{- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
convoId | string <uuid> The ID of the relevant convo |
after | string <date-time> If defined, steps will only be returned if they were created after this time |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
]
convoId | string <uuid> The ID of the relevant convo |
contributors | any If set to any non-empty value, the response will include IDs of all users who have sent at least one message in the convo chat |
all | any If set to any non-empty value, the response will include IDs of all users who are:\ 1. direct grantees of the convo 2. members of the team who owns the convo 3. direct grantees of the topic that owns the convo, AND 4. members of the team that owns the topic that owns the convo. |
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
Create and execute an export of data, such as sending convo content by email
id | string or null <uuid> |
format | string (exportFormat) Value: "html-email" |
object (exportSources) | |
Array of objects (exportDestination) | |
createdAt | string or null <date-time> |
createdBy | string or null <uuid> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "format": "html-email",
- "sources": {
- "type": "step",
- "ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "destinations": [
- {
- "address": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e"
}
searchTerm | string If defined, all other params are ignored |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "isAlternate": true,
- "shouldDeferResponse": true,
- "convoId": "ce76207c-af32-41c0-aa93-80b97e1f2c9f",
- "inferenceId": "b5e4b117-5f05-48de-98cd-3848592d29cf",
- "config": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "text": "string",
- "files": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "providerFileId": "string"
}
], - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdByProvider": true,
- "errorAt": "2019-08-24T14:15:22Z",
- "partialOrder": 0
}
]
isAlternate | boolean This is for changing primary/alternate steps when a step group is involved. Setting this to true in a patch operation will result in an error. Setting this to false will cause the API to set all other steps' isAlternate values in the respective group to true and the step identified in the patch operation to false. |
{- "isAlternate": true
}
dataSourceIds | string <uuid> The comma-separated IDs of the data sources that should be returned |
convoId | string <uuid> The ID of the convo whose data sources should be returned |
topicId | string <uuid> The ID of the topic whose data sources should be returned |
userId | string <uuid> The ID of the user who was the actual uploader of the data sources that should be returned |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
]
dataSourceId required | string <uuid> The ID of the data source (e.g. a file upload) to get |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
dataSourceId required | string <uuid> The ID of the data source (e.g. a file upload) to delete |
name | string |
{- "name": "string"
}
Upload a single file, which becomes a data source object with type "upload"
userId | string <uuid> Either this or teamId must be defined. If defined, this user will become the owner of the upload |
teamId | string <uuid> Either this or userId must be defined. If defined, this team will become the owner of the upload |
file required | string <binary> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
Generate a summary for a given data source whose type is "upload". If one already existed, it may be returned instead of a newly generated one.
{- "content": {
- "text": "string",
- "files": "string"
}, - "annotations": [
- {
- "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",
- "refMark": "string",
- "quote": "string"
}
], - "retryAfter": "2019-08-24T14:15:22Z"
}
Query teams on any one of the supported parameters
userId | string <uuid> Use this param to request the teams to which the user belongs |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Burt's Awesome Team",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Update any of the supported patchable properties for a team
teamId | string <uuid> The ID of the team being patched |
name | string |
{- "name": "string"
}
Create a new team
id | string <uuid> |
name required | string |
createdBy | string <uuid> ID of the user who created the team |
createdAt | string <date-time> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Burt's Awesome Team",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "Burt's Awesome Team",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
Get all of the users belonging to a given team
teamId | string |
[- {
- "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "isOwner": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Add a user to a team
teamId | string The ID of the team to which the user is being added |
userId | string <uuid> The ID of the user being added to the team |
{- "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "isOwner": true,
- "createdAt": "2019-08-24T14:15:22Z"
}
Query topics on any one of several supported parameters
topicIds | string <uuid (comma-separated)> |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "The Trees of Antarctica",
- "description": "string",
- "config": {
- "convos": {
- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
}, - "dataSourceIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
], - "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
userId | string <uuid> The ID of the user that will own the topic, if not a team owner |
teamId | string <uuid> The ID of the team that will own the topic, if not a user owner |
id | string <uuid> |
name required | string |
description required | string |
object (topicConfig) | |
Array of objects (dataSource) Careful! This array does not actually define associations between topics and data sources. This array is only meant to define ordering of data sources, if necessary. Hence if a request to the API returns an empty array for this property, that does not mean there are no data sources. To get a topic's data sources, use GET /data-sources. | |
createdBy | string <uuid> ID of the user who created the topic |
createdAt | string <date-time> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "The Trees of Antarctica",
- "description": "string",
- "config": {
- "convos": {
- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
}, - "dataSourceIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
], - "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "The Trees of Antarctica",
- "description": "string",
- "config": {
- "convos": {
- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
}, - "dataSourceIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
], - "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
topicId | string <uuid> |
name | string <uuid> |
description | string |
object (topicConfig) | |
dataSourceIds | Array of strings <uuid> [ items <uuid > ] This is NOT a list of the data sources linked to a topic, but rather an optional feature for assigning order to the data sources linked to a topic. This matters, for example, if a document is uploaded in chunks. |
{- "name": "9ffa9185-7453-4fb2-aa6a-3105a6ae83a8",
- "description": "string",
- "config": {
- "convos": {
- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
}, - "dataSourceIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "The Trees of Antarctica",
- "description": "string",
- "config": {
- "convos": {
- "defaults": {
- "configSet": {
- "primary": {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}, - "alternate": [
- {
- "modelAlias": "claude-3-haiku",
- "provider": "anthropic"
}
]
}
}
}
}, - "dataSourceIds": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "topicId": "97b608a9-302e-4387-a5f4-fd35969cdc21",
- "name": "string",
- "type": "upload",
- "location": "string",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z",
- "mimeType": "application/pdf"
}
], - "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
Get all of the outstanding invitations for any of the queryable object types
objectType required | string Enum: "convo" "team" |
objectId required | string <uuid> |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "email": "user@example.com",
- "objectId": "e39ea5f2-2188-47f8-add0-f1976630af5e",
- "objectType": "convo",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Get the number of convos, number of teams, and number of sources for a user
userId | string <uuid> The ID of the user |
convos | integer |
teams | integer |
sources | integer |
{- "convos": 0,
- "teams": 0,
- "sources": 0
}
Query for an existing user, or potentially create a new user on-the-fly by identifying a Firebase ID in both the authorization header and the query parameters. See the responses' descriptions for more info.
userId | string <uuid> The Kallo ID of the user |
firebaseId | string The Firebase ID of the user |
string <email> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "firebaseId": "string",
- "isServiceAccount": true,
- "emailAddress": "shirley@email.com",
- "displayName": "Squidward Tentacles",
- "photoUrl": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
Update any of the supported patchable user properties
userId | string <uuid> The ID of the user |
displayName | string |
photoUrl | string <url> |
{- "displayName": "Spongebob Squarepants",
- "photoUrl": "string"
}
Query prompts based on various filter criteria
topicId | string <uuid> |
userId | string <uuid> |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "text": "The only subject matter permitted to be discussed is health conditions",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Create a new prompt
teamId | string <uuid> If included, this becomes the owning team of the prompt |
userId | string <uuid> If included, this becomes the owning user of the prompt |
id | string <uuid> |
text | string |
createdBy | string <uuid> ID of the user who created the team |
createdAt | string <date-time> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "text": "The only subject matter permitted to be discussed is health conditions",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "text": "The only subject matter permitted to be discussed is health conditions",
- "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
- "createdAt": "2019-08-24T14:15:22Z"
}