- Attachments
- Batch API
- Custom Fields
- Events
- Goals
- Get goalsGET
- Create a goalPOST
- Delete a goalDELETE
- Get a goalGET
- Update a goalPUT
- Add a collaborator to a goalPOST
- Add a subgoal to a parent goalPOST
- Add a project/portfolio as supporting work for a goal.POST
- Get parent goals from a goalGET
- Remove a collaborator from a goalPOST
- Remove a subgoal from a goalPOST
- Remove a project/portfolio as supporting work for a goal.POST
- Create a goal metricPOST
- Update a goal metricPOST
- Get subgoals from a goalGET
- Get supporting work from a goalGET
- Jobs
- Organization Exports
- Teams
- Portfolio Memberships
- Portfolios
- Custom Field Settings
- Project Memberships
- Project Statuses
- Projects
- Get multiple projects
- Create a project
- Delete a project
- Get a project
- Update a project
- Add a custom field to a project
- Add followers to a project
- Add users to a project
- Duplicate a project
- Remove a custom field from a project
- Remove followers from a project
- Remove users from a project
- Get task count of a project
- Get projects a task is in
- Get a team's projects
- Create a project in a team
- Get all projects in a workspace
- Create a project in a workspace
- Sections
- Tasks
- Get tasks from a project
- Get tasks from a section
- Get tasks from a tag
- Get multiple tasks
- Create a task
- Delete a task
- Get a task
- Update a task
- Set dependencies for a task
- Set dependents for a task
- Add followers to a task
- Add a project to a task
- Add a tag to a task
- Get dependencies from a task
- Get dependents from a task
- Duplicate a task
- Unlink dependencies from a task
- Unlink dependents from a task
- Remove followers from a task
- Remove a project from a task
- Remove a tag from a task
- Set the parent of a task
- Get subtasks from a task
- Create a subtask
- Get tasks from a user task list
- Search tasks in a workspace
- Stories
- Tags
- Team Memberships
- Users
- Time Periods
- User Task Lists
- Workspace Memberships
- Webhooks
- Workspaces
- Typeahead
Get an attachment
GET
/attachments/{attachment_gid}
Attachments
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://app.asana.com/api/1.0/attachments/'
Response Response Example
200 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"name": "Screenshot.png",
"resource_subtype": null,
"created_at": "2012-02-22T02:06:58.147Z",
"download_url": "https://s3.amazonaws.com/assets/123/Screenshot.png",
"host": "dropbox",
"parent": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"view_url": "https://www.dropbox.com/s/123/Screenshot.png"
}
}
Request
Path Params
attachment_gid
string
required
Responses
🟢200Successfully retrieved the record for a single attachment.
application/json
Body
data
object (AttachmentResponse)
optional
created_at
string <date-time>
read-onlyoptional
Example:
2012-02-22T02:06:58.147Z
download_url
string <uri> | null
read-onlyoptional
Note: May be null if the attachment is hosted by Box. If present, this URL may only be valid for two minutes from the time of retrieval. You should avoid persisting this URL somewhere and just refresh it on demand to ensure you do not keep stale URLs.
Example:
https://s3.amazonaws.com/assets/123/Screenshot.png
host
string
read-onlyoptional
asana
, dropbox
, gdrive
and box
.Example:
dropbox
parent
object
read-onlyoptional
view_url
string <uri> | null
read-onlyoptional
Example:
https://www.dropbox.com/s/123/Screenshot.png
gid
string
read-onlyoptional
Example:
12345
resource_type
string
read-onlyoptional
Example:
task
name
string
read-onlyoptional
Example:
Screenshot.png
resource_subtype
optional
asana
, dropbox
, gdrive
, onedrive
, box
, and external
.external
attachments are a beta feature currently limited to specific integrations.🟠400400
🟠401401
🟠402402
🟠403403
🟠404404
🟠424424
🔴500500
🔴501501
🔴503503
🔴504504
Modified at 2022-09-13 02:00:31