ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Endpoint to retrieve all credential assertions for a user within an organization.
This endpoint provides access to all credential assertions (issued credentials) for a specific user within an organization, with support for filtering.
Path Parameters: org (str): The organization/tenant identifier user_id (str): The user ID to retrieve assertions for
Query Parameters: course (str, optional): Filter by course ID include_revoked (bool, optional): Include revoked assertions (default: false) include_expired (bool, optional): Include expired assertions (default: false) exclude_main_tenant_assertions (bool, optional): Exclude assertions from the main tenant (default: false)
Returns: A paginated response using the AssertionSerializer format
Error Responses: 401 Unauthorized: If the user is not authenticated 403 Forbidden: If the user does not have permission to access this resource 404 Not Found: If the user or organization doesn't exist 500 Internal Server Error: If an unexpected error occurs
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions/
https://base.manager.iblai.app/api/credentials/orgs/{org}/users/{user_id}/assertions/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions/?course=string&exclude_main_tenant_assertions=true&include_expired=true&include_revoked=true&page=1&page_size=1' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "next": "string", "previous": "string", "count": 0, "num_pages": 0, "page_number": 0, "max_page_size": 0, "data": [ { … } ] }
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions-over-time/
https://base.manager.iblai.app/api/credentials/orgs/{org}/users/{user_id}/assertions-over-time/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions-over-time/?department_id=0&end_date=string&format=json&include_main_platform=true&start_date=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "data": { "property1": null, "property2": null }, "total": 0, "meta": { "total": 0, "change_range": 0, "change_last_seven_days": 0, "change_last_thirty_days": 0, "change_last_seven_days_percent": 0, "change_last_thirty_days_percent": 0, "change_range_percent": 0.1 } }
Request
Endpoint to retrieve and update a specific credential assertion.
This endpoint allows retrieving details of a specific credential assertion and updating its status (e.g., revoking it).
Path Parameters: org (str): The organization/tenant identifier user_id (str): The user ID making the request entity_id (str): The assertion entity ID
Methods: GET: Retrieve assertion details PUT: Update assertion status (e.g., revoke)
PUT Request Body: A JSON object containing:
- revoked (bool): Set to true to revoke the assertion
- revocationReason (str): Reason for revocation (required when revoking)
Returns: GET: A JSON response containing the assertion details using the AssertionSerializer format PUT: A JSON response containing the updated assertion using the AssertionSerializer format
Error Responses: 400 Bad Request: If the request data is invalid 401 Unauthorized: If the user is not authenticated 403 Forbidden: If the user does not have permission to access this resource 404 Not Found: If the assertion doesn't exist 500 Internal Server Error: If an unexpected error occurs
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}
https://base.manager.iblai.app/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/credentials/orgs/{org}/users/{user_id}/assertions/{entity_id}' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "entityId": "string", "issuedOn": "string", "credentialDetails": { "property1": "string", "property2": "string" }, "recipient": { "property1": "string", "property2": "string" }, "metadata": null, "course": { "property1": "string", "property2": "string" }, "program": { "property1": "string", "property2": "string" }, "narrative": "string", "revoked": true, "revocationReason": "string", "acceptance": "Unaccepted", "expires": "string" }