Badgr Issuers API

The Issuers API from Badgr — 3 operation(s) for issuers.

OpenAPI Specification

badgr-issuers-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Badgr Assertions Issuers API
  version: '2.0'
  description: REST API for the Badgr open digital badging platform (Instructure Canvas Credentials), implementing the Open Badges standard. Endpoints and paths in this document are grounded in the open-source badgr-server URL configuration (apps/issuer, apps/backpack, apps/badgeuser) and Badgr's published v2 API docs. Authentication is OAuth2 bearer token obtained from /o/token with the scopes rw:profile, rw:issuer, and rw:backpack. Regional deployments share the same paths under api.eu.badgr.io, api.ca.badgr.io, and api.au.badgr.io.
  contact:
    name: API Evangelist
    email: kin@apievangelist.com
  license:
    name: Badgr API Terms / badgr-server GNU AGPL-3.0 (open source)
    url: https://github.com/concentricsky/badgr-server
servers:
- url: https://api.badgr.io
  description: Badgr US (production)
- url: https://api.eu.badgr.io
  description: Badgr EU region
- url: https://api.ca.badgr.io
  description: Badgr Canada region
- url: https://api.au.badgr.io
  description: Badgr Australia region
security:
- OAuth2: []
tags:
- name: Issuers
paths:
  /v2/issuers:
    get:
      tags:
      - Issuers
      summary: List issuers
      responses:
        '200':
          description: A list of issuers the user can access.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/Status'
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Issuer'
    post:
      tags:
      - Issuers
      summary: Create an issuer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Issuer'
      responses:
        '201':
          description: Issuer created.
  /v2/issuers/changed:
    get:
      tags:
      - Issuers
      summary: List issuers changed since a timestamp
      parameters:
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Issuers changed since the given time.
  /v2/issuers/{entityId}:
    parameters:
    - name: entityId
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Issuers
      summary: Get an issuer
      responses:
        '200':
          description: The requested issuer.
    put:
      tags:
      - Issuers
      summary: Update an issuer
      responses:
        '200':
          description: Issuer updated.
    delete:
      tags:
      - Issuers
      summary: Delete an issuer
      responses:
        '204':
          description: Issuer deleted.
components:
  schemas:
    Status:
      type: object
      properties:
        success:
          type: boolean
        description:
          type: string
    Issuer:
      type: object
      properties:
        entityId:
          type: string
        entityType:
          type: string
          example: Issuer
        openBadgeId:
          type: string
          format: uri
        name:
          type: string
        description:
          type: string
        url:
          type: string
          format: uri
        email:
          type: string
        image:
          type: string
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        password:
          tokenUrl: https://api.badgr.io/o/token
          scopes:
            rw:profile: Read and write the user profile
            rw:issuer: Read and write issuers, badge classes, and assertions
            rw:backpack: Read and write the earner backpack and collections
        authorizationCode:
          authorizationUrl: https://api.badgr.io/o/authorize
          tokenUrl: https://api.badgr.io/o/token
          scopes:
            rw:profile: Read and write the user profile
            rw:issuer: Read and write issuers, badge classes, and assertions
            rw:backpack: Read and write the earner backpack and collections