Apollo API Documentation

Files API calls


Get files

GET /projects/#{project_id}/files/#{page}

Returns a list of the 50 most recent files (attachments) in the given project that are visible to the authenticated user.The {page} parameter is optional. If there are older files not included in the response, the root response element will also have a “continued-at” attribute specifying the path where the next oldest 50 files can be retrieved.

Response

{
	"continued-at":"/projects/76887022/files/2",
	"files":[
		{
			"id":"57659647",
			"byte-size":"138376",
			...
		},
		{
			"id":"64175665",
			"byte-size":"183062",
			...
		},
		...
	]
}

Get files (within a category)

GET /projects/#{project_id}/cat/#{category_id}/files/#{page}

Returns a list of the 50 most recent files (attachments) in the given project that are visible to the authenticated user and that belongs to the specified category. The {page} parameter is optional. If there are older files not included in the response, the root response element will also have a “continued-at” attribute specifying the path where the next oldest 50 files can be retrieved.

Response

{
	"continued-at":"\/projects\/76887022\/files\/2",
	"files": [
		{
			"id":"57659647",
			"byte-size":"138376",
			...
		},
		{
			"id":"64175665",
			"byte-size":"183062",
			...
		},
		...
	]
}

Get file

GET /files/#{file_id}

Returns a single file identified by its integer ID.

Response

{
	"file": {
		"id":"57659647",
		"byte-size":"138376",
		...
	}
}

Download file

GET /download/#{file_id}

Download a file identified by its integer ID.

Response

Return the file itself.