Retrieves the file processing status and download link for the processed file, if available.
where $self_url
is the URL displayed in the links.self
field in the response body of a successful Authorize request.
See Authorize for details.
Header Field | Value |
---|---|
apikey |
Required. Valid API key. See Authorization for details. |
curl -H "APIKEY: YOUR_APIKEY" $self_url
import requests, json, time
r = requests.get(auth_response["links"]["self"], headers={"APIKEY": apikey})
status_response = json.loads(r.text)
The response is JSON and contains information about the processing status of the file, file properties, and links.
If the file is still processing, only the links.self
field is displayed in the links
section.
If processing fails, the error
field is displayed in the response body.
Name | Type | Description |
---|---|---|
uid | string | Unique request ID |
status | string | Request status. Options are:
|
created | string | Date and timestamp the file was uploaded to the server. |
source_name | string | Original file name of the uploaded file. |
source_size | integer | Original size in bytes of the uploaded file. |
error | string | Error message if the file did not process successfully. Options are:
|
links | array | URLs for various actions. Possible keys are:
|
name | string | File name for the output file. |
type | string | Output file type. |
size | integer | Output file size in bytes. |
HTTP 200, OK
{
"uid": "abbc7c94-h11y-4r27-92fg-czd3362f464a",
"created": "2020-02-01T14:19:10.713Z",
"status": "new",
"source_name": "",
"source_size": 0,
"links": {
"self": "https://filewall.io/api/get/abbc7c94-h11y-4r27-92fg-czd3362f464a",
"upload": "https://filewall.io/api/upload/abcd_very_long_example"
}
}
HTTP 200, OK
{
"uid": "abbc7c94-h11y-4r27-92fg-czd3362f464a",
"created": "2020-02-01T14:19:10.713Z",
"status": "processing",
"source_name": "example.doc",
"source_size": 296419,
"links": {
"self": "https://filewall.io/api/get/abbc7c94-h11y-4r27-92fg-czd3362f464a",
},
}
HTTP 200, OK
{
"uid": "abbc7c94-h11y-4r27-92fg-czd3362f464a",
"created": "2020-02-01T14:19:10.713Z",
"status": "finished",
"source_name": "example.doc",
"source_size": 296419,
"links": {
"self": "https://filewall.io/api/get/abbc7c94-h11y-4r27-92fg-czd3362f464a",
"download": "https://filewall.io/api/download/abcd_very_long_example"
},
"name": "example.pdf",
"type": "PDF",
"size": 285435
}
HTTP 200, OK
{
"uid": "abbc7c94-h11y-4r27-92fg-czd3362f464a",
"created": "2020-02-01T14:19:10.713Z",
"status": "failed",
"source_name": "example.doc",
"source_size": 296419,
"links": {
"self": "https://filewall.io/api/get/abbc7c94-h11y-4r27-92fg-czd3362f464a",
},
"error": "processing_failed",
}
Eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
Code | Value | Description | Response Body Value |
---|---|---|---|
200 | Ok | Download successful. | |
400 | Bad Request | The file was not sent with the request. | invalid_request |