Description

Please, read first https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token.

Retrieve the status of a specific bulk process by providing its corresponding bulk ID. This method returns detailed information about the current state and progress of the operation.

The bulk process can transition through several distinct statuses, each representing a specific stage in its lifecycle. The possible values are:

  • received – The system has successfully accepted the bulk request through the REST API. At this stage, no processing has begun; the request has merely been acknowledged.

  • scheduled – The request has been divided into chunks and stored in the database. It is now waiting to be picked up and processed by the queue system.

  • processing – The queue has started executing the bulk operation. The system is actively working through the data and performing the required actions.

  • completed – The bulk process has finished successfully. All operations were carried out without errors, and the final results are available (until they expire based on the configured retention period).

  • failed – The bulk process encountered a fatal error that prevented it from completing. The system has halted execution, and the final status reflects this failure.

Endpoint URL:

 GET https://{your-endpoint-domain.com}/activityid/v1/user/bulk/{bulk_id}

Headers

ParameterDescriptionTypeRequired
Authorization“Bearer app_token” Literal text Bearer followed by app_token that is the token obtained from /oauth2/token endpointstringyes
Content-TypeThe type of content that will be used for requests to be JSONstringyes
AcceptThe type of content that will be used for responses to be JSONstringyes
Accept-LanguageLanguage for this requestLocaleno

Query string parameters

None

Response examples

Response OK

Bulk not found

ParameterDescriptionType
contentData receive with the response. A single object with a bulk status.struct
content.bulkIdId of the bulk process.string
content.statusCurrent state of the bulk process.string
content.createdOnCreation date.string
content.updatedOnLast update. The instant when the last status change was performed. string
content.progressPercentage of completionint
content.remainingAn estimate of the remaining time to complete the bulk processPeriod
resultCommon http resultstruct
result.statusHttp codeinteger
result.messageA description that describes the result of the operationstring

Response codes

CodeTypeDescription
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations
200SuccessReturn the bulk status of the process.