{
  "opencollection": "1.0.0",
  "info": {
    "name": "Accredible Analytics Credentials API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Credentials",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a credential",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accredible.com/v1/credentials",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Issues a new credential (certificate or badge) to a recipient against a Group, optionally with custom attributes, evidence items, and references."
        },
        {
          "info": {
            "name": "Bulk create credentials",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accredible.com/v1/credentials/bulk_create",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Issues many credentials in a single request."
        },
        {
          "info": {
            "name": "View a credential",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accredible.com/v1/credentials/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the credential."
              }
            ]
          },
          "docs": "Retrieves a single credential by its ID."
        },
        {
          "info": {
            "name": "Update a credential",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.accredible.com/v1/credentials/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the credential."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing credential."
        },
        {
          "info": {
            "name": "Delete a credential",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.accredible.com/v1/credentials/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the credential."
              }
            ]
          },
          "docs": "Deletes a credential by ID."
        },
        {
          "info": {
            "name": "Search for credentials",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accredible.com/v1/credentials/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Searches credentials by group, recipient email, recipient ID, and other attributes, with pagination."
        },
        {
          "info": {
            "name": "View many credentials (deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accredible.com/v1/all_credentials",
            "params": [
              {
                "name": "group_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "email",
                "value": "",
                "type": "query"
              },
              {
                "name": "recipient_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists credentials filtered by group, email, or recipient. Deprecated in favor of the search endpoint."
        },
        {
          "info": {
            "name": "Generate PDFs for credentials",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accredible.com/v1/credentials/generate_pdf",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates certificate PDFs for a set of credentials."
        },
        {
          "info": {
            "name": "Generate PDF for a single credential",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.accredible.com/v1/credentials/generate_single_pdf/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The unique ID of the credential."
              }
            ]
          },
          "docs": "Generates a certificate PDF for one credential."
        },
        {
          "info": {
            "name": "Verify blockchain credential",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accredible.com/v1/credentials/blockchain_data/:encoded_id",
            "params": [
              {
                "name": "encoded_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the blockchain verification record for an encoded credential ID."
        },
        {
          "info": {
            "name": "Redirect to a credential",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.accredible.com/v1/issuer/credential_redirect",
            "params": [
              {
                "name": "issuer_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Resolves and redirects to a credential's public page."
        }
      ]
    }
  ],
  "bundled": true
}