Notes API

Get the contents of an attachment

GET /api/notes/:note_id/attachments/:id

Parameters

Name Description
note_id Note id
id Attachment id

Request

Headers

Host: example.org
Cookie: _session_id=WEk2SUsvMnJmSEJhcDhHY1NKamliZWVVSmEzL3pCNndxaEdvZXY2MWRKV3BpV0RpVXh6V254UDJuNVhsSzNxVkI3L0tNeTdlQko4OFpkYkN6L3A2MUhpdzQxY3lLQlVrVklrWUpNZjVkYzFNQ0VZTDY0S2hSMWFFYVNENEdQczZlb0tKVTdySS9oN3VwUHBnclFvS2Ntd1AxVXQ4ejUwSGZKQ3VwL0tJcWR1RGdVeXJwVlQ2TFN2TlpicUhmS1hjcWZRR050TTVFalVRSkRQWURmU1lGdDFoT0Y3c3ArWkVTK1BGOEt6TzZVNmdab0t0Vjc4UVV0NHJPNXhDb005M0FmVXFrRnlDNnYyNlRtT1FrQ0w1UHVGNjlrL0dmWDNtRHVkWjlrbi91bVNUa1c5QUhiTDZoellXOVZUMC9sTWVXYU5XcHJMbGdnUkFJaVc1bWpxdVFhVTdpSnRNK1dNQUFtNmFTY0VHQ3FxWVNhRGRMd2QzVWRlZlBLaWpjaDRHOWtNZE5CN09iVXRtcUxCWGdScHRHK0NjakFJWXBNclpnTDMzN1Y0ZGdYOD0tLWdUUm9nTndjaVNPYVoyM3Y0dmdKZ1E9PQ%3D%3D--7354af59b5d8023ac5053dd7d908570525a6506f

Route

GET /api/notes/1000057/attachments/1000001

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Disposition: inline; filename="workfile.sql"
Content-Transfer-Encoding: binary
Content-Type: text/plain
Cache-Control: private
Set-Cookie: _session_id=QUtrc3YzaG5reXhkNmIyM3Fsc1lNQ0J6NDhnQ09RSjU5aFM5eTM4c2pSZ1JxQ3BTNGhSdEMwbmVlZGswRG5GQXk2NG1uREM5SUVaU1lkTHVjc0JyL24wNjdFNFVQS3E0djNha084ZFllRGliZDNPSjhSc0JmblNBdGQrNi84bGt6VmNsUVFJbWFIMFA2a2xVYVRsSncxUEFSWVVUWjZ4QWxhZzU1cDNXRDBYN3UybHV1eFlPYmw5M08vRlF2TlByM2lGS0VvOHZZKzZQVHFxbzRDeVMwZ3JqUjVNZ1lXbjhqenlhOXBBdXozMzY4NWppSllwWHhlOVFZYkFFNXVLVjNQMGIySnp4aUljTmJTVVhjbHlVcXVVemdJVEhDMFI3VUpEcFlTeG5GWUJMWE9wMXF1cG5oSWJhS3ZJNitIb1JRVjRrbmFFMDZDOStSNUw3QXREQTBVUG9SUmZxQ1d3MkMwWnZPOFRUNEtsYVRjeDFKbTUrSkIvWjU3RVZteHBGNTdKMWdJV084dUVQbXRxTk5mUkRDWEZvYlhMbjBuWVJ2S21jTG1JejVMdG41eGlCR0xNcURqTDd3QWpIRmlQdC0tazdYck9JUnBETGh4bGdvbDkvK0c2Zz09--d447c976a8776cfba18a11bfc70a50384462dab3; path=/; HttpOnly
X-Request-Id: ed9a22fd-623a-4f96-a5ed-184c4909fdb1
X-Runtime: 0.031590
Content-Length: 45

Status

200 OK

Body