Skip to content

Commit 2074344

Browse files
Automated build docs: 2026-05-20 16:44:45
1 parent e698f9a commit 2074344

3 files changed

Lines changed: 2423 additions & 683 deletions

File tree

defs/asana_oas.yaml

Lines changed: 281 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ tags:
119119
An access request object represents a user's request to an item, such as a project
120120
or portfolio, that they do not have access to. The request is sent to the owner
121121
of the item for approval.
122+
- name: Agents
123+
description: >-
124+
An *agent* object represents a software program that can perceive its environment,
125+
reason, plan, and take autonomous actions to achieve specific goals.
126+
Agents may be built by Asana, provided by apps, or defined by the system.
122127
- name: Allocations
123128
description: >-
124129
An allocation object represents how much of a resource (e.g. person, team) is
@@ -1728,6 +1733,101 @@ components:
17281733
schema:
17291734
$ref: '#/components/schemas/ErrorResponse'
17301735
schemas:
1736+
AgentCompact:
1737+
description: >-
1738+
A generic Asana Resource, containing a globally unique identifier.
1739+
type: object
1740+
properties:
1741+
gid:
1742+
description: >-
1743+
Globally unique identifier of the resource, as a string.
1744+
type: string
1745+
readOnly: true
1746+
example: '12345'
1747+
x-insert-after: false
1748+
resource_type:
1749+
description: The base type of this resource.
1750+
type: string
1751+
readOnly: true
1752+
example: agent
1753+
x-insert-after: gid
1754+
resource_subtype:
1755+
description: >-
1756+
The subtype of the agent. `asana_teammate` is an Asana-built teammate.
1757+
type: string
1758+
readOnly: true
1759+
enum:
1760+
- asana_teammate
1761+
example: asana_teammate
1762+
name:
1763+
description: >-
1764+
The display name of the agent.
1765+
type: string
1766+
readOnly: true
1767+
example: Developer Blog Writer
1768+
AgentResponse:
1769+
allOf:
1770+
- $ref: '#/components/schemas/AgentCompact'
1771+
- type: object
1772+
required:
1773+
- workspace
1774+
properties:
1775+
description:
1776+
description: A brief description of what the agent does.
1777+
type: string
1778+
readOnly: true
1779+
nullable: true
1780+
behavior_guidance:
1781+
description: >-
1782+
A description of the agent's behavior.
1783+
type: string
1784+
readOnly: true
1785+
nullable: true
1786+
workspace:
1787+
description: The workspace this agent is instantiated within.
1788+
readOnly: true
1789+
allOf:
1790+
- $ref: '#/components/schemas/WorkspaceCompact'
1791+
- type: object
1792+
photo:
1793+
type: object
1794+
nullable: true
1795+
readOnly: true
1796+
description: >-
1797+
A map of the agent's avatar image in various sizes, or null if no
1798+
photo is set.
1799+
properties:
1800+
image_21x21:
1801+
type: string
1802+
format: uri
1803+
description: PNG image at 21x21 pixels.
1804+
image_27x27:
1805+
type: string
1806+
format: uri
1807+
description: PNG image at 27x27 pixels.
1808+
image_36x36:
1809+
type: string
1810+
format: uri
1811+
description: PNG image at 36x36 pixels.
1812+
image_60x60:
1813+
type: string
1814+
format: uri
1815+
description: PNG image at 60x60 pixels.
1816+
image_128x128:
1817+
type: string
1818+
format: uri
1819+
description: PNG image at 128x128 pixels.
1820+
image_1024x1024:
1821+
type: string
1822+
format: uri
1823+
description: JPEG image at 1024x1024 pixels.
1824+
example:
1825+
image_21x21: https://...
1826+
image_27x27: https://...
1827+
image_36x36: https://...
1828+
image_60x60: https://...
1829+
image_128x128: https://...
1830+
image_1024x1024: https://...
17311831
AllocationBase:
17321832
description: >-
17331833
A generic Asana Resource, containing a globally unique identifier.
@@ -10155,6 +10255,11 @@ components:
1015510255
AI features
1015610256
type: boolean
1015710257
example: true
10258+
create_and_edit_ai_teammates:
10259+
description: Controls whether users with this role can create and
10260+
edit AI teammates
10261+
type: boolean
10262+
example: true
1015810263
RbacRoleResponse:
1015910264
allOf:
1016010265
- $ref: '#/components/schemas/RbacRoleBase'
@@ -10612,6 +10717,166 @@ paths:
1061210717
except ApiException as e:
1061310718
print("Exception when calling AccessRequestsApi->reject_access_request: %s\n" % e)
1061410719
name: python-sdk-v5
10720+
/workspaces/{workspace_gid}/agents:
10721+
parameters:
10722+
- $ref: '#/components/parameters/workspace_path_gid'
10723+
- $ref: '#/components/parameters/pretty'
10724+
get:
10725+
summary: Get a list of agents in a workspace
10726+
description: >-
10727+
Returns the compact records of agents (AI Teammates) configured. Use `opt_fields`
10728+
to request additional fields.
10729+
in the workspace.
10730+
tags:
10731+
- Agents
10732+
operationId: getAgentsForWorkspace
10733+
parameters:
10734+
- $ref: '#/components/parameters/limit'
10735+
- $ref: '#/components/parameters/offset'
10736+
- name: opt_fields
10737+
in: query
10738+
description: This endpoint returns a resource which excludes some properties
10739+
by default. To include those optional properties, set this query parameter
10740+
to a comma-separated list of the properties you wish to include.
10741+
required: false
10742+
example:
10743+
- behavior_guidance
10744+
- description
10745+
- name
10746+
- offset
10747+
- path
10748+
- photo
10749+
- photo.image_1024x1024
10750+
- photo.image_128x128
10751+
- photo.image_21x21
10752+
- photo.image_27x27
10753+
- photo.image_36x36
10754+
- photo.image_60x60
10755+
- resource_subtype
10756+
- uri
10757+
- workspace
10758+
schema:
10759+
type: array
10760+
items:
10761+
type: string
10762+
enum:
10763+
- behavior_guidance
10764+
- description
10765+
- name
10766+
- offset
10767+
- path
10768+
- photo
10769+
- photo.image_1024x1024
10770+
- photo.image_128x128
10771+
- photo.image_21x21
10772+
- photo.image_27x27
10773+
- photo.image_36x36
10774+
- photo.image_60x60
10775+
- resource_subtype
10776+
- uri
10777+
- workspace
10778+
style: form
10779+
explode: false
10780+
responses:
10781+
200:
10782+
description: Successfully retrieved the requested workspace's agents.
10783+
content:
10784+
application/json:
10785+
schema:
10786+
type: object
10787+
properties:
10788+
data:
10789+
type: array
10790+
items:
10791+
$ref: '#/components/schemas/AgentCompact'
10792+
next_page:
10793+
$ref: '#/components/schemas/NextPage'
10794+
400:
10795+
$ref: '#/components/responses/BadRequest'
10796+
401:
10797+
$ref: '#/components/responses/Unauthorized'
10798+
403:
10799+
$ref: '#/components/responses/Forbidden'
10800+
404:
10801+
$ref: '#/components/responses/NotFound'
10802+
500:
10803+
$ref: '#/components/responses/InternalServerError'
10804+
security:
10805+
- personalAccessToken: []
10806+
- oauth2: []
10807+
/agents/{agent_gid}:
10808+
parameters:
10809+
- $ref: '#/components/parameters/agent_path_gid'
10810+
- $ref: '#/components/parameters/pretty'
10811+
get:
10812+
summary: Get an agent
10813+
description: >-
10814+
Returns the complete record for a single agent (AI Teammate).
10815+
tags:
10816+
- Agents
10817+
operationId: getAgent
10818+
parameters:
10819+
- name: opt_fields
10820+
in: query
10821+
description: This endpoint returns a resource which excludes some properties
10822+
by default. To include those optional properties, set this query parameter
10823+
to a comma-separated list of the properties you wish to include.
10824+
required: false
10825+
example:
10826+
- behavior_guidance
10827+
- description
10828+
- name
10829+
- photo
10830+
- photo.image_1024x1024
10831+
- photo.image_128x128
10832+
- photo.image_21x21
10833+
- photo.image_27x27
10834+
- photo.image_36x36
10835+
- photo.image_60x60
10836+
- resource_subtype
10837+
- workspace
10838+
schema:
10839+
type: array
10840+
items:
10841+
type: string
10842+
enum:
10843+
- behavior_guidance
10844+
- description
10845+
- name
10846+
- photo
10847+
- photo.image_1024x1024
10848+
- photo.image_128x128
10849+
- photo.image_21x21
10850+
- photo.image_27x27
10851+
- photo.image_36x36
10852+
- photo.image_60x60
10853+
- resource_subtype
10854+
- workspace
10855+
style: form
10856+
explode: false
10857+
responses:
10858+
200:
10859+
description: Successfully retrieved the requested agent.
10860+
content:
10861+
application/json:
10862+
schema:
10863+
type: object
10864+
properties:
10865+
data:
10866+
$ref: '#/components/schemas/AgentResponse'
10867+
400:
10868+
$ref: '#/components/responses/BadRequest'
10869+
401:
10870+
$ref: '#/components/responses/Unauthorized'
10871+
403:
10872+
$ref: '#/components/responses/Forbidden'
10873+
404:
10874+
$ref: '#/components/responses/NotFound'
10875+
500:
10876+
$ref: '#/components/responses/InternalServerError'
10877+
security:
10878+
- personalAccessToken: []
10879+
- oauth2: []
1061510880
/allocations/{allocation_gid}:
1061610881
parameters:
1061710882
- $ref: '#/components/parameters/allocation_path_gid'
@@ -39050,6 +39315,7 @@ paths:
3905039315
- permissions.allowed_guest_invites
3905139316
- permissions.assign_roles
3905239317
- permissions.create_and_edit_ai_automations
39318+
- permissions.create_and_edit_ai_teammates
3905339319
- permissions.create_app_authorization
3905439320
- permissions.create_global_custom_fields
3905539321
- permissions.create_pat_authorization
@@ -39084,6 +39350,7 @@ paths:
3908439350
- permissions.allowed_guest_invites
3908539351
- permissions.assign_roles
3908639352
- permissions.create_and_edit_ai_automations
39353+
- permissions.create_and_edit_ai_teammates
3908739354
- permissions.create_app_authorization
3908839355
- permissions.create_global_custom_fields
3908939356
- permissions.create_pat_authorization
@@ -39211,6 +39478,7 @@ paths:
3921139478
- permissions.allowed_guest_invites
3921239479
- permissions.assign_roles
3921339480
- permissions.create_and_edit_ai_automations
39481+
- permissions.create_and_edit_ai_teammates
3921439482
- permissions.create_app_authorization
3921539483
- permissions.create_global_custom_fields
3921639484
- permissions.create_pat_authorization
@@ -39242,6 +39510,7 @@ paths:
3924239510
- permissions.allowed_guest_invites
3924339511
- permissions.assign_roles
3924439512
- permissions.create_and_edit_ai_automations
39513+
- permissions.create_and_edit_ai_teammates
3924539514
- permissions.create_app_authorization
3924639515
- permissions.create_global_custom_fields
3924739516
- permissions.create_pat_authorization
@@ -39371,6 +39640,7 @@ paths:
3937139640
- permissions.allowed_guest_invites
3937239641
- permissions.assign_roles
3937339642
- permissions.create_and_edit_ai_automations
39643+
- permissions.create_and_edit_ai_teammates
3937439644
- permissions.create_app_authorization
3937539645
- permissions.create_global_custom_fields
3937639646
- permissions.create_pat_authorization
@@ -39402,6 +39672,7 @@ paths:
3940239672
- permissions.allowed_guest_invites
3940339673
- permissions.assign_roles
3940439674
- permissions.create_and_edit_ai_automations
39675+
- permissions.create_and_edit_ai_teammates
3940539676
- permissions.create_app_authorization
3940639677
- permissions.create_global_custom_fields
3940739678
- permissions.create_pat_authorization
@@ -39517,6 +39788,7 @@ paths:
3951739788
- permissions.allowed_guest_invites
3951839789
- permissions.assign_roles
3951939790
- permissions.create_and_edit_ai_automations
39791+
- permissions.create_and_edit_ai_teammates
3952039792
- permissions.create_app_authorization
3952139793
- permissions.create_global_custom_fields
3952239794
- permissions.create_pat_authorization
@@ -39548,6 +39820,7 @@ paths:
3954839820
- permissions.allowed_guest_invites
3954939821
- permissions.assign_roles
3955039822
- permissions.create_and_edit_ai_automations
39823+
- permissions.create_and_edit_ai_teammates
3955139824
- permissions.create_app_authorization
3955239825
- permissions.create_global_custom_fields
3955339826
- permissions.create_pat_authorization
@@ -60869,15 +61142,20 @@ paths:
6086961142
in: query
6087061143
description: >-
6087161144
The type of values the typeahead should return. You can choose from one
60872-
of the following: `custom_field`, `goal`, `project`, `project_template`,
61145+
of the following: `actor`, `agent`, `custom_field`, `goal`, `project`, `project_template`,
6087361146
`portfolio`, `tag`, `task`, `team`, and `user`. Note that unlike in the
6087461147
names
6087561148
of endpoints, the types listed here are in singular form (e.g. `task`).
6087661149
Using multiple types is not yet supported.
61150+
The `agent` type returns only agents, currently limited to AI Teammates,
61151+
which are Asana's first-party agents.
61152+
The `actor` type returns a combined set of users and agents.
6087761153
required: true
6087861154
schema:
6087961155
type: string
6088061156
enum:
61157+
- actor
61158+
- agent
6088161159
- custom_field
6088261160
- goal
6088361161
- project
@@ -60962,6 +61240,8 @@ paths:
6096261240
Leaving the `query` string empty or omitted will give you results, still
6096361241
following the resource ordering above. This could be used to list users or
6096461242
projects that are relevant for the requesting user's api token.
61243+
61244+
The `agent` type returns only agents, currently limited to AI Teammates, which are Asana's first-party agents. The `actor` type returns a combined set of users and agents.
6096561245
tags:
6096661246
- Typeahead
6096761247
operationId: typeaheadForWorkspace

0 commit comments

Comments
 (0)