Getting a Specific Upload by ID
API Endpoint
https://dev.interrupted.me/upload/{id}
Method
Get
Description
This endpoint allows you to retrieve data about a specific file you have uploaded to our servers.
Headers
Below are the headers you need to send to the endpoint.
Header | Value | Description |
---|---|---|
Authorization | Bearer <token> | Required. Your API token. |
User-Agent | string | Required. Your user agent. |
Content-Type | application/json | Required. The content type. |
parameters
Below are the parameters you need to send to the endpoint.
Parameter | Value | Required | Description |
---|---|---|---|
id | string | Required. | The ID of the file you want to retrieve. |
Example Response
{
"id": 50,
"user_id": 2,
"file_name": "GAtU0JFE6dSW9Z5K.jpg",
"file_path": "https://devs.interrupted.me/dev/2/GAtU0JFE6dSW9Z5K.jpg",
"file_size": 17647,
"metadata": "{\"value1\":\"hello world\"}"
}
Getting a Specific Upload by File Name
API Endpoint
https://dev.interrupted.me/upload/file/{file_name}
Method
Get
Description
This endpoint allows you to retrieve a specific upload using the file_name of the upload.
Headers
Below are the headers you need to send to the endpoint.
Header | Value | Description |
---|---|---|
Authorization | Bearer <token> | Required. Your API token. |
User-Agent | string | Required. Your user agent. |
Content-Type | application/json | Required. The content type. |
parameters
Below are the parameters you need to send to the endpoint.
Parameter | Value | Required | Description |
---|---|---|---|
file_name | string | Required. | The file_name of the file you want to retrieve. |
Example Response
{
"file": {
"id": 134,
"user_id": 2,
"file_name": "YFhOFLuMs8XCGaev.gif",
"file_path": "dev/2/YFhOFLuMs8XCGaev.gif",
"file_size": 211304,
"metadata": "{\"value1\":\"hello world\"}"
},
"url": "https://devs.interrupted.me/dev/2/YFhOFLuMs8XCGaev.gif"
}