Skip to main content
The Opigno Enterprise API provides queries retrieve the available achievements information, along with the user’s current earning status. Each badge represents a specific goal or condition that a user may fulfill such as completing an action, reaching a defined threshold, or maintaining a certain level of engagement.

Data Structure

Badge

An achievement object that might be earned by user.

BadgeEarningCriteria

A union of available criteria types that describes a condition for badge earning

BadgeEarningCriteriaLpComplete

Represents criteria for badge earning by Learning Path accomplishment.

BadgeEarningCriteriaLpPassed

Represents criteria for badge earning by successful Learning Path accomplishment.

BadgeEarningCriteriaLpEnroll

Represents criteria for badge earning by Learning Path enrollment.

BadgeEarningCriteriaSocialConnection

Represents criteria for badge earning by reaching the required number of established social connections.

BadgeEarningCriteriaSocialEngagement

Represents criteria for badge earning based on the total number of social posts created.

BadgeEarningCriteriaRegisteredFor

Represents criteria for badge earning based on the user’s registration duration, requiring the user account to exist for a specified period of time.

Queries

getBadge

This query is used to retrieve a single badge information.
  • You must have AUTHENTICATED scope to access badges. Anonymous users cannot retrieve badges data.
  • The API user context must be present and valid - otherwise, access is denied.
The following arguments can be used in the query:

getBadges

This query is used to retrieve the full badges list available and supports cursor-based pagination (after, before) or limit-based (first, last).
  • You must have AUTHENTICATED scope to access badges. Anonymous users cannot retrieve badges data.
  • The API user context must be present and valid - otherwise, access is denied.
The following arguments can be used in the query:
The getBadges query supports the same advanced features as other catalog queries:

Pagination

Learn how to efficiently navigate through large sets of badges using cursor-based pagination.

Authentication

Understand the authentication requirements and how to properly authenticate your requests.
Common error scenarios and solutions:
  • 401 Unauthorized: Ensure you’re using a valid authentication token with AUTHENTICATED scope
  • 403 Forbidden: Verify your user account has the necessary permissions to access badges data
  • Missing cursor parameter: When using after, you must also specify first
  • Invalid cursor: Ensure cursor values are valid and not expired
  • Conflicting parameters: Don’t use both first/after and last/before together