{ "openapi": "3.0.3", "info": { "title": "Accredible Credential API", "version": "25.08.0", "description": "The [Accredible](https://www.accredible.com/) Credential API allows you to create and interact with badges and certificates called [Accredible Credentials](https://www.credential.net/10000005).\n\nThere are 3 main objects in Accredible: Credentials, Groups and Designs.\n\n### Getting Started with the API - Video Walkthrough\n\n[![Getting Started with the API Video Walkthrough](https://cdn.accredible.com/api-overview.jpg)](https://us06web.zoom.us/clips/share/_p4jjy0LQ-WOaQPviLor1A)\n\n# Objects Overview\n## Credentials\n[Credentials](#tag/Credentials) are the core object in the API. They collect all of the data related to a course, training activity or achievement and the recipient/participant information.\n\nYou should create a credential for each achievement completion that a recipient has. For example if John Doe finishes the Programming 101 course we should create one credential to represent that. If John Doe achieves something else then he would need a new credential.\n\n## Groups\n\n[Groups](#tag/Groups) represent an achievement such as a course or qualification. They contain information about the achievement and have multiple Credentials attached to them.\n\nFor example you should create a group for the Introduction to Programming course. You'd provide the Course Name, Course Description and Course URL. In the future you can pass the name or ID of this group when creating a credential so that the credential is passed all the information relating to the achievement.\n\n## Designs\n\n[Designs](#tag/Designs) provide a visual specification for how a Credential should be rendered. Designs can be used across multiple Groups.\n\nFor example if we have three courses: Intro to Basic Programming, Intro to Advanced Programming and Intro to DevOps each of these may have the same design for their Credentials. When creating or updating their corresponding Groups you would attach the desired design accordingly.\n\n## Departments\n\n[Departments](#tag/Departments), if enabled for your account allow you to manage multiple, independent organization groups. Each Department is entirely separate with its own Designs, Groups, Branding, etc. You cannot share data between Departments except Billing and Administrators.\n\n## Attributes\n\n[Attributes](#tag/Attributes), are used to merge information with your badge or certificate designs and email templates. Attributes act as placeholders for information and can be added to certificate designs and email templates.\n\n# API Keys\n\nAPI keys are used as Authorization tokens in the header in all authenticated API endpoints. These Keys are managed in the [Accredible Dashboard](https://dashboard.accredible.com/). There are two types of API Keys, those that are account wide and work on all assets and those that are related to a specific department. API keys scoped to a specific department can only access the resources (Credentials, Groups, Designs etc.) belonging to that department.\n\n# Single sign-on options\n\n[Single sign-on](#tag/SSO) in addition to the student authentication provided by Accredible, you can also use single sign-on to authenticate your student into Accredible and they can directly sign-in.\n\nSSO is also available via our Integrations and via SAML 2.0.\n\n# Rate Limiting\n\nWe allow up to 2000 requests every 5 minutes from a single IP address, but some higher security endpoints have stricter rate limiting. Requests are counted in 30 second periods.\n\nIf you attempt to make requests more quickly than permitted by these rules, you may receive a `429 Too Many Requests` response from an endpoint.\n\n# Errors\n\nAccredible uses conventional HTTP response codes to indicate the success or failure of an API request. Most error response formats are consistent across API versions, with some differences in bulk operations.\n\n## HTTP Status Codes\n\n| Status Code | Description |\n| ----------- | ----------- |\n| **2xx** | Success |\n| 200 | OK - The request was successful |\n| 207 | Multi-Status - Partial success in batch operations (v2 only) |\n| **4xx** | Client Error |\n| 400 | Bad Request - Invalid request parameters |\n| 401 | Unauthorized - Invalid or missing API key |\n| 403 | Forbidden - Insufficient permissions |\n| 404 | Not Found - Resource not found |\n| 422 | Unprocessable Entity - Validation errors |\n| 429 | Too Many Requests - Rate limit exceeded |\n| **5xx** | Server Error |\n| 500 | Internal Server Error |\n\n## Common Error Formats\n\nMost API endpoints use these standard error formats:\n\n**Search Query Errors (400)**\n```json\n{\n \"code\": 400,\n \"message\": \"Sort order increasing is not supported\",\n \"status\": \"invalid_search_query\",\n \"errors\": {}\n}\n```\n\n**Unauthorized (401):**\n```\nHTTP Token: Access denied.\n```\n\n```json\n{\n \"success\": false,\n \"data\": \"Not enough or too many segments\"\n}\n```\n\n```json\n{\n \"success\": false,\n \"data\": \"Sorry, You are not authorized, visit accredible.com for this\"\n}\n```\n\n**Forbidden (403):**\n```json\n{\n \"errors\": \"Private Certificate, use key\"\n}\n```\n\n**Not Found (404):**\n```json\n{\n \"errors\": \"Doesn't exist\"\n}\n```\n\n```json\n{\n \"error\": \"Not found\"\n}\n```\n\n```json\n{\n \"success\": false,\n \"data\": \"Group does not exist\"\n}\n```\n\n**Unprocessable Entity (422):**\n```json\n{\n \"errors\": \"Invalid Group\"\n}\n```\n\n```json\n{\n \"errors\": \"Can not create credential without recipient data\"\n}\n```\n\n```json\n{\n \"errors\": {\n \"course_name\": [\n \"can't be blank\"\n ],\n \"course_description\": [\n \"can't be blank\"\n ]\n }\n}\n```\n\n**Internal Server Error (500):**\n```json\n{\n \"errors\": \"Internal server error\"\n}\n```\n\n## Bulk Operations Error Handling\n\n### V2 Bulk Create (Mixed Results Supported)\n\n**All Successful (200):**\n```json\n{\n \"results\": [\n {\n \"credential\": { /* credential object */ }\n },\n {\n \"credential\": { /* credential object */ }\n }\n ]\n}\n```\n\n**Mixed Success/Failure (207 Multi-Status):**\n```json\n{\n \"results\": [\n {\n \"credential\": { /* successful credential */ }\n },\n {\n \"error\": {\n \"code\": \"credential_invalid\",\n \"message\": \"The credential is not valid\",\n \"details\": [\n {\n \"property\": \"recipient_name\",\n \"reason\": \"blank\"\n }\n ]\n }\n },\n {\n \"credential\": { /* successful but unpublished */ },\n \"error\": {\n \"code\": \"insufficient_credits\",\n \"message\": \"The credential was created but not published\"\n }\n }\n ]\n}\n```\n\n**All Failed (422):**\n```json\n{\n \"results\": [\n {\n \"error\": {\n \"code\": \"credential_invalid\",\n \"message\": \"The credential is not valid\",\n \"details\": [\n {\n \"property\": \"course_name\",\n \"reason\": \"blank\"\n }\n ]\n }\n }\n ]\n}\n```\n" }, "servers": [ { "url": "https://api.accredible.com/", "description": "Production environment - US" }, { "url": "https://eu.api.accredible.com/", "description": "Production environment - EU" }, { "url": "https://sandbox.api.accredible.com/", "description": "Sandbox environment - Testing environment" } ], "paths": { "/v1/credentials": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credential": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "approve": { "type": "boolean" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "issued_on": { "type": "string" }, "course_link": { "type": "string" }, "custom_attributes": { "type": "object", "properties": { "Location": { "type": "string" } } }, "expired_on": { "nullable": true }, "group_name": { "type": "string" }, "group_id": { "type": "number" }, "url": { "type": "string" }, "encoded_id": { "type": "string" }, "private": { "type": "boolean" }, "seo_image": { "type": "string" }, "certificate": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "badge": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "evidence_items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "preview_image_url": { "type": "string", "nullable": true }, "link_url": { "type": "string", "nullable": true }, "type": { "type": "string" }, "string_object": { "type": "object", "properties": { "grade": { "type": "number" } }, "nullable": true }, "supplemental": { "type": "boolean" }, "position": { "type": "number" } }, "required": [ "id", "description", "preview_image_url", "link_url", "type", "string_object", "supplemental", "position" ] } }, "references": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "relationship": { "type": "string", "description": "Must be one of: \"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"." }, "supplemental": { "type": "boolean" }, "approve": { "type": "boolean" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "nullable": true }, "avatar": { "type": "string" } } } } } }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "string" }, "meta_data": { "type": "object", "properties": { "bar": { "type": "string" } } } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "nullable": true }, "url": { "type": "string" }, "id": { "type": "number" } } }, "meta_data": { "type": "object", "properties": { "foo": { "type": "string" } } } } } } }, "example": { "credential": { "id": "10000005", "name": "Example Certificate", "description": "This is an example description - you can write anything you want here.\n\nWe recommend describing the achievement.", "approve": true, "grade": null, "complete": true, "issued_on": "2014-08-14", "course_link": "https://www.accredible.com", "custom_attributes": { "Location": "London" }, "expired_on": null, "group_name": "Example Certificate Design", "group_id": 9549, "url": "https://www.credential.net/10000005", "encoded_id": "10000005", "private": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/10000005", "certificate": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_website_embed_image/certificate/10000005" } }, "badge": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_badge_image/10000005" } }, "evidence_items": [ { "id": 826, "description": "Final Grade", "preview_image_url": null, "link_url": null, "type": "grade", "string_object": { "grade": 80 }, "supplemental": false, "position": 1 }, { "id": 10, "description": "Presentation", "preview_image_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/previews/10/medium/open-uri20140316-15300-14jngj.jpg?1408372366", "link_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/files/10/original/open-uri20140316-15300-14jngj.pdf", "type": "file", "string_object": null, "supplemental": true, "position": 4 } ], "references": [ { "id": 2, "description": "Although he had difficulty with the course material at first, John learned a lot throughout the course. His final project was one of the best in his class.", "relationship": "mentored", "supplemental": false, "approve": true, "referee": { "name": "Example Person", "email": null, "avatar": "https://s3.amazonaws.com/staging_accredible_api_individuals/images/4/thumb/open-uri20140815-11960-1r0hppg?1408416647" } } ], "recipient": { "name": "Jordan Smith", "email": "jor@dan.org", "phone_number": "+14155552671", "id": "ct992", "meta_data": { "bar": "foo" } }, "issuer": { "name": "Example Organization", "description": null, "url": "http://www.accredible.com", "id": 4897 }, "meta_data": { "foo": "bar" } } } } } } }, "summary": "Create a New Credential", "operationId": "Create a New Credential", "description": "You create a Credential with optional EvidenceItems and References using this action. Please make sure that you've created a group on your dashboard before creating a Credential. If you haven't then [create a group in the dashboard](https://dashboard.accredible.com/issuer/dashboard/group/new?edit=information-and-appearance) or use [this API request](#tag/Groups).\n\nThis endpoint requires a JSON object containing a Credential.\n\n**Important:** If you don't have enough credits when attempting to create Credentials with this endpoint, your credentials will still be created in your account, but will not be published. This will save your data and prevent you from having to re-attempt your request later. You will be able to publish the created credentials in your account when you have the required credits\n\n[Creating Credentials - Video Walkthrough](https://www.loom.com/share/c7c47531a46d4a3f85abaf7413d9e636?sid=b3998a3d-dd4a-4289-84fc-db6df40efd5b)", "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "example": { "credential": { "recipient": { "name": "John Doe", "email": "person@example.com", "phone_number": "+14155552671", "id": "PK-17993", "meta_data": { "credential_batch": "772" } }, "name": "Credential Name", "group_name": "course1234", "group_id": 23, "description": null, "issued_on": "2014-06-14", "evidence_items": [ { "description": "Report card including all grades", "url": "http://www.awesomelearningexample.com/johndoe/reportcard", "category": "url" }, { "description": "Final essay", "file": "https://s3.amazonaws.com/accredible_api_evidence_items/files/12/original/open-uri20140316-15266-1m3by6h.jpeg", "category": "file" } ], "references": [ { "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "person2@example.com", "avatar": "https://placehold.it/100x100", "url": "https://any-url.com" }, "relationship": "managed" } ], "custom_attributes": { "custom_variables": "some value", "dob": "29 jan 1970" }, "meta_data": { "batch_id": "TK210" } } }, "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique ID of the credential. If you supply your own internal ID we'll use this as a reference for the Credential. If not we'll assign an ID." }, "recipient.name": { "type": "string", "description": "The name of the recipient the credential is issued to." }, "recipient.email": { "type": "string", "description": "The recipient's email address." }, "recipient.phone_number": { "type": "string", "description": "The recipient's phone number in E.164 format (e.g., +14155552671). This field is optional and available as part of the Growth plan. Phone numbers are used for SMS campaigns and are associated with the credential." }, "recipient.id": { "type": "string", "description": "The recipient's user ID as defined by your organization. This alllows you to easily map your recipients to their Credentials regardless of changes to their email address." }, "recipient.meta_data": { "type": "object", "properties": {}, "description": "You can use this parameter to attach key-value strings to the object. Meta data is useful for storing additional, structured information on an object." }, "group_id": { "type": "number", "description": "Group Id to which the credential should belong." }, "name": { "type": "string", "description": "The Credential/course name displayed to recipients. This is required if the Group the Credential belongs to doesn't have a Course Name set." }, "description": { "type": "string", "description": "The credential/course description displayed to recipients. This is required if the Group the Credential belongs to doesn't have a Course Description set." }, "custom_attributes": { "type": "object", "properties": {}, "description": "Custom variables to display on the Credential. These should be added to the design using the visual editor. Data should be formatted as a JSON hash where keys are the custom attribute names and the values are the values to be displayed on the Credential." }, "issued_on": { "type": "string", "description": "Date of issue, the default is when the credential is created. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "expired_on": { "type": "string", "description": "Date you would like the credential to expire on, null by default. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "complete": { "type": "boolean", "description": "Whether the achievement is complete or still in progress, true by default." }, "private": { "type": "boolean", "description": "Whether to make credential private. When it is set to `true`, the Credential will be private and visible only to its recipient who has signed into credential.net. If no value is set, the default value will be automatically assigned based on `Group.generate_private_credential` and `Department.generate_private_credential`. `Department.generate_private_credential` will be used as the default when `Group.generate_private_credential` is set to `null`. `Group.generate_private_credential` will override `Department.generate_private_credential` and be used as the default when it is set to `true` or `false`." }, "approve": { "type": "boolean", "description": "Whether to publish credential at the time of creation. By default this is true but settings at dashboard for sandbox_mode take precendence." }, "allow_supplemental_evidence": { "type": "boolean", "description": "Whether to allow recipients to add their own supplemental evidence to the Credential, true by default." }, "allow_supplemental_references": { "type": "boolean", "description": "Whether to allow recipients to add their own supplemental references to the credential, true by default." }, "evidence_items": { "description": "Evidence to add to this credential, that provide more information about how the recipient met the achievement. See Evidence Items for fields. Typically this would include work samples for a course." }, "references": { "description": "References to add to this Credential, that provide more information about how the recipient met the achievement. See References for fields. Typically this would be a peer, teacher or manager giving their feedback." }, "meta_data": { "type": "object", "properties": {}, "description": "You can use this parameter to attach key-value strings to the object. Meta data is useful for storing additional, structured information on an object." } }, "required": [ "recipient.name", "recipient.email", "group_id" ] } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"credential\": {\n \"recipient\": {\n \"name\": \"John Doe\",\n \"email\": \"person@example.com\",\n \"phone_number\": \"+14155552671\",\n \"id\": \"PK-17993\",\n \"meta_data\": {\n \"credential_batch\": \"772\"\n }\n },\n \"name\": \"Credential Name\",\n \"group_name\": \"course1234\",\n \"group_id\": 23,\n \"description\": null,\n \"issued_on\": \"2014-06-14\",\n \"evidence_items\": [\n {\n \"description\": \"Report card including all grades\",\n \"url\": \"http://www.awesomelearningexample.com/johndoe/reportcard\",\n \"category\": \"url\"\n },\n {\n \"description\": \"Final essay\",\n \"file\": \"https://s3.amazonaws.com/accredible_api_evidence_items/files/12/original/open-uri20140316-15266-1m3by6h.jpeg\",\n \"category\": \"file\"\n }\n ],\n \"references\": [\n {\n \"description\": \"John worked hard on this course and provided exemplary understanding of the core concepts\",\n \"referee\": {\n \"name\": \"Jane Doe\",\n \"email\": \"person2@example.com\",\n \"avatar\": \"https://placehold.it/100x100\",\n \"url\": \"https://any-url.com\"\n },\n \"relationship\": \"managed\"\n }\n ],\n \"custom_attributes\": {\n \"custom_variables\": \"some value\",\n \"dob\": \"29 jan 1970\"\n },\n \"meta_data\": {\n \"batch_id\": \"TK210\"\n }\n }\n}'" } ] } }, "/v1/credentials/bulk_create": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": {} } }, "summary": "Bulk Create credentials (v1)", "operationId": "Bulk Create credentials (v1)", "description": "Create multiple Credentials using this action. It requires a JSON object containing credentials in an array.\n\n**Important:** If you don't have enough credits when attempting to create Credentials with this endpoint, your credentials will still be created in your account, but will not be published. This will save your data and prevent you from having to re-attempt your request later. You will be able to publish the created credentials in your account when you have the required credits.\n\n**API Limits:** Each request can accommodate up to 100 credentials. Should you have a larger set of credentials to process, it's recommended to split them into batches of 100 and make successive calls to this API.\n\n[Bulk Creating Credentials - Video Walkthrough](https://www.loom.com/share/df043cb9d2b04140bcc53b633d232147?sid=005848bc-91a9-49cc-8f12-7f31c15245f8)", "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "example": { "credentials": [ { "recipient": { "name": "John Doe", "email": "student@example.com", "phone_number": "+14155552671" }, "group_id": 22625 }, { "recipient": { "name": "Jane Smith", "email": "jane@example.com", "phone_number": "+14155552672" }, "group_id": 62430 } ] }, "schema": { "type": "object", "properties": { "credentials": { "description": "Array of the credentials payload all field applicable which is in create credential endpoint." } }, "required": [ "credentials" ] } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/bulk_create\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"credentials\": [\n {\n \"recipient\": {\n \"name\": \"John Doe\",\n \"email\": \"student@example.com\",\n \"phone_number\": \"+14155552671\"\n },\n \"group_id\": 22625\n },\n {\n \"recipient\": {\n \"name\": \"Jane Smith\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+14155552672\"\n },\n \"group_id\": 62430\n }\n ]\n}'" } ] } }, "/v2/credentials/bulk_create": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": {} }, "207": { "description": "Multi-Status", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "results": { "type": "array", "items": { "type": "object", "properties": { "credential": { "type": "object", "properties": { "id": { "type": "number" }, "approve": { "type": "boolean" }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "number" }, "meta_data": { "nullable": true } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "description": { "type": "string" } } }, "name": { "type": "string" }, "description": { "type": "string" }, "issued_on": { "type": "string" }, "group_name": { "type": "string" }, "url": { "type": "string" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "expired_on": { "nullable": true }, "custom_attibutes": { "nullable": true }, "course_link": { "nullable": true }, "meta_data": { "nullable": true }, "evidence_items": { "type": "array", "items": {} }, "references": { "type": "array", "items": {} } } }, "errors": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } } } } } } } }, "example": { "results": [ { "credential": { "id": 1234, "approve": false, "recipient": { "name": "John Doe", "email": "person2@example.com", "phone_number": "+14155552671", "id": 232, "meta_data": null }, "issuer": { "name": "Course Provider", "url": "http://www.awesomelearningexample.com", "description": "Technical courses at an introductory level..." }, "name": "Credential Name", "description": "A detailed description of what the credential is for", "issued_on": "2014-06-14", "group_name": "Test Group", "url": "https://www.example.com/10000005", "grade": null, "complete": true, "expired_on": null, "custom_attibutes": null, "course_link": null, "meta_data": null, "evidence_items": [], "references": [] }, "errors": { "code": "insufficient_credits", "message": "The credential was created but not published." } } ] } } } }, "422": { "description": "Unprocessable Entity", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "results": { "type": "array", "items": { "type": "object", "properties": { "errors": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "details": { "type": "array", "items": { "type": "object", "properties": { "property": { "type": "string" }, "message": { "type": "string" } } } } } } } } } } }, "example": { "results": [ { "errors": { "code": "credential_invalid", "message": "The credential is not valid", "details": [ { "property": "recipient.email", "message": "has already been taken. Your group settings do not allow duplicates of this credential to be sent to the same email." } ] } } ] } } } } }, "summary": "Bulk Create Credentials (v2)", "operationId": "Bulk Create Credentials (v2)", "description": "**Important:** If you don't have enough credits when attempting to create Credentials with this endpoint, your credentials will still be created in your account, but will not be published.\nIt supports multi-status responses, where partial successes and errors are consolidated into a single structure with `status: 207 Multi-Status`.\nYou will be able to publish the created credentials in your account when you have the required credits.\n\n**API Limits:** Each request can accommodate up to 30 credentials. Should you have a larger set of credentials to process, it's recommended to split them into batches of 30 and make successive calls to this API.", "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "credentials": { "description": "Array of the credentials payload all field applicable which is in create credential endpoint." } }, "required": [ "credentials" ] }, "example": { "credentials": [ { "recipient": { "name": "John Doe", "email": "student@example.com", "phone_number": "+14155552671" }, "group_id": 22625 }, { "recipient": { "name": "Jane Smith", "email": "jane@example.com", "phone_number": "+14155552672" }, "group_id": 62430 } ] } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v2/credentials/bulk_create\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"credentials\": [\n {\n \"recipient\": {\n \"name\": \"John Doe\",\n \"email\": \"student@example.com\",\n \"phone_number\": \"+14155552671\"\n },\n \"group_id\": 22625\n },\n {\n \"recipient\": {\n \"name\": \"Jane Smith\",\n \"email\": \"jane@example.com\",\n \"phone_number\": \"+14155552672\"\n },\n \"group_id\": 62430\n }\n ]\n}'" } ] } }, "/v1/credentials/{id}": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credential": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "approve": { "type": "boolean" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "issued_on": { "type": "string" }, "course_link": { "type": "string" }, "custom_attributes": { "type": "object", "properties": { "Location": { "type": "string" } } }, "expired_on": { "nullable": true }, "group_name": { "type": "string" }, "group_id": { "type": "number" }, "url": { "type": "string" }, "encoded_id": { "type": "string" }, "private": { "type": "boolean" }, "seo_image": { "type": "string" }, "certificate": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "badge": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "evidence_items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "preview_image_url": { "type": "string", "nullable": true }, "link_url": { "type": "string", "nullable": true }, "type": { "type": "string" }, "string_object": { "type": "object", "properties": { "grade": { "type": "number" } }, "nullable": true }, "supplemental": { "type": "boolean" }, "position": { "type": "number" } }, "required": [ "id", "description", "preview_image_url", "link_url", "type", "string_object", "supplemental", "position" ] } }, "references": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "relationship": { "type": "string" }, "supplemental": { "type": "boolean" }, "approve": { "type": "boolean" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "nullable": true }, "avatar": { "type": "string" } } } } } }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "string" }, "meta_data": { "nullable": true } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "nullable": true }, "url": { "type": "string" }, "id": { "type": "number" } } }, "meta_data": { "nullable": true } } } } }, "example": { "credential": { "id": "10000005", "name": "Example Certificate", "description": "This is an example description - you can write anything you want here.\n\nWe recommend describing the achievement.", "approve": true, "grade": null, "complete": true, "issued_on": "2014-08-14", "course_link": "https://www.accredible.com", "custom_attributes": { "Location": "London" }, "expired_on": null, "group_name": "Example Certificate Design", "group_id": 9549, "url": "https://www.credential.net/10000005", "encoded_id": "10000005", "private": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/10000005", "certificate": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_website_embed_image/certificate/10000005" } }, "badge": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_badge_image/10000005" } }, "evidence_items": [ { "id": 826, "description": "Final Grade", "preview_image_url": null, "link_url": null, "type": "grade", "string_object": { "grade": 80 }, "supplemental": false, "position": 1 }, { "id": 10, "description": "Presentation", "preview_image_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/previews/10/medium/open-uri20140316-15300-14jngj.jpg?1408372366", "link_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/files/10/original/open-uri20140316-15300-14jngj.pdf", "type": "file", "string_object": null, "supplemental": true, "position": 4 } ], "references": [ { "id": 2, "description": "Although he had difficulty with the course material at first, John learned a lot throughout the course. His final project was one of the best in his class.", "relationship": "mentored", "supplemental": false, "approve": true, "referee": { "name": "Example Person", "email": null, "avatar": "https://s3.amazonaws.com/staging_accredible_api_individuals/images/4/thumb/open-uri20140815-11960-1r0hppg?1408416647" } } ], "recipient": { "name": "Jordan Smith", "email": "jor@dan.org", "phone_number": "+14155552671", "id": "dw373", "meta_data": null }, "issuer": { "name": "Example Organization", "description": null, "url": "http://www.accredible.com", "id": 4897 }, "meta_data": null } } } } } }, "summary": "View a Credential", "operationId": "View a Credential", "description": "[View Credentials - Video Walkthrough](https://www.loom.com/share/9724ce5eb0694dfab0c03f5b70d8a3f3?sid=cea2c757-5031-4ff1-b33d-91b361fd0cdf)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "ID of the Credential in the form of an integer or string for the particular Credential requested.", "required": true, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/credentials/12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] }, "put": { "responses": { "200": { "description": "OK", "headers": {}, "content": {} } }, "summary": "Update a Credential", "operationId": "Update a Credential", "description": "[Updating Credentials - Video Walkthrough](https://www.loom.com/share/4940d9cf43da43dc870f40ac4dd3831f?sid=ebfe460c-01a1-40a0-b5fe-6e8d13386f54)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "The unique ID of the credential. If you supply your own internal ID we'll use this as a reference for the Credential. If not we'll assign an ID.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "example": { "credential": { "approve": true, "recipient": { "phone_number": "+14155552671" } } }, "schema": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique ID of the credential. If you supply your own internal ID we'll use this as a reference for the Credential. If not we'll assign an ID." }, "recipient.name": { "type": "string", "description": "The name of the recipient the credential is issued to." }, "recipient.email": { "type": "string", "description": "The recipient's email address." }, "recipient.phone_number": { "type": "string", "description": "The recipient's phone number in E.164 format (e.g., +14155552671). This field is optional and available as part of the Growth plan. Phone numbers are used for SMS campaigns and are associated with the credential." }, "recipient.id": { "type": "string", "description": "The recipient's user ID as defined by your organization. This alllows you to easily map your recipients to their Credentials regardless of changes to their email address." }, "recipient.meta_data": { "type": "object", "properties": {}, "description": "You can use this parameter to attach key-value strings to the object. Meta data is useful for storing additional, structured information on an object." }, "group_id": { "type": "number", "description": "Group Id to which the credential should belong." }, "name": { "type": "string", "description": "The Credential/course name displayed to recipients. This is required if the Group the Credential belongs to doesn't have a Course Name set." }, "description": { "type": "string", "description": "The credential/course description displayed to recipients. This is required if the Group the Credential belongs to doesn't have a Course Description set." }, "custom_attributes": { "type": "object", "properties": {}, "description": "Custom variables to display on the Credential. These should be added to the design using the visual editor. Data should be formatted as a JSON hash where keys are the custom attribute names and the values are the values to be displayed on the Credential." }, "issued_on": { "type": "string", "description": "Date of issue, the default is when the credential is created. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "expired_on": { "type": "string", "description": "Date you would like the credential to expire on, null by default. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "complete": { "type": "boolean", "description": "Whether the achievement is complete or still in progress, true by default." }, "allow_supplemental_evidence": { "type": "boolean", "description": "Whether to allow recipients to add their own supplemental evidence to the Credential, true by default." }, "allow_supplemental_references": { "type": "boolean", "description": "Whether to allow recipients to add their own supplemental references to the credential, true by default." }, "evidence_items": { "description": "Evidence to add to this credential, that provide more information about how the recipient met the achievement. See Evidence Items for fields. Typically this would include work samples for a course." }, "references": { "description": "References to add to this Credential, that provide more information about how the recipient met the achievement. See References for fields. Typically this would be a peer, teacher or manager giving their feedback." }, "meta_data": { "type": "object", "properties": {}, "description": "You can use this parameter to attach key-value strings to the object. Meta data is useful for storing additional, structured information on an object." } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X PUT \\\n \"https://api.accredible.com/v1/credentials/12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"credential\": {\n \"approve\": true,\n \"recipient\": {\n \"phone_number\": \"+14155552671\"\n }\n }\n}'" } ] }, "delete": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credential": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "approve": { "type": "boolean" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "issued_on": { "type": "string" }, "course_link": { "type": "string" }, "custom_attributes": { "type": "object", "properties": { "Location": { "type": "string" } } }, "expired_on": { "nullable": true }, "group_name": { "type": "string" }, "group_id": { "type": "number" }, "url": { "type": "string" }, "encoded_id": { "type": "string" }, "private": { "type": "boolean" }, "seo_image": { "type": "string" }, "certificate": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "badge": { "type": "object", "properties": { "image": { "type": "object", "properties": { "preview": { "type": "string" } } } } }, "evidence_items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "preview_image_url": { "type": "string", "nullable": true }, "link_url": { "type": "string", "nullable": true }, "type": { "type": "string" }, "string_object": { "type": "object", "properties": { "grade": { "type": "number" } }, "nullable": true }, "supplemental": { "type": "boolean" }, "position": { "type": "number" } }, "required": [ "id", "description", "preview_image_url", "link_url", "type", "string_object", "supplemental", "position" ] } }, "references": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "relationship": { "type": "string" }, "supplemental": { "type": "boolean" }, "approve": { "type": "boolean" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "nullable": true }, "avatar": { "type": "string" } } } } } }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "string" }, "meta_data": { "nullable": true } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "nullable": true }, "url": { "type": "string" }, "id": { "type": "number" } } }, "meta_data": { "nullable": true } } } } }, "example": { "credential": { "id": "10000005", "name": "Example Certificate", "description": "This is an example description - you can write anything you want here.\n\nWe recommend describing the achievement.", "approve": true, "grade": null, "complete": true, "issued_on": "2014-08-14", "course_link": "https://www.accredible.com", "custom_attributes": { "Location": "London" }, "expired_on": null, "group_name": "Example Certificate Design", "group_id": 9549, "url": "https://www.credential.net/10000005", "encoded_id": "10000005", "private": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/10000005", "certificate": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_website_embed_image/certificate/10000005" } }, "badge": { "image": { "preview": "https://api.accredible.com/v1/frontend/credential_badge_image/10000005" } }, "evidence_items": [ { "id": 826, "description": "Final Grade", "preview_image_url": null, "link_url": null, "type": "grade", "string_object": { "grade": 80 }, "supplemental": false, "position": 1 }, { "id": 10, "description": "Presentation", "preview_image_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/previews/10/medium/open-uri20140316-15300-14jngj.jpg?1408372366", "link_url": "https://s3.amazonaws.com/staging_accredible_api_evidence_items/files/10/original/open-uri20140316-15300-14jngj.pdf", "type": "file", "string_object": null, "supplemental": true, "position": 4 } ], "references": [ { "id": 2, "description": "Although he had difficulty with the course material at first, John learned a lot throughout the course. His final project was one of the best in his class.", "relationship": "mentored", "supplemental": false, "approve": true, "referee": { "name": "Example Person", "email": null, "avatar": "https://s3.amazonaws.com/staging_accredible_api_individuals/images/4/thumb/open-uri20140815-11960-1r0hppg?1408416647" } } ], "recipient": { "name": "Jordan Smith", "email": "jor@dan.org", "id": "net772", "meta_data": null }, "issuer": { "name": "Example Organization", "description": null, "url": "http://www.accredible.com", "id": 4897 }, "meta_data": null } } } } } }, "summary": "Delete a Credential", "operationId": "Delete a Credential", "description": "[Deleting Credentials - Video Walkthrough](https://www.loom.com/share/5cf48b55e1a74803bb9ad3ce87bdc657?sid=44bb79e9-47ee-4070-9e03-bc6a68957789)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "ID of the credential for the particular Credential requested.", "required": true, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X DELETE \\\n \"https://api.accredible.com/v1/credentials/12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/all_credentials": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credentials": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "description": { "type": "string" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "issued_on": { "type": "string" }, "allow_supplemental_references": { "nullable": true }, "allow_supplemental_evidence": { "nullable": true }, "course_link": { "type": "string" }, "custom_attributes": { "nullable": true }, "expired_on": { "nullable": true }, "group_name": { "type": "string" }, "private": { "type": "boolean" }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "number" }, "meta_data": { "type": "object", "properties": { "zip_code": { "type": "string" } }, "nullable": true } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "url": { "type": "string" } } }, "meta_data": { "type": "object", "properties": { "foo": { "type": "string" } }, "nullable": true } }, "required": [ "id", "name", "description", "grade", "complete", "issued_on", "allow_supplemental_references", "allow_supplemental_evidence", "course_link", "custom_attributes", "expired_on", "group_name", "private", "recipient", "issuer", "meta_data" ] } }, "meta": { "type": "object", "properties": { "current_page": { "type": "number" }, "next_page": { "type": "number" }, "prev_page": { "nullable": true }, "total_pages": { "type": "number" }, "total_count": { "type": "number" } } } } }, "example": { "credentials": [ { "id": 10250009, "name": "TestCourse", "description": "Test Description", "grade": null, "complete": true, "issued_on": "2015-07-03", "allow_supplemental_references": null, "allow_supplemental_evidence": null, "course_link": "http://example.com", "custom_attributes": null, "expired_on": null, "group_name": "test", "private": false, "recipient": { "name": "John Doe", "email": "person2@example.com", "id": 772, "meta_data": { "zip_code": "10459" } }, "issuer": { "name": "Example Provider", "description": " Best place to manage online learning", "url": "http://www.accredible.com" }, "meta_data": { "foo": "bar" } }, { "id": 10250010, "name": "TestCourse", "description": "Test Description", "grade": null, "complete": true, "issued_on": "2015-07-03", "allow_supplemental_references": null, "allow_supplemental_evidence": null, "course_link": "http://example.com", "custom_attributes": null, "expired_on": null, "group_name": "test", "private": false, "recipient": { "name": "John Doe", "email": "person2@example.com", "id": 883, "meta_data": null }, "issuer": { "name": "Example Provider", "description": " Best place to manage online learning", "url": "http://www.accredible.com" }, "meta_data": null } ], "meta": { "current_page": 1, "next_page": 2, "prev_page": null, "total_pages": 795, "total_count": 1590 } } } } } }, "summary": "View many Credentials", "operationId": "View many Credentials", "description": "**DEPRECATED:** This endpoint is deprecated.\n\n[View Many Credentials - Video Walkthrough](https://www.loom.com/share/520347485c3b44c7b64daeb17f1b307b?sid=9deb6be0-e636-4a03-ac2a-3dc831b1e3ad)", "deprecated": true, "tags": [ "Credentials" ], "parameters": [ { "name": "group_id", "in": "query", "description": "Limit the returned Credentials to a specific group ID.", "schema": { "type": "string" } }, { "name": "email", "in": "query", "description": "Limit the returned Credentials to a specific recipient's email address.", "schema": { "type": "string" } }, { "name": "recipient_id", "in": "query", "description": "Limit the returned Credentials to a specific recipient user identifier (ID) you set whilst creating Credentials.", "schema": { "type": "string" } }, { "name": "license_id", "in": "query", "description": "Limit the returned Credential to a specific credential id you set whilst creating credential.", "schema": { "type": "string" } }, { "name": "start_date", "in": "query", "description": "Date after which credentials issued should be return. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)", "schema": { "type": "string" } }, { "name": "end_date", "in": "query", "description": "Date before which credetials issued should be return. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)", "schema": { "type": "string" } }, { "name": "start_updated_date", "in": "query", "description": "Date after which Credentials updated should be returned. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)", "schema": { "type": "string" } }, { "name": "end_updated_date", "in": "query", "description": "Date before which Credentials updated should be returned. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)", "schema": { "type": "string" } }, { "name": "page_size", "in": "query", "description": "The pagination response size, default of 50.", "schema": { "type": "number" } }, { "name": "page", "in": "query", "description": "The pagination page.", "schema": { "type": "number" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/all_credentials\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/credentials/search": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credentials": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "description": { "type": "string" }, "grade": { "nullable": true }, "complete": { "type": "boolean" }, "issued_on": { "type": "string" }, "allow_supplemental_references": { "nullable": true }, "allow_supplemental_evidence": { "nullable": true }, "course_link": { "type": "string" }, "custom_attributes": { "nullable": true }, "expired_on": { "nullable": true }, "group_name": { "type": "string" }, "private": { "type": "boolean" }, "seo_image": { "type": "string" }, "encoded_id": { "type": "string" }, "recipient": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "number" }, "meta_data": { "type": "object", "properties": { "zip_code": { "type": "string" } }, "nullable": true } } }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "url": { "type": "string" } } }, "meta_data": { "type": "object", "properties": { "foo": { "type": "string" } }, "nullable": true } }, "required": [ "id", "name", "description", "grade", "complete", "issued_on", "allow_supplemental_references", "allow_supplemental_evidence", "course_link", "custom_attributes", "expired_on", "group_name", "private", "recipient", "issuer", "meta_data" ] } }, "meta": { "type": "object", "properties": { "current_page": { "type": "number" }, "next_page": { "type": "number" }, "prev_page": { "nullable": true }, "total_pages": { "type": "number" }, "total_count": { "type": "number" } } } } }, "example": { "credentials": [ { "id": 10250009, "name": "TestCourse", "description": "Test Description", "grade": null, "complete": true, "issued_on": "2015-07-03", "allow_supplemental_references": null, "allow_supplemental_evidence": null, "course_link": "http://example.com", "custom_attributes": null, "expired_on": null, "group_name": "test", "private": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/10250009", "encoded_id": "gqm1e46g", "recipient": { "name": "John Doe", "email": "person2@example.com", "id": 772, "meta_data": { "zip_code": "10459" } }, "issuer": { "name": "Example Provider", "description": " Best place to manage online learning", "url": "http://www.accredible.com" }, "meta_data": { "foo": "bar" } }, { "id": 10250010, "name": "TestCourse", "description": "Test Description", "grade": null, "complete": true, "issued_on": "2015-07-03", "allow_supplemental_references": null, "allow_supplemental_evidence": null, "course_link": "http://example.com", "custom_attributes": null, "expired_on": null, "group_name": "test", "private": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/10250010", "encoded_id": "gqm1e36g", "recipient": { "name": "John Doe", "email": "person2@example.com", "id": 883, "meta_data": null }, "issuer": { "name": "Example Provider", "description": " Best place to manage online learning", "url": "http://www.accredible.com" }, "meta_data": null } ], "meta": { "current_page": 1, "next_page": 2, "prev_page": null, "total_pages": 795, "total_count": 1590 } } } } } }, "summary": "Search for Credentials (v1)", "operationId": "Search for Credentials (v1)", "description": "**DEPRECATED:** This is a deprecated API. Please consider switching to the updated v2 Search API for better performance and support.\n\n**Rate Limiting:** For this deprecated endpoint, there is a strict rate limit of 100 requests per 60 seconds, per IP address.", "deprecated": true, "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "example": { "group_id": "example", "recipient.name": "John Doe", "recipient.email": "person@example.com", "recipient.id": "example", "recipient.meta_data": { "zip_code": "10459" }, "license_id": "example", "meta_data": { "example": "value" }, "start_date": "2022-01-01", "end_date": "2022-12-31", "start_updated_date": "2022-01-01", "end_updated_date": "2022-12-31", "page_size": 50, "page": 1 }, "schema": { "type": "object", "properties": { "group_id": { "type": "string", "description": "Limit the returned Credentials to a specific group ID." }, "recipient.name": { "type": "string", "description": "Limit the returned Credentials to a recipient's name" }, "recipient.email": { "type": "string", "description": "Limit the returned Credentials to a specific recipient's email address." }, "recipient.id": { "type": "string", "description": "Limit the returned Credentials to a specific recipient user identifier (ID) you set whilst creating Credentials." }, "recipient.meta_data": { "type": "object", "properties": { "zip_code": { "type": "string" } }, "description": "String key/values for client's own data on recipient" }, "license_id": { "type": "string", "description": "Limit the returned Credential to a specific credential id you set whilst creating credential." }, "meta_data": { "type": "object", "properties": { "example": { "type": "string" } }, "description": "String key/values for client's own data on credential" }, "start_date": { "type": "string", "description": "Date after which credentials issued should be return. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "end_date": { "type": "string", "description": "Date before which credetials issued should be return. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "start_updated_date": { "type": "string", "description": "Date after which Credentials updated should be returned. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "end_updated_date": { "type": "string", "description": "Date before which Credetials updated should be returned. Format: YYYY-MM-DD (DD/MM/YYYY also works but is deprecated)" }, "page_size": { "type": "number", "description": "The pagination response size, default of 50." }, "page": { "type": "number", "description": "The pagination page." } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/search\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"group_id\": \"example\",\n \"recipient.name\": \"John Doe\",\n \"recipient.email\": \"person@example.com\",\n \"recipient.id\": \"example\",\n \"recipient.meta_data\": {\n \"zip_code\": \"10459\"\n },\n \"license_id\": \"example\",\n \"meta_data\": {\n \"example\": \"value\"\n },\n \"start_date\": \"2022-01-01\",\n \"end_date\": \"2022-12-31\",\n \"start_updated_date\": \"2022-01-01\",\n \"end_updated_date\": \"2022-12-31\",\n \"page_size\": 50,\n \"page\": 1\n}'" } ] } }, "/v2/credentials/search": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "credentials": { "type": "array", "items": { "type": "object", "properties": { "encoded_id": { "type": "string" }, "private": { "type": "boolean" }, "recipient_opened": { "type": "boolean" }, "seo_image": { "type": "string" }, "published_on": { "type": "string", "nullable": true }, "recipient_email": { "type": "string" }, "created_at": { "type": "string" }, "recipient_engaged": { "type": "boolean" }, "uuid": { "type": "string" }, "custom_attributes": { "type": "object", "nullable": true }, "issuer_id": { "type": "number" }, "recipient_meta_data": { "type": "object", "nullable": true }, "updated_at": { "type": "string" }, "approve": { "type": "boolean" }, "license_id": { "type": "string", "nullable": true }, "grade": { "nullable": true }, "meta_data": { "type": "object", "nullable": true }, "name": { "type": "string" }, "issued_on": { "type": "string" }, "id": { "type": "number" }, "recipient_name": { "type": "string" }, "group": { "type": "object", "properties": { "course_name": { "type": "string" }, "badge_design_id": { "type": "number", "nullable": true }, "certificate_design_id": { "type": "number", "nullable": true }, "name": { "type": "string" }, "phone_number": { "type": "string", "nullable": true }, "id": { "type": "number" } } }, "expired_on": { "type": "string", "nullable": true }, "recipient_id": { "type": "string", "nullable": true } } } }, "meta": { "type": "object", "properties": { "count": { "type": "number" }, "from": { "type": "number" }, "size": { "type": "number" }, "cursor": { "type": "string" } } } } }, "example": { "credentials": [ { "encoded_id": "qwerty123", "private": false, "recipient_opened": false, "seo_image": "https://api.accredible.com/v1/frontend/credential_seo_image/1234", "published_on": "2025-10-31", "recipient_email": "john.doe@mailinator.test", "created_at": "2025-10-31T08:11:16.390Z", "recipient_engaged": false, "uuid": "a8307173-e4e6-4eb4-991c-56ebe80g4623", "custom_attributes": {}, "issuer_id": 1234, "recipient_meta_data": {}, "updated_at": "2025-10-31T08:11:16.390Z", "approve": true, "license_id": null, "grade": null, "meta_data": {}, "name": "Group / Course Name", "issued_on": "2025-10-31", "id": 12345678, "recipient_name": "John Doe", "group": { "course_name": "Group / Course Name", "badge_design_id": null, "certificate_design_id": 1234, "name": "COURSE_NAME", "id": 12345 }, "expired_on": null, "recipient_id": null } ], "meta": { "count": 1000, "from": 0, "size": 50, "cursor": "WzEsMC4wXQ==" } } } } } }, "summary": "Search for Credentials (v2)", "operationId": "Search for Credentials (v2)", "description": "This is a faster alternative to the v1 Search API. It also supports operations on the query fields which can allow you to form more complex queries.\n\nFollowing operations are **supported based on the field**. You can also combine operations on multiple fields:\n\n| Operation | Description | Example |\n|-----------|-------------|----------|\n| `eq` | Exact match (default, if nothing specified). | `{\"group.id[eq]\": 1}` or `{\"group.id\": 1}` - Both yield the same result. |\n| `in` | Allows an array of values. | `{\"group.id[in]\": [1, 2]}` |\n| `lt` | Less than. | `{\"issued_on[lt]\": \"2023-12-31\"}` |\n| `gt` | Greater than. | `{\"issued_on[gt]\": \"2023-01-01\"}` |\n| `lte` | Less than equal to. | `{\"expired_on[lte]\": \"2023-12-31\"}` |\n| `gte` | Greater than equal to. | `{\"expired_on[gte]\": \"2023-01-01\"}` |\n\n**Note:** Offset-based pagination using `page.from` + `page.size` supports a maximum of 10,000 results. To retrieve results beyond this limit, use cursor-based pagination with `page.cursor` and `page.size`.", "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "examples": { "Offset-based pagination": { "value": { "query": { "group.id[in]": [1, 2], "recipient_name": "John Doe", "approve": true, "recipient_email": "person@example.com", "recipient_id": "example", "recipient_meta_data": {"example": "value"}, "license_id": "example", "meta_data": {"example": "value"}, "custom_attributes": {"example": "value"}, "issued_on[gte]": "2023-01-01", "issued_on[lt]": "2024-01-01", "updated_at[gte]": "2023-01-01", "created_at[gte]": "2023-01-01" }, "sort": { "issued_on": "desc" }, "page": { "from": 0, "size": 50 } } }, "Cursor-based pagination": { "value": { "query": { "group.id[in]": [1, 2], "recipient_name": "John Doe", "approve": true, "recipient_email": "person@example.com", "recipient_id": "example", "recipient_meta_data": {"example": "value"}, "license_id": "example", "meta_data": {"example": "value"}, "custom_attributes": {"example": "value"}, "issued_on[gte]": "2023-01-01", "issued_on[lt]": "2024-01-01", "updated_at[gte]": "2023-01-01", "created_at[gte]": "2023-01-01" }, "sort": { "issued_on": "desc" }, "page": { "cursor": "WzEsMC4wXQ==", "size": 50 } } } }, "schema": { "type": "object", "required": [ "query" ], "properties": { "query": { "type": "object", "properties": { "uuid": { "type": "string", "description": "Limit the returned credentials to a specific UUID.\n\nSupported operations - `eq`, `in`" }, "group.id": { "type": "string", "description": "Limit the returned credentials to a specific group ID.\n\nSupported operations - `eq`, `in`" }, "recipient_name": { "type": "string", "description": "Limit the returned credentials to a recipient's name.\n\nSupported operations - `eq`, `in`" }, "approve": { "type": "boolean", "description": "Return only published or unpublished credentials by specifying the desired value (true/false). If not specified, all credentials will be returned.\n\nSupported operations - `eq`" }, "recipient_email": { "type": "string", "description": "Limit the returned credentials to a specific recipient's email address.\n\nSupported operations - `eq`, `in`" }, "recipient_id": { "type": "string", "description": "Limit the returned credentials to a specific recipient user identifier (ID) you set whilst creating credentials.\n\nSupported operations - `eq`, `in`" }, "recipient_meta_data": { "type": "object", "properties": {}, "description": "String key/values for client's own data on the recipient.\n\nSupported operations - none" }, "license_id": { "type": "string", "description": "Limit the returned credentials to a specific credential id you set whilst creating the credential.\n\nSupported operations - `eq`, `in`" }, "meta_data": { "type": "object", "properties": {}, "description": "String key/values for client's own data on the credential.\n\nSupported operations - none" }, "custom_attributes": { "type": "object", "properties": {}, "description": "String key/values for client's own data on the credential.\n\nSupported operations - none" }, "issued_on": { "type": "string", "description": "Date on which the credentials have been issued. Format: YYYY-MM-DD\n\nSupported operations - `eq`, `in`, `lt`, `lte`, `gt`, `gte`" }, "expired_on": { "type": "string", "description": "Date on which the credentials will expire. Format: YYYY-MM-DD\n\nSupported operations - `eq`, `in`, `lt`, `lte`, `gt`, `gte`" }, "updated_at": { "type": "string", "description": "Date on which the credentials have been updated. Format: YYYY-MM-DD\n\nSupported operations - `eq`, `in`, `lt`, `lte`, `gt`, `gte`" }, "created_at": { "type": "string", "description": "Date on which the credentials have been created. Format: YYYY-MM-DD\n\nSupported operations - `eq`, `in`, `lt`, `lte`, `gt`, `gte`" } } }, "sort": { "type": "object", "properties": { "String key/value pair for sorting based on a field and order.": { "type": "string", "description": "Supported keys - `id`, `recipient_name`, `group.name`, `issued_on` and `expired_on`.\nSupported values - `asc`, `desc`" } } }, "page": { "type": "object", "properties": { "from": { "type": "integer", "description": "Number of records to skip (offset-based pagination). Limited to the first 10,000 results. Cannot be used together with `cursor`." }, "size": { "type": "integer", "description": "The number of records to be returned. Default is 50" }, "cursor": { "type": "string", "description": "An opaque pagination token returned by a previous response. Use this to retrieve the next page of results. Cannot be used together with `from`." } } } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v2/credentials/search\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"query\": {\n \"group.id[in]\": [1, 2],\n \"recipient_name\": \"John Doe\",\n \"approve\": true,\n \"recipient_email\": \"person@example.com\",\n \"recipient_id\": \"example\",\n \"recipient_meta_data\": {},\n \"license_id\": \"example\",\n \"meta_data\": { \"example\": \"value\" },\n \"custom_attributes\": { \"example\": \"value\" },\n \"issued_on[gte]\": \"2023-01-01\",\n \"issued_on[lt]\": \"2024-01-01\",\n \"updated_at[gte]\": \"2023-01-01\",\n \"created_at[gte]\": \"2023-01-01\"\n },\n \"sort\": {\n \"issued_on\": \"desc\"\n },\n \"page\": {\n \"from\": 0,\n \"size\": 50\n }\n}'" } ] } }, "/v1/credentials/generate_pdf": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "file": { "type": "string" } } }, "example": { "file": "https://s3.amazonaws.com/staging_accredible_api_organizations/zip_pdf/a1VzM3lmSi9hUEpWL083RnNOUmF4eWN1aCtNNG1DVUNvVXBJekQwR2VWQT0.zip" } } } } }, "summary": "Generate PDF for credentials", "operationId": "Generate PDF for credentials", "description": "This endpoint takes credential_ids and generate pdfs. The endpoint returns zip file of folder having all pdfs requested.", "tags": [ "Credentials" ], "requestBody": { "content": { "application/json": { "example": { "credential_ids": [ "10000005", "10272642", "10299775" ] }, "schema": { "type": "object", "properties": { "credential_ids": { "description": "ID's of credentials for which PDF need to be generated." } }, "required": [ "credential_ids" ] } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/generate_pdf\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"credential_ids\": [\n \"10000005\",\n \"10272642\",\n \"10299775\"\n ]\n}'" } ] } }, "/v1/credentials/generate_single_pdf/{id}": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "file": { "type": "string" } } }, "example": { "file": "https://s3.amazonaws.com/staging-pdf-certificate/10531400.pdf" } } } } }, "summary": "Generate PDF for a single credential", "operationId": "Generate PDF for a single credential", "description": "This endpoint takes id of published credential and generate pdf. The endpoint returns link to PDF requested.\n\n[Generate a PDF of a Credential - Video Walkthrough](https://www.loom.com/share/6e9364c74c3a4bb3aeff2e3f8d7e2f59?sid=7172149f-4b66-4539-ae97-66b5f083d89b)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "ID of the Credential in the form of an integer or string for the particular Credential requested.", "required": true, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/generate_single_pdf/12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\"" } ] } }, "/v1/issuer/credential_redirect": { "get": { "responses": {}, "summary": "Redirect to the Credential", "operationId": "Redirect to the Credential", "description": "This endpoint redirects to a particular Credential. You can supply your internal credential id of you'd like to redirect to. To make this work, you need to use your internal unique id while creating credential.", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "query", "description": "ID of the Credential in the form of an integer or string for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "issuer_id", "in": "query", "description": "ID of your issuer account. Ask us to get this or use the endpont view-issuer-details.", "required": true, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/issuer/credential_redirect?id=12345&issuer_id=12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/credentials/blockchain_data/{id}": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "data": { "type": "object", "properties": { "credential_json_data": { "type": "object", "properties": { "certificate": { "type": "object", "properties": { "name": { "type": "string" }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "id": { "type": "string" }, "type": { "type": "string" }, "email": { "type": "string" } } }, "type": { "type": "string" }, "id": { "type": "string" }, "description": { "type": "string" } } }, "verify": { "type": "object", "properties": { "signer": { "type": "string" }, "attribute-signed": { "type": "string" }, "type": { "type": "string" } } }, "assertion": { "type": "object", "properties": { "issuedOn": { "type": "string" }, "type": { "type": "string" }, "uid": { "type": "string" }, "id": { "type": "string" } } }, "type": { "type": "string" }, "@context": { "type": "string" }, "recipient": { "type": "object", "properties": { "familyName": { "type": "string" }, "hashed": { "type": "boolean" }, "type": { "type": "string" }, "identity": { "type": "string" } } } } }, "receipt": { "type": "object", "properties": { "@context": { "type": "string" }, "type": { "type": "string" }, "targetHash": { "type": "string" }, "merkleRoot": { "type": "string" }, "proof": { "type": "array", "items": { "type": "object", "properties": { "left": { "type": "string" }, "right": { "type": "string" } }, "required": [ "left" ] } }, "anchors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "sourceId": { "type": "string" } } } } } } } } } }, "example": { "data": { "credential_json_data": { "certificate": { "name": "Example Certificate Title", "issuer": { "name": "Example Organization", "url": "http://www.accredible.com", "id": "https://api.accredible.com/v1/obi/issuer_badge_classes/qOeq", "type": "Issuer", "email": "issuer+4897@accredible.com" }, "type": "Certificate", "id": "https://www.credential.net/10000005", "description": "This is an example description - you can write anything you want here. We recommend describing the achievement." }, "verify": { "signer": "abc", "attribute-signed": "uid", "type": "ECDSA(secp256k1)" }, "assertion": { "issuedOn": "2014-08-14", "type": "Assertion", "uid": "10000005-0000-0000-0000-000000000000", "id": "https://api.accredible.com/v1/obi/badge_assertions/akobz1" }, "type": "CertificateDocument", "@context": "https://w3id.org/blockcerts/v1", "recipient": { "familyName": "Jordan Smith", "hashed": true, "type": "email", "identity": "bUt3VFpyekE5Wmxxa0FRdExUZ3k5WkdVanRWU3JPNmxDVjdVZ2xkckJnVW9MVm5rYmtLSDZ6M3IvS2tMWnA5MS0tN0RwVVdIb1RJUzIyTnBjS20wcVpUdz09--d964109d91c7890715008e1749e0ee990c7ce9cb" } }, "receipt": { "@context": "https://w3id.org/chainpoint/v2", "type": "ChainpointSHA256v2", "targetHash": "726245b5a11b7f94b756ee746f3b3ce18efdc492c615c32678dae1ca76a8667a", "merkleRoot": "e9aaf5d6e0021deb260608991fbb45d1c3ccb4553ea710635975834909bd8314", "proof": [ { "left": "ab4f843e61e1261e832e97807f37d51d851f8aaac3f44216914f67b7588634ad" }, { "left": "91ad43d509dabfc0a6d23167a10707a63e8ab7f9fa949d6c0aca763c64fefdb6" }, { "right": "9047877604cecc72d9bc614375b14ff0ce02b231d51a53fe33ce24e39cf3e6c4" } ], "anchors": [ { "type": "BTCOpReturn", "sourceId": "707f86dc790338c5bddb19188c1c3f46f95a346a7693cc8c772b5e9252099c54" } ] } } } } } } }, "summary": "Verify BlockChain Credential (v1)", "operationId": "Verify BlockChain Credential (v1)", "description": "This endpoint gives data for a blockchain recorded credential. It will help you verify authenticity of the credential on blockchain.\n\n[Verify Blockchain record of a Credential - Video Walkthrough](https://www.loom.com/share/23621ac848c44a77ac1eda0eeb975d93?sid=c10228b9-6317-477b-b903-20ed78ce6b76)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "Encoded id or UUID of the credentials. unique id in the credentials url.", "required": true, "schema": { "type": "string" } }, { "name": "key", "in": "query", "description": "If private credentials provide a key", "required": false, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/credentials/blockchain_data/12345?key=12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v2/credentials/{id}/blockchain_data": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "oneOf": [ { "type": "object", "properties": { "data": { "type": "object", "properties": { "chain": { "type": "string" }, "credential_json_data": { "type": "object", "properties": { "@context": { "type": "array", "items": { "type": "string" } }, "type": { "type": "array", "items": { "type": "string" } }, "id": { "type": "string" }, "issuer": { "type": "string" }, "issuanceDate": { "type": "string" }, "credentialSubject": { "type": "object", "properties": { "name": { "type": "string" }, "claim": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" } } } } }, "display": { "type": "object", "properties": { "contentMediaType": { "type": "string" }, "content": { "type": "string" } } } } }, "receipt": { "type": "object", "properties": { "txn_id": { "type": "string" }, "body": { "type": "object", "properties": { "@context": { "type": "array", "items": { "type": "string" } }, "type": { "type": "array", "items": { "type": "string" } }, "id": { "type": "string" }, "issuer": { "type": "string" }, "issuanceDate": { "type": "string" }, "credentialSubject": { "type": "object", "properties": { "name": { "type": "string" }, "claim": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" } } } } }, "display": { "type": "object", "properties": { "contentMediaType": { "type": "string" }, "content": { "type": "string" } } }, "proof": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "cryptosuite": { "type": "string" }, "proofPurpose": { "type": "string" }, "created": { "type": "string" }, "proofValue": { "type": "string" }, "verificationMethod": { "type": "string" } } } } } } } } } } }, { "type": "object", "properties": { "data": { "type": "object", "properties": { "chain": { "type": "string" }, "credential_json_data": { "type": "object", "properties": { "certificate": { "type": "object", "properties": { "name": { "type": "string" }, "issuer": { "type": "object", "properties": { "name": { "type": "string" }, "url": { "type": "string" }, "id": { "type": "string" }, "type": { "type": "string" }, "email": { "type": "string" } } }, "type": { "type": "string" }, "id": { "type": "string" }, "description": { "type": "string" } } }, "verify": { "type": "object", "properties": { "signer": { "type": "string" }, "attribute-signed": { "type": "string" }, "type": { "type": "string" } } }, "assertion": { "type": "object", "properties": { "issuedOn": { "type": "string" }, "type": { "type": "string" }, "uid": { "type": "string" }, "id": { "type": "string" } } }, "type": { "type": "string" }, "@context": { "type": "string" }, "recipient": { "type": "object", "properties": { "familyName": { "type": "string" }, "hashed": { "type": "boolean" }, "type": { "type": "string" }, "identity": { "type": "string" } } } } }, "receipt": { "type": "object", "properties": { "@context": { "type": "string" }, "type": { "type": "string" }, "targetHash": { "type": "string" }, "merkleRoot": { "type": "string" }, "proof": { "type": "array", "items": { "type": "object", "properties": { "left": { "type": "string" }, "right": { "type": "string" } }, "required": [ "left" ] } }, "anchors": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "sourceId": { "type": "string" } } } } } } } } } } ] }, "examples": { "example1": { "value": { "data": { "chain": "Ethereum", "credential_json_data": { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://w3id.org/blockcerts/v3" ], "type": [ "VerifiableCredential", "BlockcertsCredential" ], "id": "https://www.credential.net/dbe99696-2cb3-4dc4-aef8-d6e6c2840140", "issuer": "https://api.accredible.com/v1/blockcerts/issuer/f942", "issuanceDate": "2022-10-07T00:00:00+00:00", "credentialSubject": { "name": "Jewell White Esq.", "claim": { "name": "Accounting", "description": "Business-focused responsive interface" } }, "display": { "contentMediaType": "text/html", "content": "
" } }, "receipt": { "txn_id": "0xb534249bc297aa4f8e038c1a6633ab77fef968c54e375ee5a84055f1875305a7", "body": { "@context": [ "https://www.w3.org/2018/credentials/v1", "https://w3id.org/security/data-integrity/v2", "https://w3id.org/blockcerts/v3.1" ], "type": [ "VerifiableCredential", "BlockcertsCredential" ], "id": "https://www.credential.net/dbe99696-2cb3-4dc4-aef8-d6e6c2840140", "issuer": "https://api.accredible.com/v1/blockcerts/issuer/f942", "issuanceDate": "2022-10-07T00:00:00+00:00", "credentialSubject": { "name": "Jewell White Esq.", "claim": { "name": "Accounting", "description": "Business-focused responsive interface" } }, "display": { "contentMediaType": "text/html", "content": " \n

Jewell White Esq.

\n

--------------------------------

\n

Accounting

\n

Business-focused responsive interface

\n

--------------------------------

\n

Issued By

\n

Muller, Walsh and Lockman

\n

--------------------------------

\n

Issued On

\n

October 7th, 2022

\n

--------------------------------

\n

Expires On

\n

-

\n

--------------------------------

\n \n" }, "proof": { "id": "urn:uuid:384b94ec-335f-4d42-a2c3-74d296f711da", "type": "MerkleProof2019", "cryptosuite": "merkle-proof-2019", "proofPurpose": "assertionMethod", "created": "2024-03-13T11:07:25.181722", "proofValue": "z8VhG6bxbkqU4L14xLgVfh1ctX985BaKbuHNwKECdsCLLgNgPBizqk5a9FwLE1XnP8QGTNoSfuXLPzAo2ARQ27icJ2CcekHcP71EkFd3wvRrWHdveP2ynYgyPFDS2Dpg2euzUWeMdbMoFHiQw31rfMvfbkyVhFv3bCxHmMj1sHa3S1eRPVvPzVeftU2DvuEPry3YfUYahZbWmc184G2ojWB2K4egND7yRhuFDumaQikVFSXmsKVXcYqpf6a6VWCRU9q4DmuPPxYhWXPtKb5FJVQjXeN7NWR7uJ5SUciewepf2Yo64CVPR8j2BcYMHSvSBBTgCh1wkUisvH947WKYS5z68R4fMS86DeLeBe1WuBiBHaYQV2hM7rt5Fb95dEAMAHAQNmACEFgy1BiK2V8prT18k8jPNDfKiifz1FRwrC5WXpsdJydJwnzJyuYV4TUWGFdVAB4T6hrP8wkkcy9UEjWBRJycNCCERRVPN7VCHH2bYqK1poYtKxncpCmByULodY8BwoX3xzAmJhvLTuEtpvipkF4sMySNrPMXHMZc1Lago8YofAWtswA9H7k4hWSdkzyuuF4HCNLoFjoepcz649PCiTgNhBxq8ynJtKmDESY4GWvtJTwmyfeEV1LvoQZmKgNZH8qe4WYJ3UeL96n3qjnVSbCqUFhEoxcDDofshhtz7YWTQUzS8ihnZc45gnXT2EeXeqE1Hyx6M98ig4TnAoXkzwDJ3KFoc25MqoRfovHdzAzFYjTp9Aa5ybT1iCC6nrUuSwqS1AHaKV4T88KxK5oxkMMQdeEvVcEtEMaVgSVXMhHuULb7dztBzonQRhem6s3v6AYYWHPH23nSVdDopTAAYGQqwZpaiBvXZnxTY85njJa3aT3tmfE7YutjjFmLAwC9cEMEM1dUSEW2NbaHyGVooc6kZnDjXxWZKWBBSx5ujoDPLiRgQrGbgN5aEFRRdYdEvYeCod6zJCgdzQ67coYFgKpkZC2RyYsYXuEwT4uve9M5vk6jDbj2nnXPFkAQhP6295k4UnT6oNZUJaWeBEmNm1BsDSPU7RFx45Js2p4hNG6N72oPHJDdKQn7hpCZt98MJWqtRzyx7XUZNmwPHjpYwFB3t1N7oa9NvA4EV2ahPUJHRP1tm7Xg4xafDRtRABSV5nxpbfnJAGZKjWUGGUCtz2NjLboc3vBP8g48MBbwRxZqvGTMF51eZ9F4D1VaEExAEcPLa3SdMxCby3XdfEbd9uqdEs2gr7qoMBFSHNQQAWGcxuVzd4h2mEwrerpbfFaTi5tq9dpJb6pKX2crAMyyWr8xfSZJvtq9dsuD1z2ZfKo3zwkciftwGzMsHxyF6Zm4XvJdCUG4fQntr6qTo91", "verificationMethod": "https://accredible.com" } } } } } }, "example2": { "value": { "data": { "chain": "Bitcoin", "credential_json_data": { "certificate": { "name": "Example Certificate Title", "issuer": { "name": "Example Organization", "url": "http://www.accredible.com", "id": "https://api.accredible.com/v1/obi/issuer_badge_classes/qOeq", "type": "Issuer", "email": "issuer+4897@accredible.com" }, "type": "Certificate", "id": "https://www.credential.net/10000005", "description": "This is an example description - you can write anything you want here. We recommend describing the achievement." }, "verify": { "signer": "abc", "attribute-signed": "uid", "type": "ECDSA(secp256k1)" }, "assertion": { "issuedOn": "2014-08-14", "type": "Assertion", "uid": "10000005-0000-0000-0000-000000000000", "id": "https://api.accredible.com/v1/obi/badge_assertions/akobz1" }, "type": "CertificateDocument", "@context": "https://w3id.org/blockcerts/v1", "recipient": { "familyName": "Jordan Smith", "hashed": true, "type": "email", "identity": "bUt3VFpyekE5Wmxxa0FRdExUZ3k5WkdVanRWU3JPNmxDVjdVZ2xkckJnVW9MVm5rYmtLSDZ6M3IvS2tMWnA5MS0tN0RwVVdIb1RJUzIyTnBjS20wcVpUdz09--d964109d91c7890715008e1749e0ee990c7ce9cb" } }, "receipt": { "@context": "https://w3id.org/chainpoint/v2", "type": "ChainpointSHA256v2", "targetHash": "726245b5a11b7f94b756ee746f3b3ce18efdc492c615c32678dae1ca76a8667a", "merkleRoot": "e9aaf5d6e0021deb260608991fbb45d1c3ccb4553ea710635975834909bd8314", "proof": [ { "left": "ab4f843e61e1261e832e97807f37d51d851f8aaac3f44216914f67b7588634ad" }, { "left": "91ad43d509dabfc0a6d23167a10707a63e8ab7f9fa949d6c0aca763c64fefdb6" }, { "right": "9047877604cecc72d9bc614375b14ff0ce02b231d51a53fe33ce24e39cf3e6c4" } ], "anchors": [ { "type": "BTCOpReturn", "sourceId": "707f86dc790338c5bddb19188c1c3f46f95a346a7693cc8c772b5e9252099c54" } ] } } } } } } } } }, "summary": "Verify BlockChain Credential (v2)", "operationId": "Verify BlockChain Credential (v2)", "description": "This endpoint gives data for a blockchain recorded credential.\nIt will help you verify authenticity of the credential on blockchain.\nThis endpoint would return different responses based on the Blockchain (*Bitcoin* or *Ethereum*) that it's issued in.\n\n[Verify Blockchain record of a Credential - Video Walkthrough](https://www.loom.com/share/23621ac848c44a77ac1eda0eeb975d93?sid=c10228b9-6317-477b-b903-20ed78ce6b76)", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "Encoded id or UUID of the credentials. unique id in the credentials url.", "required": true, "schema": { "type": "string" } }, { "name": "key", "in": "query", "description": "If private credentials provide a key", "required": false, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v2/credentials/12345/blockchain_data?key=12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/credentials/analytics/{id}": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "analytics": { "type": "array", "items": { "type": "object", "properties": { "credential_id": { "type": "number" }, "event": { "type": "string" }, "created_at": { "type": "string" } }, "required": [ "credential_id", "event", "created_at" ] } } } }, "example": { "analytics": [ { "credential_id": 10533900, "event": "privacy_updated", "created_at": "2018-02-13T07:00:00.000Z" }, { "credential_id": 10533900, "event": "recipient_view_certificate", "created_at": "2018-02-13T07:00:00.000Z" }, { "credential_id": 10533900, "event": "credential_user_verified", "created_at": "2018-02-13T07:00:00.000Z" } ] } } } } }, "summary": "View Credential Analytics", "operationId": "View Credential Analytics", "description": "", "tags": [ "Credentials" ], "parameters": [ { "name": "id", "in": "path", "description": "Id of the credential.", "required": true, "schema": { "type": "string" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/analytics/12345\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\"" } ] } }, "/v1/credentials/{credential_id}/evidence_items": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "link_url": { "type": "string" }, "preview_image_url": { "type": "string" }, "type": { "type": "string" }, "supplemental": { "type": "boolean" }, "string_object": { "nullable": true }, "position": { "type": "number" } } } } }, "example": { "evidence_item": { "id": 1234, "description": "updated description", "link_url": "https://s3.amazonaws.com/accredible_api_evidence_items/files/44/original/1410743692307_Hours_Tracking.pdf", "preview_image_url": "https://www.example.com/1234/reportcard.png", "type": "url", "supplemental": false, "string_object": null, "position": 1 } } } } } }, "summary": "Create a New Evidence Item", "operationId": "Create a New Evidence Item", "tags": [ "Evidence Items" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "Global ID of the credential in the form of an integer or string for the particular Credential requested.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "example": { "evidence_item": { "description": "Example file", "file": "https://s3.amazonaws.com/accredible_api_evidence_items/files/44/original/1410743692307_Hours_Tracking.pdf", "category": "file" } }, "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "description": { "type": "string", "description": "Title text for the evidence item. This is displayed on a Credential." }, "category": { "type": "string", "enum": ["file", "url", "video", "grade", "transcript"], "description": "Type of Evidence Item added, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the certificate." }, "url": { "type": "string", "description": "If the category is url or video, this should be the URL of Evidence Item." }, "file": { "type": "string", "description": "If the category is file, this should be the file's URL." }, "string_object": { "type": "string", "description": "If the category is grade or transcript then use it. For grade it will be just string 83." }, "preview": { "type": "string", "description": "By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credential. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image." }, "position": { "type": "number", "description": "The numeric position of the evidence item on the credential. 0 is displayed first in the list." }, "custom_insight": { "type": "string", "description": "The insights which will appear below Evidence Item, if not given it will be generated automatically based on data." } }, "required": ["description", "category"] } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/12345/evidence_items\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"evidence_item\": {\n \"description\": \"Example file\",\n \"file\": \"https://s3.amazonaws.com/accredible_api_evidence_items/files/44/original/1410743692307_Hours_Tracking.pdf\",\n \"category\": \"file\"\n }\n}'" } ] } }, "/v1/credentials/{credential_id}/evidence_items/{evidence_item_id}": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "link_url": { "type": "string" }, "preview_image_url": { "type": "string" }, "type": { "type": "string" }, "supplemental": { "type": "boolean" }, "string_object": { "nullable": true }, "position": { "type": "number" } } } } }, "example": { "evidence_item": { "id": 1234, "description": "updated description", "link_url": "https://s3.amazonaws.com/accredible_api_evidence_items/files/44/original/1410743692307_Hours_Tracking.pdf", "preview_image_url": "https://www.example.com/1234/reportcard.png", "type": "url", "supplemental": false, "string_object": null, "position": 1 } } } } } }, "summary": "View an Evidence Item", "operationId": "View an Evidence Item", "tags": [ "Evidence Items" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of an integer or string for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "evidence_item_id", "in": "path", "description": "ID of the EvidenceItem in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/credentials/12345/evidence_items/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] }, "put": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "link_url": { "type": "string" }, "preview_image_url": { "type": "string" }, "type": { "type": "string" }, "supplemental": { "type": "boolean" }, "string_object": { "nullable": true }, "position": { "type": "number" } } } } }, "example": { "evidence_item": { "id": 1234, "description": "updated description", "link_url": "https://s3.amazonaws.com/accredible_api_evidence_items/files/44/original/1410743692307_Hours_Tracking.pdf", "preview_image_url": "https://www.example.com/1234/reportcard.png", "type": "url", "supplemental": false, "string_object": null, "position": 1 } } } } } }, "summary": "Update an Evidence Item", "operationId": "Update an Evidence Item", "tags": [ "Evidence Items" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string or integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "evidence_item_id", "in": "path", "description": "ID of the Evidence Item in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "requestBody": { "content": { "application/json": { "example": { "evidence_item": { "description": "updated description" } }, "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "description": { "type": "string", "description": "Title text for the evidence item. This is displayed on a Credential." }, "category": { "type": "string", "enum": ["file", "url", "video", "grade", "transcript"], "description": "Type of Evidence Item added, must be one of [file, url, video, grade, transcript]. The type dictates how the item is displayed on the Credential." }, "url": { "type": "string", "description": "If the category is url or video, this should be the URL of Evidence Item." }, "file": { "type": "string", "description": "If the category is file, this should be the file's URL." }, "string_object": { "type": "string", "description": "If the category is grade or transcript then use it. For grade it will be just string 83." }, "preview": { "type": "string", "description": "By default if you add a URL category EvidenceItem, we take a screenshot to set the preview of this URL on Credentials. You can overwrite this default behaviour by setting this preview field to be the URL of the desired image." }, "position": { "type": "number", "description": "The numeric position of the evidence item on the credential. 0 is displayed first in the list." }, "custom_insight": { "type": "string", "description": "The insights which will appear below Evidence Item, if not given it will be generated automatically based on data." } }, "required": ["description", "category"] } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X PUT \\\n \"https://api.accredible.com/v1/credentials/12345/evidence_items/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"evidence_item\": {\n \"description\": \"updated description\"\n }\n}'" } ] }, "delete": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "evidence_item": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" } } } } }, "example": { "evidence_item": { "id": 1234, "description": "Report card including all grades" } } } } } }, "summary": "Delete an Evidence Item", "operationId": "Delete an Evidence Item", "tags": [ "Evidence Items" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string or integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "evidence_item_id", "in": "path", "description": "ID of the EvidenceItem in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X DELETE \\\n \"https://api.accredible.com/v1/credentials/12345/evidence_items/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/credentials/{credential_id}/references": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "avatar": { "type": "string" } } }, "supplemental": { "type": "boolean" }, "relationship": { "type": "string" } } } } }, "example": { "reference": { "id": 1234, "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "jdoe@example.com", "avatar": "https://www.example.com/avatars/janedoe.png" }, "supplemental": false, "relationship": "managed" } } } } } }, "summary": "Create a New Reference", "operationId": "Create a New Reference", "description": "You may create a Reference using this action. It takes a JSON object containing a Reference.", "tags": [ "References" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "example": { "reference": { "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "person@example.com" }, "relationship": "managed" } }, "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "description": { "type": "string", "description": "The reference comments / text." }, "relationship": { "type": "string", "enum": ["taught", "managed", "mentored", "worked", "studied", "friends", "stranger", "professor"], "description": "Must be one of: \"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"." }, "referee": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the person providing the reference." }, "email": { "type": "string", "description": "Email of the person providing the reference." }, "avatar": { "type": "string", "description": "URL of image of the person providing the reference." }, "url": { "type": "string", "description": "URL of a social profile such as LinkedIn that would allow a viewer to learn more about the referee." } } }, "position": { "type": "number", "description": "The numeric position of the evidence item on the credential. 0 is displayed first in the list." } }, "required": ["description", "relationship"] } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X POST \\\n \"https://api.accredible.com/v1/credentials/12345/references\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"reference\": {\n \"description\": \"John worked hard on this course and provided exemplary understanding of the core concepts\",\n \"referee\": {\n \"name\": \"Jane Doe\",\n \"email\": \"person@example.com\"\n },\n \"relationship\": \"managed\"\n }\n}'" } ] } }, "/v1/credentials/{credential_id}/references/{reference_id}": { "get": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "avatar": { "type": "string" } } }, "supplemental": { "type": "boolean" }, "relationship": { "type": "string" } } } } }, "example": { "reference": { "id": 1234, "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "jdoe@example.com", "avatar": "https://www.example.com/avatars/janedoe.png" }, "supplemental": false, "relationship": "managed" } } } } } }, "summary": "View a Reference", "operationId": "View a Reference", "tags": [ "References" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string or integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "reference_id", "in": "path", "description": "ID of the Reference in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X GET \\\n \"https://api.accredible.com/v1/credentials/12345/references/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] }, "put": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "avatar": { "type": "string" } } }, "supplemental": { "type": "boolean" }, "relationship": { "type": "string" } } } } }, "example": { "reference": { "id": 1234, "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "jdoe@example.com", "avatar": "https://www.example.com/avatars/janedoe.png" }, "supplemental": false, "relationship": "managed" } } } } } }, "summary": "Update a Reference", "operationId": "Update a Reference", "tags": [ "References" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string or integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "reference_id", "in": "path", "description": "ID of the Reference in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "requestBody": { "content": { "application/json": { "example": { "reference": { "description": "my new reference text" } }, "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "description": { "type": "string", "description": "The reference comments / text." }, "relationship": { "type": "string", "enum": ["taught", "managed", "mentored", "worked", "studied", "friends", "stranger", "professor"], "description": "Must be one of: \"taught\", \"managed\", \"mentored\", \"worked\", \"studied\", \"friends\", \"stranger\", \"professor\"." }, "position": { "type": "number", "description": "The numeric position of the evidence item on the credential. 0 is displayed first in the list." } }, "required": ["description", "relationship"] } } } } } }, "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X PUT \\\n \"https://api.accredible.com/v1/credentials/12345/references/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"reference\": {\n \"description\": \"my new reference text\"\n }\n}'" } ] }, "delete": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "reference": { "type": "object", "properties": { "id": { "type": "number" }, "description": { "type": "string" }, "referee": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "avatar": { "type": "string" } } }, "supplemental": { "type": "boolean" }, "relationship": { "type": "string" } } } } }, "example": { "reference": { "id": 1234, "description": "John worked hard on this course and provided exemplary understanding of the core concepts", "referee": { "name": "Jane Doe", "email": "jdoe@example.com", "avatar": "https://www.example.com/avatars/janedoe.png" }, "supplemental": false, "relationship": "managed" } } } } } }, "summary": "Delete a Reference", "operationId": "Delete a Reference", "tags": [ "References" ], "parameters": [ { "name": "credential_id", "in": "path", "description": "ID of the Credential in the form of a string or integer for the particular Credential requested.", "required": true, "schema": { "type": "string" } }, { "name": "reference_id", "in": "path", "description": "ID of the Reference in the form of an integer.", "required": true, "schema": { "type": "number" } } ], "security": [ { "ApiKeyAuth": [] } ], "x-code-samples": [ { "lang": "cURL", "label": "cURL", "source": "curl -X DELETE \\\n \"https://api.accredible.com/v1/credentials/12345/references/1234\" \\\n -H \"Authorization: Token token=YOUR_API_KEY\"" } ] } }, "/v1/issuer/groups": { "post": { "responses": { "200": { "description": "OK", "headers": {}, "content": { "application/json": { "schema": { "type": "object", "properties": { "group": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "course_description": { "type": "string" }, "course_name": { "type": "string" }, "learning_outcomes": { "type": "array", "items": { "type": "string" } }, "attach_pdf": { "type": "boolean" }, "course_link": { "type": "string" }, "language": { "type": "string" }, "design_name": { "type": "string" }, "updated_at": { "type": "string" }, "created_at": { "type": "string" }, "design_id": { "type": "number" }, "blockchain": { "type": "boolean" }, "certificate_design_id": { "nullable": true }, "badge_design_id": { "nullable": true }, "primary_design_id": { "nullable": true }, "department_id": { "type": "number" }, "meta_data": { "type": "object", "properties": { "foo": { "type": "string" } } }, "generate_private_credential": { "type": "boolean" }, "auto_expiry": { "type": "number" }, "signup_url_show": { "type": "boolean" }, "signup_url": { "type": "string" }, "course_link_show": { "type": "boolean" }, "organization_link_show": { "type": "boolean" }, "skill_category": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" } } }, "achievement_type": { "type": "string" }, "collections": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "description": { "type": "string", "nullable": true } }, "required": [ "id", "name", "description" ] } }, "earning_criteria": { "type": "array", "description": "Criteria the recipient must satisfy to earn this credential, ordered by `position`.", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "kind": { "type": "string", "enum": [ "achievement", "certificate", "competency", "completion", "course", "degree", "exam", "experience", "knowledge", "license", "participation", "reading", "skill", "specialization", "other" ] }, "text": { "type": "string" }, "required": { "type": "boolean" }, "position": { "type": "number" } }, "required": [ "id", "kind", "text", "required", "position" ] } } } } } }, "example": { "group": { "id": 12472, "name": "new group", "course_description": "Desscription of course", "course_name": "Intro to Programming", "learning_outcomes": [ "Skill One", "Skill Two" ], "attach_pdf": true, "course_link": "http://www.example.com", "language": "en", "design_name": "test", "updated_at": "2016-08-29T07:03:25.000Z", "created_at": "2016-08-29T06:14:18.000Z", "design_id": 23, "blockchain": false, "certificate_design_id": null, "badge_design_id": null, "primary_design_id": null, "department_id": 123, "meta_data": { "foo": "bar" }, "generate_private_credential": false, "auto_expiry": 1, "signup_url_show": false, "signup_url": "http://www.example.com", "course_link_show": false, "organization_link_show": false, "skill_category": { "id": 1, "name": "Example Category" }, "achievement_type": "Certificate", "collections": [ { "id": 1, "name": "one", "description": null }, { "id": 2, "name": "two", "description": "description example" } ], "earning_criteria": [ { "id": "8f3c0c8c-5e1b-4f2a-9c4a-1f2c5c3a0001", "kind": "course", "text": "Complete the Intro to Programming course", "required": true, "position": 1 }, { "id": "8f3c0c8c-5e1b-4f2a-9c4a-1f2c5c3a0002", "kind": "exam", "text": "Pass the final exam with 70% or higher", "required": true, "position": 2 } ] } } } } } }, "summary": "Create a Group", "operationId": "Create a Group", "description": "", "tags": [ "Groups" ], "requestBody": { "content": { "application/json": { "example": { "group": { "name": "new group", "course_name": "Intro to Prgramming", "course_description": "Description of course", "course_link": "http://www.example.com", "language": "en", "attach_pdf": true, "design_id": null, "blockchain": false, "certificate_design_id": null, "badge_design_id": null, "primary_design_id": null, "department_id": 123, "meta_data": { "batch_id": "271" }, "learning_outcomes": [ "Reading Books", "Writing Essays" ], "generate_private_credential": false, "auto_expiry": 1, "signup_url_show": false, "signup_url": "http://www.example.com", "course_link_show": false, "organization_link_show": false, "skill_category_id": 1, "achievement_type": "Certificate", "collections": [ { "id": 1 }, { "id": 2 } ], "earning_criteria": [ { "kind": "course", "text": "Complete the Intro to Programming course", "required": true, "position": 1 }, { "kind": "exam", "text": "Pass the final exam with 70% or higher", "required": true, "position": 2 } ] } }, "schema": { "type": "object", "properties": { "name": { "type": "string", "description": "Name of the group (for your reference and never shown to the recipient)." }, "course_name": { "type": "string", "description": "Name of the course or achievement. This is visible to the recipient." }, "course_description": { "type": "string", "description": "Description of the course or achievement. This is visible to the recipient." }, "course_link": { "type": "string", "description": "Link to the web page with information related to this Credential. Typically this is a course information or event information page." }, "language": { "type": "string", "description": "Language for the group. Currently we support \"en\", \"es\", \"vi\", \"pt\", \"ja\", \"fr\", \"da\", \"nl\", \"fi\", \"no\", \"nb\", \"ro\", \"sv\", \"th\", \"tw\", \"zh\", \"tr\", \"ar\", \"he\", \"ms\" and \"de\". Default language is en." }, "attach_pdf": { "type": "boolean", "description": "PDF of the Credential should be attached to email when recipient is informed. Default is false." }, "blockchain": { "type": "boolean", "description": "Enable or disable recording of these Credentials on a Blockchain." }, "design_id": { "type": "number", "description": "DEPRECATED. Certificate Design which the Group will use to display Credentials." }, "certificate_design_id": { "type": "number", "description": "Certificate Design which the Group will use to display Credentials." }, "badge_design_id": { "type": "number", "description": "Badge Design which the Group will use to display Credentials." }, "primary_design_id": { "type": "number", "description": "Primary Design which the Group will use to display Credentials." }, "department_id": { "type": "number", "description": "Department that the group belongs to. If not defined the group will be assigned to the organizations default department." }, "meta_data": { "type": "object", "properties": {}, "description": "You can use this parameter to attach key-value strings to the object. Meta data is useful for storing additional, structured information on an object." }, "learning_outcomes": { "description": "Searchable keywords identifying skills credential-holders need to demonstrate (or have learned) in the process of earning this credential." }, "generate_private_credential": { "type": "boolean", "description": "The default value of `Credential.private` for the Group. The supported values are `true`, `false`, and `null`. When this is set to `true` or `false`, it will override `Department.generate_private_credential` and be used as the default of `Credential.private` when creating a new `Credential`. When this is set to `null`, it won't override `Department.generate_private_credential` which will be used for the default of `Credential.private` instead." }, "auto_expiry": { "type": "number", "description": "Specifies the number of years from the issue date after which the credential will automatically expire. If the specified value is less than or equal to 0, it will be ignored." }, "signup_url": { "type": "string", "description": "This provides a direct path for credential viewers to enroll in your course." }, "signup_url_show": { "type": "boolean", "description": "Show or hide the sign up url. The supported values are `true`, `false` and `null`." }, "course_link_show": { "type": "boolean", "description": "This links the credential data record to your information about the credential on your website. The supported values are `true`, `false` and `null`." }, "organization_link_show": { "type": "boolean", "description": "Show or hide the link to your website homepage. The supported values are `true`, `false` and `null`." }, "allow_duplicate_credentials": { "type": "boolean", "description": "An email address can receive more than one credential. The supported values are `true` & `false`. Defaults to `false`." }, "skill_category_id": { "type": "number", "description": "ID of the skill category to associate with this group." }, "collections": { "description": "Full list of collections to associate to this group" }, "achievement_type": { "type": "string", "description": "The type of achievement, for example 'Award' or 'Certification'. The supported values are listed here https://www.imsglobal.org/spec/ob/v3p0#achievementtype-enumeration" }, "earning_criteria": { "type": "array", "description": "Optional list of criteria the recipient must satisfy to earn this credential. Each item creates a new criterion on the group.", "items": { "type": "object", "properties": { "kind": { "type": "string", "description": "Category of the criterion.", "enum": [ "achievement", "certificate", "competency", "completion", "course", "degree", "exam", "experience", "knowledge", "license", "participation", "reading", "skill", "specialization", "other" ] }, "text": { "type": "string", "description": "Human-readable description of the criterion. Supports a limited set of HTML tags: `` (with `href`, `title`, `target`, `rel`), `

`, `
`, `


`, `