Skip to main content

/o/plugins-check

Endpoint

/o/plugins-check

Overview

Returns the current global feature-operation status marker derived from the plugins collection.

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions

  • Required permission: Global Admin.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYes (or use auth_token)API key for authentication.
auth_tokenStringNoAuth token as query parameter or countly-token header.

Examples

Check current feature-operation status

/o/plugins-check?api_key=YOUR_API_KEY

Response

Success Response

{
"result": "completed"
}

Alternative successful status responses:

{
"result": "busy"
}
{
"result": "failed"
}

Response Fields

FieldTypeDescription
resultStringGlobal status marker: completed, busy, or failed.

Error Responses

400 Bad Request

{
"result": "Missing parameter \"api_key\" or \"auth_token\""
}

400 Bad Request

{
"result": "Token not valid"
}

401 Unauthorized

{
"result": "User does not exist"
}

401 Unauthorized

{
"result": "User does not have right"
}

401 Unauthorized

{
"result": "User is locked"
}

401 Unauthorized

{
"result": "Token is invalid"
}

Behavior

Behavior Modes

ModeTriggerProcessing PathResponse Shape
Failed_id: "failed" marker exists, or marker-query errorReturns failed marker result.Wrapped object: { "result": "failed" }
BusyNo failed marker and _id: "busy" existsReturns busy marker result.Wrapped object: { "result": "busy" }
CompletedNo failed marker and no busy markerReturns completed marker result.Wrapped object: { "result": "completed" }

Limitations

  • Status is global and not per-feature.
  • Endpoint always reports marker state only; it does not include progress details.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.membersGlobal-admin validationReads authenticated user and global-admin status.
countly.pluginsStores global operation marker documentsReads marker documents with _id values failed and busy.