Organization API
Teams
Team CRUD and member management
GET/teams
List teams
Query parameters
pageinteger
perPageinteger
limitinteger
statusstring
Responses
200Teams
ok reqenumtrue
teams reqany[]
pageinteger
perPageinteger
totalinteger
Request
curl 'https://app.openassistant.us/api/teams' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"teams": [
null
]
}
POST/teams
Create a team
Request body
idstring
name reqstring
adminApprovalRequiredboolean"Admins must approve team invites" (default false). On: a plain member's POST /team-invitations files an invitation request that a team admin or org admin approves or rejects; admins still invite directly.
ownerIdstring
Responses
Request
curl 'https://app.openassistant.us/api/teams' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'
Response
{
"ok": true
}
GET/teams/{teamId}
Get a team
Path parameters
Responses
Request
curl 'https://app.openassistant.us/api/teams/<teamId>' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true
}
PUT/teams/{teamId}
Update a team
Path parameters
Request body
namestring
adminApprovalRequiredboolean"Admins must approve team invites". On: a plain member's POST /team-invitations files an invitation request that a team admin or org admin approves or rejects (GET/PATCH /teams/{teamId}/invitation-requests); admins still invite directly. Off (default): any member invites directly.
statusstring
brandingOnEventsboolean
brandingOnMessagesboolean
Responses
Request
curl 'https://app.openassistant.us/api/teams/<teamId>' \
-X PUT \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"adminApprovalRequired": true,
"status": "string",
"brandingOnEvents": true
}'
Response
{
"ok": true
}
DELETE/teams/{teamId}
Delete an empty team (strict; use the preview + deletion endpoints otherwise)
Strict wrapper over the team-deletion service. Organization authority required (org admin or owner, or an org-scoped key for the same org; a team admin or team owner is refused). It only proceeds for a team with no members and nothing to move: anything else is 409 needs_preview (members and data are never stranded). A team that was already deleted through the service answers 200 for an org admin of its org. A team outside any organization is deleted only when nobody else is on it (409 team_has_members).
Path parameters
Responses
200Deleted
ok reqenumtrue
team reqobject
id reqstring
deletedboolean
messagestring
404Team not found (also: a team of another organization)
status reqinteger
error_codestring
error reqstring
409needs_preview | blocked | is_default_team | billing_change_pending | plan_changed | team_has_members
ok reqenumfalse
error reqstring
code reqenumplan_changedblockedis_default_teambilling_change_pendingneeds_previewnot_in_organizationconfirm_name_mismatchteam_has_memberscredential_exposure_unacknowledged
planobject
organizationId reqstring
team reqobject
id reqstring
name reqstring | null
destination reqobject | nullThe organization's default team: every member lands here. Null when blocked.
id reqstring
name reqstring | null
note reqstring
confirmWith reqenumteamName
requiredConfirmations reqstring[]Boolean confirmations the POST body must carry in addition to the typed name (credential_exposure -> acknowledgeCredentialExposure).
exposure reqobject
destination reqobject | null
id reqstring
name reqstring | null
activeMembers reqnumber
credentials reqobjectCounts only. No credential value, key name or token is ever in the plan.
connections reqnumber
skillInstalls reqnumber
sharedSkillInstalls reqnumber
collections reqobject[]
collection reqstring
label reqstringReadable name of the collection key.
count reqnumber
staysPrivate reqobject
driveFilesMarkedPrivate reqnumber
authorOnlyMemories reqnumber
note reqstring
blockers reqobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
owner reqobject | null
userId reqstring
name reqstring | null
landsAs reqenummember
members reqobject[]
userId reqstring
name reqstring | null
email reqstring | null
role reqstring
isOwner reqboolean
unusedSeatCredits reqnumber
topUpsKept reqnumber
credits reqobjectMembers keep their current-period allocation row exactly as it is (nothing goes to or comes from the pool). mergedAllocations: leftover rows of former memberships added to the member's current row.
mode reqstring | null
period reqstring
unusedSeatCredits reqnumber
topUpsKept reqnumber
mergedAllocations reqnumber
mergedCredits reqnumber
note reqstring
data reqobject[]Team-owned data. moves=false entries block the deletion.
collection reqstring
label reqstring
count reqnumber
moves reqboolean
assistants reqobject
rehomedToDefaultTeam reqnumber
detached reqnumber
invitations reqobject
revoked reqnumber
requestsRejected reqnumber
foldedTeams reqnumber
duplicates reqobject
skillInstalls reqnumber
meters reqnumber
propertyDefinitions reqnumber
warnings reqobject[]
code reqstring
message reqstring
countnumber
planHash reqstring
blockersobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>' \
-X DELETE \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"team": {
"id": "string"
}
}
PUT/teams/{teamId}/icon
Set the team icon
Team admins, for a team that is not in an organization (409 `team_icon_uses_org_icon` otherwise: the organization carries the icon). Replaces any earlier icon; the response carries the public `iconUrl`.
Path parameters
Request body
imageBase64 reqstringBase64 of a PNG, JPEG or WebP image, up to 2 MB. SVG is not accepted. The image is fitted inside a square, never cropped.
contentType reqenumimage/pngimage/jpegimage/webp
Responses
400Not a PNG, JPEG or WebP image, empty, or over 2 MB
status reqinteger
error_codestring
error reqstring
409team_icon_uses_org_icon
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/icon' \
-X PUT \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"imageBase64": "string",
"contentType": "image/png"
}'
Response
{
"ok": true
}
DELETE/teams/{teamId}/icon
Remove the team icon
Team admins. A no-op when there is no icon.
Path parameters
Responses
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/icon' \
-X DELETE \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true
}
GET/teams/{teamId}/deletion-preview
Preview deleting a team
Read-only. Organization authority required. Returns what deleting the team would do: every member lands on the organization's default team (the owner as a regular member), team-owned data moves there, every member keeps their current-period credits exactly as they are (the allocation row moves with them), pending invitations are revoked. Also the blockers and a planHash to send back to POST /teams/{teamId}/deletion.
Path parameters
Responses
200The plan
ok reqenumtrue
preview reqobject
organizationId reqstring
team reqobject
id reqstring
name reqstring | null
destination reqobject | nullThe organization's default team: every member lands here. Null when blocked.
id reqstring
name reqstring | null
note reqstring
confirmWith reqenumteamName
requiredConfirmations reqstring[]Boolean confirmations the POST body must carry in addition to the typed name (credential_exposure -> acknowledgeCredentialExposure).
exposure reqobject
destination reqobject | null
id reqstring
name reqstring | null
activeMembers reqnumber
credentials reqobjectCounts only. No credential value, key name or token is ever in the plan.
connections reqnumber
skillInstalls reqnumber
sharedSkillInstalls reqnumber
collections reqobject[]
collection reqstring
label reqstringReadable name of the collection key.
count reqnumber
staysPrivate reqobject
driveFilesMarkedPrivate reqnumber
authorOnlyMemories reqnumber
note reqstring
blockers reqobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
owner reqobject | null
userId reqstring
name reqstring | null
landsAs reqenummember
members reqobject[]
userId reqstring
name reqstring | null
email reqstring | null
role reqstring
isOwner reqboolean
unusedSeatCredits reqnumber
topUpsKept reqnumber
credits reqobjectMembers keep their current-period allocation row exactly as it is (nothing goes to or comes from the pool). mergedAllocations: leftover rows of former memberships added to the member's current row.
mode reqstring | null
period reqstring
unusedSeatCredits reqnumber
topUpsKept reqnumber
mergedAllocations reqnumber
mergedCredits reqnumber
note reqstring
data reqobject[]Team-owned data. moves=false entries block the deletion.
collection reqstring
label reqstring
count reqnumber
moves reqboolean
assistants reqobject
rehomedToDefaultTeam reqnumber
detached reqnumber
invitations reqobject
revoked reqnumber
requestsRejected reqnumber
foldedTeams reqnumber
duplicates reqobject
skillInstalls reqnumber
meters reqnumber
propertyDefinitions reqnumber
warnings reqobject[]
code reqstring
message reqstring
countnumber
planHash reqstring
403Organization admin role required
status reqinteger
error_codestring
error reqstring
404Team not found
status reqinteger
error_codestring
error reqstring
409not_in_organization
ok reqenumfalse
error reqstring
code reqenumplan_changedblockedis_default_teambilling_change_pendingneeds_previewnot_in_organizationconfirm_name_mismatchteam_has_memberscredential_exposure_unacknowledged
planobject
organizationId reqstring
team reqobject
id reqstring
name reqstring | null
destination reqobject | nullThe organization's default team: every member lands here. Null when blocked.
id reqstring
name reqstring | null
note reqstring
confirmWith reqenumteamName
requiredConfirmations reqstring[]Boolean confirmations the POST body must carry in addition to the typed name (credential_exposure -> acknowledgeCredentialExposure).
exposure reqobject
destination reqobject | null
id reqstring
name reqstring | null
activeMembers reqnumber
credentials reqobjectCounts only. No credential value, key name or token is ever in the plan.
connections reqnumber
skillInstalls reqnumber
sharedSkillInstalls reqnumber
collections reqobject[]
collection reqstring
label reqstringReadable name of the collection key.
count reqnumber
staysPrivate reqobject
driveFilesMarkedPrivate reqnumber
authorOnlyMemories reqnumber
note reqstring
blockers reqobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
owner reqobject | null
userId reqstring
name reqstring | null
landsAs reqenummember
members reqobject[]
userId reqstring
name reqstring | null
email reqstring | null
role reqstring
isOwner reqboolean
unusedSeatCredits reqnumber
topUpsKept reqnumber
credits reqobjectMembers keep their current-period allocation row exactly as it is (nothing goes to or comes from the pool). mergedAllocations: leftover rows of former memberships added to the member's current row.
mode reqstring | null
period reqstring
unusedSeatCredits reqnumber
topUpsKept reqnumber
mergedAllocations reqnumber
mergedCredits reqnumber
note reqstring
data reqobject[]Team-owned data. moves=false entries block the deletion.
collection reqstring
label reqstring
count reqnumber
moves reqboolean
assistants reqobject
rehomedToDefaultTeam reqnumber
detached reqnumber
invitations reqobject
revoked reqnumber
requestsRejected reqnumber
foldedTeams reqnumber
duplicates reqobject
skillInstalls reqnumber
meters reqnumber
propertyDefinitions reqnumber
warnings reqobject[]
code reqstring
message reqstring
countnumber
planHash reqstring
blockersobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/deletion-preview' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"preview": {
"organizationId": "string",
"team": {
"id": "string",
"name": "string"
},
"destination": {
"id": "string",
"name": "string",
"note": "string"
},
"confirmWith": "teamName",
"requiredConfirmations": [
"credential_exposure"
],
"exposure": {
"destination": {
"id": "string",
"name": "string",
"activeMembers": 0
},
"credentials": {
"connections": 0,
"skillInstalls": 0,
"sharedSkillInstalls": 0
},
"collections": [
{
"collection": null,
"label": null,
"count": null
}
],
"staysPrivate": {
"driveFilesMarkedPrivate": 0,
"authorOnlyMemories": 0,
"note": "string"
}
}
}
}
POST/teams/{teamId}/deletion
Delete a team (members land on the default team)
Executes the previewed plan in one transaction. Organization authority required. The typed team name must match (400 confirm_name_mismatch). When the plan lists credential_exposure in requiredConfirmations, acknowledgeCredentialExposure must be true (409 credential_exposure_unacknowledged). A repeated request after the commit answers 200 with alreadyDeleted=true. The default team cannot be deleted (409 is_default_team). A team-scoped billing profile, sites, a pending organization request and other unmovable data block (409 blocked, with the blockers).
Path parameters
Request body
planHash reqstringFrom the preview. A stale hash is refused with 409 plan_changed (the body carries the fresh plan).
confirmName reqstringThe team name, typed by the admin to confirm. A mismatch is 400 confirm_name_mismatch.
acknowledgeCredentialExposurebooleanRequired (true) whenever the plan's requiredConfirmations contains credential_exposure, i.e. the team has custom connections or skill installs with stored credentials: they move to the default team and every one of its members can use them. Without it: 409 credential_exposure_unacknowledged with the fresh plan.
Responses
200Deleted (or already deleted)
ok reqenumtrue
deletion reqobject
ok reqenumtrue
alreadyDeleted reqboolean
teamId reqstring
organizationId reqstring
destinationTeamIdstring
movedMembersobject[]
userId reqstring
previousRole reqstring
creditsCarriednumber
mergedAllocationsnumber
movedobject
mergedobject
assistantsobject
rehomed reqnumber
detached reqnumber
invitationsRevokednumber
effectsobjectenqueue: queued | in_flight | none | failed | done | unavailable. The webhooks, team:changed, seat kick and teammate sync run in a worker job; repeating the request re-enqueues it while it is not done.
400confirm_name_mismatch
ok reqenumfalse
error reqstring
code reqenumplan_changedblockedis_default_teambilling_change_pendingneeds_previewnot_in_organizationconfirm_name_mismatchteam_has_memberscredential_exposure_unacknowledged
planobject
organizationId reqstring
team reqobject
id reqstring
name reqstring | null
destination reqobject | nullThe organization's default team: every member lands here. Null when blocked.
id reqstring
name reqstring | null
note reqstring
confirmWith reqenumteamName
requiredConfirmations reqstring[]Boolean confirmations the POST body must carry in addition to the typed name (credential_exposure -> acknowledgeCredentialExposure).
exposure reqobject
destination reqobject | null
id reqstring
name reqstring | null
activeMembers reqnumber
credentials reqobjectCounts only. No credential value, key name or token is ever in the plan.
connections reqnumber
skillInstalls reqnumber
sharedSkillInstalls reqnumber
collections reqobject[]
collection reqstring
label reqstringReadable name of the collection key.
count reqnumber
staysPrivate reqobject
driveFilesMarkedPrivate reqnumber
authorOnlyMemories reqnumber
note reqstring
blockers reqobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
owner reqobject | null
userId reqstring
name reqstring | null
landsAs reqenummember
members reqobject[]
userId reqstring
name reqstring | null
email reqstring | null
role reqstring
isOwner reqboolean
unusedSeatCredits reqnumber
topUpsKept reqnumber
credits reqobjectMembers keep their current-period allocation row exactly as it is (nothing goes to or comes from the pool). mergedAllocations: leftover rows of former memberships added to the member's current row.
mode reqstring | null
period reqstring
unusedSeatCredits reqnumber
topUpsKept reqnumber
mergedAllocations reqnumber
mergedCredits reqnumber
note reqstring
data reqobject[]Team-owned data. moves=false entries block the deletion.
collection reqstring
label reqstring
count reqnumber
moves reqboolean
assistants reqobject
rehomedToDefaultTeam reqnumber
detached reqnumber
invitations reqobject
revoked reqnumber
requestsRejected reqnumber
foldedTeams reqnumber
duplicates reqobject
skillInstalls reqnumber
meters reqnumber
propertyDefinitions reqnumber
warnings reqobject[]
code reqstring
message reqstring
countnumber
planHash reqstring
blockersobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
403Organization admin role required
status reqinteger
error_codestring
error reqstring
404Team not found
status reqinteger
error_codestring
error reqstring
409plan_changed (carries the fresh plan) | credential_exposure_unacknowledged (carries the plan) | blocked | is_default_team | billing_change_pending | not_in_organization
ok reqenumfalse
error reqstring
code reqenumplan_changedblockedis_default_teambilling_change_pendingneeds_previewnot_in_organizationconfirm_name_mismatchteam_has_memberscredential_exposure_unacknowledged
planobject
organizationId reqstring
team reqobject
id reqstring
name reqstring | null
destination reqobject | nullThe organization's default team: every member lands here. Null when blocked.
id reqstring
name reqstring | null
note reqstring
confirmWith reqenumteamName
requiredConfirmations reqstring[]Boolean confirmations the POST body must carry in addition to the typed name (credential_exposure -> acknowledgeCredentialExposure).
exposure reqobject
destination reqobject | null
id reqstring
name reqstring | null
activeMembers reqnumber
credentials reqobjectCounts only. No credential value, key name or token is ever in the plan.
connections reqnumber
skillInstalls reqnumber
sharedSkillInstalls reqnumber
collections reqobject[]
collection reqstring
label reqstringReadable name of the collection key.
count reqnumber
staysPrivate reqobject
driveFilesMarkedPrivate reqnumber
authorOnlyMemories reqnumber
note reqstring
blockers reqobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
owner reqobject | null
userId reqstring
name reqstring | null
landsAs reqenummember
members reqobject[]
userId reqstring
name reqstring | null
email reqstring | null
role reqstring
isOwner reqboolean
unusedSeatCredits reqnumber
topUpsKept reqnumber
credits reqobjectMembers keep their current-period allocation row exactly as it is (nothing goes to or comes from the pool). mergedAllocations: leftover rows of former memberships added to the member's current row.
mode reqstring | null
period reqstring
unusedSeatCredits reqnumber
topUpsKept reqnumber
mergedAllocations reqnumber
mergedCredits reqnumber
note reqstring
data reqobject[]Team-owned data. moves=false entries block the deletion.
collection reqstring
label reqstring
count reqnumber
moves reqboolean
assistants reqobject
rehomedToDefaultTeam reqnumber
detached reqnumber
invitations reqobject
revoked reqnumber
requestsRejected reqnumber
foldedTeams reqnumber
duplicates reqobject
skillInstalls reqnumber
meters reqnumber
propertyDefinitions reqnumber
warnings reqobject[]
code reqstring
message reqstring
countnumber
planHash reqstring
blockersobject[]
code reqenumis_default_teamno_default_teamdefault_team_unavailabletoo_many_membersteam_billing_profilepending_organization_requestfold_history_from_teamteam_has_sitestoo_much_data
message reqstring
countnumber
collectionstring
userIdstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/deletion' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"planHash": "string",
"confirmName": "string"
}'
Response
{
"ok": true,
"deletion": {
"ok": true,
"alreadyDeleted": true,
"teamId": "string",
"organizationId": "string"
}
}
GET/teams/{teamId}/members
List team members
Path parameters
Query parameters
pageinteger
perPageinteger
limitinteger
statusstring
searchstring
Responses
200Members
ok reqenumtrue
members reqany[]
pageinteger
perPageinteger
totalinteger
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/members' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"members": [
null
]
}
POST/teams/{teamId}/members
Add team member
Path parameters
Request body
userId reqstring
rolestring
Responses
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/members' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"userId": "string"
}'
Response
{
"ok": true
}
PUT/teams/{teamId}/members/{memberId}
Update team member
Path parameters
teamId reqstring
memberId reqstring
Request body
Responses
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/members/<memberId>' \
-X PUT \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"role": "string",
"status": "string"
}'
Response
{
"ok": true
}
DELETE/teams/{teamId}/members/{memberId}
Remove team member
Path parameters
teamId reqstring
memberId reqstring
Responses
200Removed
ok reqenumtrue
member reqobject
id reqstring
deletedboolean
messagestring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/members/<memberId>' \
-X DELETE \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"member": {
"id": "string"
}
}
GET/teams/{teamId}/profile
Get team profile (Layered Profile)
Path parameters
Responses
200Team profile
ok reqenumtrue
profile reqobject
taglinestring | null
missionstring | null
leadUserIdstring | null
workingHoursobject | null
startstring
endstring
daysstring[]
tzstring
ritualsobject[]
namestring
cadencestring
currentGoalsstring[]
kpisstring[]
commsStylestring | null
valuesstring[]
docsLinksobject[]
labelstring
urlstring
primeDefaultsobject | null
supervisionModestring
defaultChannelsstring[]
403Not a team member
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/profile' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"profile": {
"tagline": "string",
"mission": "string",
"leadUserId": "string",
"workingHours": {
"start": "string",
"end": "string",
"days": [
"string"
],
"tz": "string"
}
}
}
PATCH/teams/{teamId}/profile
Patch team profile — team admin only
Path parameters
Request body
taglinestring | null
missionstring | null
leadUserIdstring | null
workingHoursobject | null
startstring
endstring
daysstring[]
tzstring
ritualsobject[]
namestring
cadencestring
currentGoalsstring[]
kpisstring[]
commsStylestring | null
valuesstring[]
docsLinksobject[]
labelstring
urlstring
primeDefaultsobject | null
supervisionModestring
defaultChannelsstring[]
Responses
200Updated team profile
ok reqenumtrue
profile reqobject
taglinestring | null
missionstring | null
leadUserIdstring | null
workingHoursobject | null
startstring
endstring
daysstring[]
tzstring
ritualsobject[]
namestring
cadencestring
currentGoalsstring[]
kpisstring[]
commsStylestring | null
valuesstring[]
docsLinksobject[]
labelstring
urlstring
primeDefaultsobject | null
supervisionModestring
defaultChannelsstring[]
403Team admin required
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/profile' \
-X PATCH \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"tagline": "string",
"mission": "string",
"leadUserId": "string",
"workingHours": {
"start": "string",
"end": "string",
"days": [
"string"
],
"tz": "string"
}
}'
Response
{
"ok": true,
"profile": {
"tagline": "string",
"mission": "string",
"leadUserId": "string",
"workingHours": {
"start": "string",
"end": "string",
"days": [
"string"
],
"tz": "string"
}
}
}
GET/teams/{teamId}/join-link
Get the team's own join link (made on first use). New signups through it join the team as members. Needs the invite permission; organization teams have none (409 org_team_no_join_link)
Path parameters
Responses
200Join link
ok reqboolean
code reqstring
url reqstring | null
403May not invite
status reqinteger
error_codestring
error reqstring
409No join link for this team
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/join-link' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"code": "string",
"url": "string"
}
POST/teams/{teamId}/join-link/rotate
Replace the team's join link; the old link stops working at once. Team admin or owner
Path parameters
Responses
200New join link
ok reqboolean
code reqstring
url reqstring | null
403Not a team admin
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/join-link/rotate' \
-X POST \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"code": "string",
"url": "string"
}
GET/teams/{teamId}/settings/resource-permissions
Get the team's resource permissions (team admin)
Path parameters
Responses
200Resource permissions
ok reqenumtrue
settings reqobject
assistants reqobject
canCreateboolean | nullMembers may create their own assistants. null: inherit
canManageSharedboolean | nullMembers may add our ready-made assistants to the company and remove them. null: inherit
canShareWithTeamboolean | nullNot enforced: sharing a custom assistant is its creator's call
requirePermissionToShareboolean | nullNot enforced
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/settings/resource-permissions' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"settings": {
"assistants": {
"canCreate": true,
"canManageShared": true,
"canShareWithTeam": true,
"requirePermissionToShare": true
}
}
}
PATCH/teams/{teamId}/settings/resource-permissions
Update the team's resource permissions (team admin)
Path parameters
Request body
assistantsobject
canCreateboolean | nullMembers may create their own assistants. null: inherit
canManageSharedboolean | nullMembers may add our ready-made assistants to the company and remove them. null: inherit
canShareWithTeamboolean | nullNot enforced: sharing a custom assistant is its creator's call
requirePermissionToShareboolean | nullNot enforced
Responses
200Resource permissions now
ok reqenumtrue
settings reqobject
assistants reqobject
canCreateboolean | nullMembers may create their own assistants. null: inherit
canManageSharedboolean | nullMembers may add our ready-made assistants to the company and remove them. null: inherit
canShareWithTeamboolean | nullNot enforced: sharing a custom assistant is its creator's call
requirePermissionToShareboolean | nullNot enforced
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/settings/resource-permissions' \
-X PATCH \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"assistants": {
"canCreate": true,
"canManageShared": true,
"canShareWithTeam": true,
"requirePermissionToShare": true
}
}'
Response
{
"ok": true,
"settings": {
"assistants": {
"canCreate": true,
"canManageShared": true,
"canShareWithTeam": true,
"requirePermissionToShare": true
}
}
}
GET/team-invitations
List pending invitations for a team
Query parameters
Responses
200Invitations
ok reqenumtrue
invitations reqobject[]
id reqstring
team reqstring | null
email reqstring
role reqenummemberadmin
multiplier reqinteger
invitedBy reqstring | null
approvedBy reqstring | nullSet when the invitation was issued by approving a member's invitation request: the admin who approved it (`invitedBy` is then the member who asked).
status reqenumpendingacceptedrevokedexpired
expiresAt reqstring
acceptedAt reqstring | null
revokedAt reqstring | null
createdAt reqstring
pageinteger
perPageinteger
totalinteger
Request
curl 'https://app.openassistant.us/api/team-invitations?teamId=' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"invitations": [
{
"id": "string",
"team": "string",
"email": "string",
"role": "member",
"multiplier": 0,
"invitedBy": "string"
}
]
}
POST/team-invitations
Send a team invitation (or, where admins approve invites, request one)
Any active member of the team may invite, on every plan tier, and so may an org admin/owner of the team's organization (403 no_membership otherwise). When the team has "Admins must approve team invites" on (`adminApprovalRequired`) and the caller is a plain member, nothing is sent: a pending invitation request is filed, the team's admins are notified, and the answer is 202 with `requiresApproval: true` (409 request_pending when one is already waiting for that address). Admins always invite directly (201).
Request body
teamId reqstring
email reqstring
roleenummemberadmin
multiplierinteger
taskIdstring
Responses
201Invitation created
ok reqenumtrue
invitation reqobject
idstring
teamstring | null
emailstring
roleenummemberadmin
multiplierinteger
invitedBystring | null
approvedBystring | nullSet when the invitation was issued by approving a member's invitation request: the admin who approved it (`invitedBy` is then the member who asked).
statusenumpendingacceptedrevokedexpired
expiresAtstring
acceptedAtstring | null
revokedAtstring | null
createdAtstring
202Invitation request filed (a plain member on a team whose admins approve invites); nothing was sent
ok reqenumtrue
requiresApproval reqenumtrue
request reqobject
id reqstring
team reqstring | null
email reqstring
status reqenumpendingapprovedrejectedexpired
requestedBy reqobject
id reqstring | null
name reqstring | null
email reqstring | null
taskId reqstring | nullThe task the member invited from: on approval a seat is held on it for the invitee (if the member is still on the task).
createdAt reqstring
expiresAt reqstring
Request
curl 'https://app.openassistant.us/api/team-invitations' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"teamId": "string",
"email": "[email protected]"
}'
Response
{
"ok": true,
"invitation": {
"id": "string",
"team": "string",
"email": "string",
"role": "member",
"multiplier": 0,
"invitedBy": "string",
"seatHeld": {
"task": "string"
}
}
}
GET/team-invitations/{invitationId}
Get a team invitation (public — used by invitation landing page)
Resolved by the invitation link token. An ObjectId resolves only for invitations created before links carried the token; otherwise 404.
Path parameters
Responses
200Invitation
ok reqenumtrue
invitation reqobject
id reqstring
email reqstring
status reqenumpendingacceptedrevokedexpired
expiresAt reqstring
teamName reqstring | null
teamLogoUrl reqstring | nullPublic URL of the icon shown above 'Join <team>': the organization's icon for a team in an organization, the team's own icon for a team outside one; null when there is none.
inviterName reqstring | null
inviterAvatarUrl reqstring | null
acceptanceIncomplete reqboolean
Request
curl 'https://app.openassistant.us/api/team-invitations/<invitationId>' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"invitation": {
"id": "string",
"email": "string",
"status": "pending",
"expiresAt": "2025-01-15T10:30:00.000Z",
"teamName": "string",
"teamLogoUrl": "string"
}
}
DELETE/team-invitations/{invitationId}
Revoke or decline a team invitation
Team owners/admins use this to revoke an invitation. The invitee uses it to decline.
Path parameters
Responses
200Revoked or declined
ok reqenumtrue
invitation reqobject
id reqstring
team reqstring | null
email reqstring
role reqenummemberadmin
multiplier reqinteger
invitedBy reqstring | null
approvedBy reqstring | nullSet when the invitation was issued by approving a member's invitation request: the admin who approved it (`invitedBy` is then the member who asked).
status reqenumpendingacceptedrevokedexpired
expiresAt reqstring
acceptedAt reqstring | null
revokedAt reqstring | null
createdAt reqstring
Request
curl 'https://app.openassistant.us/api/team-invitations/<invitationId>' \
-X DELETE \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"invitation": {
"id": "string",
"team": "string",
"email": "string",
"role": "member",
"multiplier": 0,
"invitedBy": "string"
}
}
POST/team-invitations/{invitationId}/accept
Accept a team invitation
Path parameters
Request body
Responses
200Accepted
ok reqenumtrue
invitation reqobject
idstring
teamstring | null
emailstring
roleenummemberadmin
multiplierinteger
invitedBystring | null
approvedBystring | nullSet when the invitation was issued by approving a member's invitation request: the admin who approved it (`invitedBy` is then the member who asked).
statusenumpendingacceptedrevokedexpired
expiresAtstring
acceptedAtstring | null
revokedAtstring | null
createdAtstring
400Ownership transfer required
error reqstring
requiresOwnershipTransfer reqenumtrue
teamId reqstring
Request
curl 'https://app.openassistant.us/api/team-invitations/<invitationId>/accept' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"newOwnerId": "string"
}'
Response
{
"ok": true,
"invitation": {
"id": "string",
"team": "string",
"email": "string",
"role": "member",
"multiplier": 0,
"invitedBy": "string",
"teamId": "string"
}
}
POST/team-invitations/{invitationId}/resend
Resend a pending team invitation
Path parameters
Responses
200Invitation resent
ok reqenumtrue
message reqstring
Request
curl 'https://app.openassistant.us/api/team-invitations/<invitationId>/resend' \
-X POST \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"message": "string"
}
GET/teams/{teamId}/invitation-requests
List pending invitation requests for a team
Pending, unexpired requests, newest first. Team admins/owners and org admins/owners of the team's organization; a plain member gets 403.
Path parameters
Responses
200Requests
ok reqenumtrue
requests reqobject[]
id reqstring
team reqstring | null
email reqstring
status reqenumpendingapprovedrejectedexpired
requestedBy reqobject
id reqstring | null
name reqstring | null
email reqstring | null
taskId reqstring | nullThe task the member invited from: on approval a seat is held on it for the invitee (if the member is still on the task).
createdAt reqstring
expiresAt reqstring
pageinteger
perPageinteger
totalinteger
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/invitation-requests' \
-H "Authorization: Bearer ak_live_..."
Response
{
"ok": true,
"requests": [
{
"id": "string",
"team": "string",
"email": "string",
"status": "pending",
"requestedBy": {
"id": "string",
"name": "string",
"email": "string"
},
"taskId": "string"
}
]
}
PATCH/teams/{teamId}/invitation-requests/{requestId}
Approve or reject an invitation request
approve: the invitation is sent exactly as a direct invite would be, from the member who asked (`invitedBy`), with `approvedBy` set to the approver. If it cannot be issued (invitee_not_invitable, plan_ending, a cap, requester_not_member) that error is returned and the request stays pending. reject: the member is emailed. Only a pending, unexpired request can be processed (400).
Path parameters
teamId reqstring
requestId reqstring
Request body
action reqenumapprovereject
Responses
200Processed
ok reqenumtrue
invitationobjectPresent on approve.
idstring
teamstring | null
emailstring
roleenummemberadmin
multiplierinteger
invitedBystring | null
approvedBystring | nullSet when the invitation was issued by approving a member's invitation request: the admin who approved it (`invitedBy` is then the member who asked).
statusenumpendingacceptedrevokedexpired
expiresAtstring
acceptedAtstring | null
revokedAtstring | null
createdAtstring
Request
curl 'https://app.openassistant.us/api/teams/<teamId>/invitation-requests/<requestId>' \
-X PATCH \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"action": "approve"
}'
Response
{
"ok": true
}