Machine API · Data API
GET /v1/requests/{request_id}/result
Returns the operation result directly once the request has succeeded. A 409 means the result is not ready; a 410 means the retention window has expired. The response is the normalized operation output, not a request wrapper.
Contract identity
- Contract version
- 1.0.0
- Last verified
- Public surface
- Machine API
- Executable operations
- 11 / 40
Verified means the contract snapshot on this date was read and matched to the page. It is not a promise that an operation is live for your workspace.
Goal and how to use this API
Retrieve the normalized output of an operation that completed successfully.
Practical example
After a request succeeds, validate this body against the selected operation’s output model and store the observation metadata you need.
Integration steps
- Define the user decision and target entity, then check input requirements and access.
- Prepare the parameters and model below, then call GET /v1/requests/{request_id}/result with this page’s authentication method.
- Inspect the HTTP status and its response model; preserve missing values and distinguish an error from an empty successful result.
Read retained results before expiry. A 409 is not ready; 410 means the retained result is gone and a new request may be necessary.
At a glance
- Audience
- Machine API
- Pagination
- No
- Asynchronous
- No
- Idempotency
- No
Authentication
Workspace bearer token: Authorization: Bearer $DATAPI_API_TOKEN. The token must have the permission required by this route.
Open the matching dashboard featureParameters and constraints
| Name | In | Type | Required | Constraints / default |
|---|---|---|---|---|
| request_id | path | string | Required | — |
Request body
This route has no declared request body.
Required means required within the containing object; an optional parent can still be omitted.
Request example
Examples are illustrative contract samples, not live results. Replace sample identifiers and inspect availability before executing a request.
curl --fail-with-body -X GET "https://api.datapi.ir/v1/requests/9c50c1ab-8ca2-4e94-a44c-c67374b9d607/result" \
-H "Authorization: Bearer $DATAPI_API_TOKEN" \
-H "Accept: application/json"Try it
Responses and errors
| Status | Description | Schema |
|---|---|---|
| 200 | Successful Response | object (fields not enumerated) |
| 400 | Invalid request fields or operation input | unspecified |
| 401 | Authentication required or expired | unspecified |
| 404 | Resource or operation not found | unspecified |
| 409 | Conflicting request state | unspecified |
| 410 | Stored result has expired | unspecified |
| 429 | Request allowance limit reached | unspecified |
{
"profile": {
"username": "sample_creator",
"followers_count": 12500,
"is_verified": false
}
}Complete response models
200 · application/json
The runtime contract does not enumerate this response. An example is not a guaranteed model; this response remains a contract documentation gap.
Full contract schema
{
"additionalProperties": true,
"title": "Response Get Request Result V1 Requests Request Id Result Get",
"type": "object"
}400 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}401 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}404 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}409 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}410 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}429 · application/problem+json
| Field | Type | Required | Constraints / default | Description |
|---|---|---|---|---|
| (body) | object | Required | — | Field description is not supplied by the contract. |
| code | string | Required | — | Field description is not supplied by the contract. |
| detail | string | Required | — | Field description is not supplied by the contract. |
| error | object | Required | — | Field description is not supplied by the contract. |
| error.error | object | Required | — | Field description is not supplied by the contract. |
| error.error.code | string | Required | — | Field description is not supplied by the contract. |
| error.error.details | unspecified | Optional | — | Field description is not supplied by the contract. |
| error.error.message | string | Required | — | Field description is not supplied by the contract. |
| error.error.request_id | string | Required | — | Field description is not supplied by the contract. |
| instance | string | Optional | — | Field description is not supplied by the contract. |
| request_id | string | Required | — | Field description is not supplied by the contract. |
| status | integer | Required | — | Field description is not supplied by the contract. |
| title | string | Required | — | Field description is not supplied by the contract. |
| type | string (uri) | Required | format: uri | Field description is not supplied by the contract. |
Full contract schema
{
"$ref": "#/components/schemas/DataPIProblem"
}Operational notes
- The base URL is https://api.datapi.ir. Prefer the exact path shown; do not add a trailing slash.
- Results are available only after success and can expire. Handle 409 (not ready) and 410 (expired) as normal states, not transport errors.
- Contract version 1. Responses use the stable DataPI error envelope; unknown optional fields should be ignored by clients.
Related pages
- All endpointsPublic HTTP API at api.datapi.ir. Authenticate with a workspace bearer token from the dashboard.
- Data operations and requestsThe core public machine API: operation directory, asynchronous request creation, request status and stored results.
- Related operation IDsRelated operation IDs
- Request lifecycleRequest lifecycle
- Error envelopeError envelope