Skip to content

OAuth

Overview

The Acclaim platform allows an authorized organization to offer its users limited access to their public badges from the organization's own website. This is accomplished via the OAuth2 protocol.

Requesting a Client ID and Client Secret

Contact your Acclaim representative, and let them know that you'd like to integrate via OAuth. A client ID and client secret will be created and shared with you.

Reference Client

A reference OAuth2 client written in Ruby can be found on github.

If that client isn't useful in your environment, you should be able to use the appropriate OAuth2 library to provide access to Acclaim from your application.

Allowing Users to Authorize your Application

First, you'll need to redirect your user to Acclaim to request access:

GET https://www.youracclaim.com/oauth/authorize

Parameters

Name Description
client_id Required. This is the Client ID you received when you registered your application above.
redirect_uri Required. The URL in your app where users will be sent after authorization.
response_type Required. Must be the string code.
state A random string, which can be used by your application to protect against cross-site request forgery. Acclaim will return state to your redirect_uri.

Response

The user's browser will be redirected to the redirect_uri you supplied, with a code parameter. For example, if you set redirect_uri to https://example.com/oauth2/callback, the redirect would look something like https://example.com/oauth2/callback?code=a3077499544894c2c0a0daf54f6b0a28205b38f84c7c501c97f72f459e705f68

Getting an Access Token

Once the user authorizes your application to access Acclaim on their behalf, Acclaim will redirect them back to your site, using the redirect_uri you supplied in your request. The response will include a code parameter that you'll use to request an access token, and optionally the state parameter you may have supplied.

To get an access token:

POST https://www.youracclaim.com/oauth/token

Parameters

Name Description
client_id Required. This is the Client ID you got when you registered your application, above.
client_secret Required. This is the Client Secret you got when you registered your application, above.
code Required. This is the code obtained from https://www.youracclaim.com/oauth/token, above.
grant_type Required. Must be the string authorization_code.
redirect_uri Required. The URL in your app where users will be sent after authorization.

Response

A successful request will result a JSON document including the access token, for example:

{
    "access_token": "1d59185dda82f9a2ce9a6e15be1ec6619f2578676b24e4e061287a27226f9374",
    "token_type": "bearer",
    "expires_in": 7200
}

Accessing the Acclaim API

Using the access token, you can now access the following resources on behalf of the logged-in user:

Get information about the user record

Request

GET `/oauth/v1/users/self`

Response

200 OK

{
  "data": {
    "bio": "Team-oriented leading edge capacity",
    "email": "user1@example.com",
    "first_name": "Alfred",
    "id": "a27590a2-0ca8-4f18-a48a-e1403d5d3308",
    "last_name": "Skiles",
    "vanity_slug": "alfred-skiles",
    "created_at": "2014-04-01T14:41:00.000Z",
    "updated_at": "2014-04-01T14:41:00.000Z",
    "vanity_url": "https://www.youracclaim.com/user/alfred-skiles",
    "photo": null,
    "photo_url": null
  },
  "metadata": {
  }
}

List the user's public badges

Request

GET `/oauth/v1/users/self/badges`

Response

200 OK

{
  "data": [
    {
      "user": {
        "id": "f9662048-c067-4a56-b898-b7bac3383a4c",
        "email": "f9662048-c067-4a56-b898-b7bac3383a4c@example.com",
        "first_name": "Alfred",
        "last_name": "Skiles",
        "current_position_name": "*****",
        "current_organization_name": "*****",
        "confirmed": true,
        "photo": null,
        "photo_url": null,
        "url": "https://localhost/user/alfred-skiles"
      },
      "issuer": {
        "type": "Organization",
        "id": "ecae7caf-a871-4c9c-b4f6-1e093794df2b",
        "name": "Organization 10",
        "url": "https://api.youracclaim.com/v1/organizations/ecae7caf-a871-4c9c-b4f6-1e093794df2b",
        "vanity_url": "https://localhost/org/organization-10",
        "verified": true
      },
      "badge_template": {
        "id": "30ebf0ad-ace4-46df-8e21-1b77e364e89d",
        "description": "Dynamically deliver go forward e-tailers",
        "global_activity_url": "https://www.example.com/foo",
        "name": "Badge Template 6",
        "state": "active",
        "public": true,
        "badges_count": 0,
        "show_badge_lmi": false,
        "show_lmi_jobs": false,
        "show_skill_tag_links": true,
        "vanity_slug": "badge-template-6",
        "criteria_url_name": null,
        "criteria_url": null,
        "certification": true,
        "state_updated_at": null,
        "created_at": "2014-04-01T14:41:00.000Z",
        "updated_at": "2014-04-01T14:41:00.000Z",
        "template_type": "skill",
        "show_template_settings": false,
        "get_issue_count": 0,
        "image": {
          "id": "ebf46719-2e47-46ef-8f14-a95f1fcb28bc",
          "url": "/system/test/images/ebf46719-2e47-46ef-8f14-a95f1fcb28bc/fake-352x352.png"
        },
        "image_url": "https://cdn.example.com/path/to/image.png",
        "url": "https://localhost/org/organization-10/badge/badge-template-6",
        "owner": {
          "type": "Organization",
          "id": "ecae7caf-a871-4c9c-b4f6-1e093794df2b",
          "name": "Organization 10",
          "url": "https://api.youracclaim.com/v1/organizations/ecae7caf-a871-4c9c-b4f6-1e093794df2b",
          "vanity_url": "https://localhost/org/organization-10",
          "vanity_slug": "organization-10",
          "verified": true
        },
        "alignments": [
          {
            "id": "21a572a1-4505-4d64-936e-712ebad7add2",
            "name": "Alignment 6",
            "url": "http://www.example.com/alignment",
            "description": "Self-enabling cohesive task-force"
          }
        ],
        "recommendations": [
          {
            "id": "da7ead09-247e-4ff2-9353-c2f1ec470866",
            "title": "Go to this URL immediately!",
            "type": "url",
            "activity_url": "http://www.example.com/recommendation"
          }
        ],
        "required_badge_templates": [

        ],
        "badge_template_activities": [
          {
            "id": "5054f25b-2199-4ef6-874a-5c6fa3f49872",
            "title": "Kickboxing Activity",
            "activity_type": "Schedule / Registration",
            "activity_url": "http://www.example.com/awesomepage",
            "required_badge_template_id": null
          }
        ],
        "skills": [
          "Skill 6"
        ]
      },
      "id": "95291ba6-1c53-4b89-a5a7-863d09a15ec3",
      "issued_to": "Alfred Skiles",
      "issued_to_first_name": "Alfred",
      "issued_to_last_name": "Skiles",
      "issuer_earner_id": null,
      "locale": "en",
      "public": true,
      "recipient_email": "user6@example.com",
      "replacement_badge_id": null,
      "revocation_reason": null,
      "state": "accepted",
      "suppress_badge_notification_email": false,
      "created_at": "2014-04-01T14:41:00.000Z",
      "expires_at": "2016-04-01T14:41:00.000Z",
      "expires_at_date": "2016-04-01",
      "issued_at": "2014-04-01T14:41:00.000Z",
      "issued_at_date": "2014-04-01",
      "state_updated_at": "2017-02-08T22:00:02.742Z",
      "image": {
        "id": "ebf46719-2e47-46ef-8f14-a95f1fcb28bc",
        "url": "/system/test/images/ebf46719-2e47-46ef-8f14-a95f1fcb28bc/fake-352x352.png"
      },
      "image_url": "https://cdn.example.com/path/to/image.png",
      "alignments": [
        {
          "name": "Alignment 6",
          "description": "Self-enabling cohesive task-force"
        }
      ],
      "evidence": [
        {
          "id": "fb282261-87ad-4f2f-8624-f49659c521e9",
          "type": "UrlEvidence",
          "name": "Acclaim",
          "description": "Description in URL evidence is optional",
          "value": "http://www.example.com/path-to-earner-specific-evidence"
        },
        {
          "id": "f00a2eeb-6ea1-4243-a3be-8251a1fbc8c9",
          "type": "UrlEvidence",
          "name": "Acclaim",
          "description": "Description in URL evidence is optional",
          "value": "http://www.example.com/path-to-more-earner-specific-evidence"
        }
      ],
      "badge_url": "https://localhost/badges/95291ba6-1c53-4b89-a5a7-863d09a15ec3"
    }
  ],
  "metadata": {
  }
}

Get the information for one of the user's public badges

Request

GET `/oauth/v1/users/self/badges/<badge_id>`

Response

200 OK

{
  "data": {
    "user": {
      "id": "fd82bfca-ea86-498a-97db-180f9f19c7c0",
      "email": "fd82bfca-ea86-498a-97db-180f9f19c7c0@example.com",
      "first_name": "Alfred",
      "last_name": "Skiles",
      "current_position_name": "*****",
      "current_organization_name": "*****",
      "confirmed": true,
      "photo": null,
      "photo_url": null,
      "url": "https://localhost/user/alfred-skiles"
    },
    "issuer": {
      "type": "Organization",
      "id": "20b7613c-47d3-4478-8e4a-815ed3213844",
      "name": "Organization 8",
      "url": "https://api.youracclaim.com/v1/organizations/20b7613c-47d3-4478-8e4a-815ed3213844",
      "vanity_url": "https://localhost/org/organization-8",
      "verified": true
    },
    "badge_template": {
      "id": "06926381-be4b-4198-b8b9-90da6b2bc445",
      "description": "Dynamically deliver go forward e-tailers",
      "global_activity_url": "https://www.example.com/foo",
      "name": "Badge Template 5",
      "state": "active",
      "public": true,
      "badges_count": 0,
      "show_badge_lmi": false,
      "show_lmi_jobs": false,
      "show_skill_tag_links": true,
      "vanity_slug": "badge-template-5",
      "criteria_url_name": null,
      "criteria_url": null,
      "certification": true,
      "state_updated_at": null,
      "created_at": "2014-04-01T14:41:00.000Z",
      "updated_at": "2014-04-01T14:41:00.000Z",
      "template_type": "skill",
      "show_template_settings": false,
      "get_issue_count": 0,
      "image": {
        "id": "0085da4e-388c-494a-a520-200339838123",
        "url": "/system/test/images/0085da4e-388c-494a-a520-200339838123/fake-352x352.png"
      },
      "image_url": "https://cdn.example.com/path/to/image.png",
      "url": "https://localhost/org/organization-8/badge/badge-template-5",
      "owner": {
        "type": "Organization",
        "id": "20b7613c-47d3-4478-8e4a-815ed3213844",
        "name": "Organization 8",
        "url": "https://api.youracclaim.com/v1/organizations/20b7613c-47d3-4478-8e4a-815ed3213844",
        "vanity_url": "https://localhost/org/organization-8",
        "vanity_slug": "organization-8",
        "verified": true
      },
      "alignments": [
        {
          "id": "1335a33e-9356-40f1-ad1d-aa63e626236a",
          "name": "Alignment 5",
          "url": "http://www.example.com/alignment",
          "description": "Self-enabling cohesive task-force"
        }
      ],
      "recommendations": [
        {
          "id": "31b7695d-754a-4bda-9c74-ba0fc0135fec",
          "title": "Go to this URL immediately!",
          "type": "url",
          "activity_url": "http://www.example.com/recommendation"
        }
      ],
      "required_badge_templates": [

      ],
      "badge_template_activities": [
        {
          "id": "33dbe9a0-7840-4531-90e4-55ed48883847",
          "title": "Kickboxing Activity",
          "activity_type": "Schedule / Registration",
          "activity_url": "http://www.example.com/awesomepage",
          "required_badge_template_id": null
        }
      ],
      "skills": [
        "Skill 5"
      ]
    },
    "id": "eaa62a55-7184-4584-81ff-ff524c155d80",
    "issued_to": "Alfred Skiles",
    "issued_to_first_name": "Alfred",
    "issued_to_last_name": "Skiles",
    "issuer_earner_id": null,
    "locale": "en",
    "public": true,
    "recipient_email": "user5@example.com",
    "replacement_badge_id": null,
    "revocation_reason": null,
    "state": "accepted",
    "suppress_badge_notification_email": false,
    "created_at": "2014-04-01T14:41:00.000Z",
    "expires_at": "2016-04-01T14:41:00.000Z",
    "expires_at_date": "2016-04-01",
    "issued_at": "2014-04-01T14:41:00.000Z",
    "issued_at_date": "2014-04-01",
    "state_updated_at": "2017-02-08T22:00:02.742Z",
    "image": {
      "id": "0085da4e-388c-494a-a520-200339838123",
      "url": "/system/test/images/0085da4e-388c-494a-a520-200339838123/fake-352x352.png"
    },
    "image_url": "https://cdn.example.com/path/to/image.png",
    "alignments": [
      {
        "name": "Alignment 5",
        "description": "Self-enabling cohesive task-force"
      }
    ],
    "evidence": [
      {
        "id": "7bd0d8e2-4495-4f87-a734-57695fe02d4c",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-earner-specific-evidence"
      },
      {
        "id": "7e9d5273-164e-4d3d-8bf1-ed0f21a4c207",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-more-earner-specific-evidence"
      }
    ],
    "badge_url": "https://localhost/badges/eaa62a55-7184-4584-81ff-ff524c155d80"
  },
  "metadata": {
  }
}

Accept a pending badge

Note that only pending badges issued by the authorized organization can be accepted via OAuth.

Request

PUT `/oauth/v1/users/self/badges/<badge_id>/accept`

Response

200 OK

{
  "data": {
    "user": {
      "id": "e122c264-5a8c-494f-adfa-eb00db9e8870",
      "email": "e122c264-5a8c-494f-adfa-eb00db9e8870@example.com",
      "first_name": "Alfred",
      "last_name": "Skiles",
      "current_position_name": "*****",
      "current_organization_name": "*****",
      "confirmed": true,
      "photo": null,
      "photo_url": null,
      "url": "https://localhost/user/alfred-skiles"
    },
    "issuer": {
      "type": "Organization",
      "id": "d2b6a364-4e40-43b5-a3fd-f7a87b60f753",
      "name": "Organization 1",
      "url": "https://api.youracclaim.com/v1/organizations/d2b6a364-4e40-43b5-a3fd-f7a87b60f753",
      "vanity_url": "https://localhost/org/organization-1",
      "verified": true
    },
    "badge_template": {
      "id": "80e73481-d9c8-4e28-abb9-2c44d44373a1",
      "description": "Dynamically deliver go forward e-tailers",
      "global_activity_url": "https://www.example.com/foo",
      "name": "Badge Template 2",
      "state": "active",
      "public": true,
      "badges_count": 0,
      "show_badge_lmi": false,
      "show_lmi_jobs": false,
      "show_skill_tag_links": true,
      "vanity_slug": "badge-template-2",
      "criteria_url_name": null,
      "criteria_url": null,
      "certification": true,
      "state_updated_at": null,
      "created_at": "2014-04-01T14:41:00.000Z",
      "updated_at": "2014-04-01T14:41:00.000Z",
      "template_type": "skill",
      "show_template_settings": false,
      "get_issue_count": 0,
      "image": {
        "id": "7e231eb6-1712-4521-bd3f-ebb8f883f651",
        "url": "/system/test/images/7e231eb6-1712-4521-bd3f-ebb8f883f651/fake-352x352.png"
      },
      "image_url": "https://cdn.example.com/path/to/image.png",
      "url": "https://localhost/org/organization-1/badge/badge-template-2",
      "owner": {
        "type": "Organization",
        "id": "d2b6a364-4e40-43b5-a3fd-f7a87b60f753",
        "name": "Organization 1",
        "url": "https://api.youracclaim.com/v1/organizations/d2b6a364-4e40-43b5-a3fd-f7a87b60f753",
        "vanity_url": "https://localhost/org/organization-1",
        "vanity_slug": "organization-1",
        "verified": true
      },
      "alignments": [
        {
          "id": "b5320c53-e67f-4aff-8f3b-a71e4844d96e",
          "name": "Alignment 2",
          "url": "http://www.example.com/alignment",
          "description": "Self-enabling cohesive task-force"
        }
      ],
      "recommendations": [
        {
          "id": "ee6632fc-6da8-48bb-b4a3-e63e7a4b60fe",
          "title": "Go to this URL immediately!",
          "type": "url",
          "activity_url": "http://www.example.com/recommendation"
        }
      ],
      "required_badge_templates": [

      ],
      "badge_template_activities": [
        {
          "id": "e7d296a8-a4c6-48ac-b124-42c4b7af15b6",
          "title": "Kickboxing Activity",
          "activity_type": "Schedule / Registration",
          "activity_url": "http://www.example.com/awesomepage",
          "required_badge_template_id": null
        }
      ],
      "skills": [
        "Skill 2"
      ]
    },
    "id": "29fc1cd1-8265-4c32-aeef-cebc6d3458c4",
    "issued_to": "Alfred Skiles",
    "issued_to_first_name": "Alfred",
    "issued_to_last_name": "Skiles",
    "issuer_earner_id": null,
    "locale": "en",
    "public": true,
    "recipient_email": "user2@example.com",
    "replacement_badge_id": null,
    "revocation_reason": null,
    "state": "accepted",
    "suppress_badge_notification_email": false,
    "created_at": "2014-04-01T14:41:00.000Z",
    "expires_at": "2016-04-01T14:41:00.000Z",
    "expires_at_date": "2016-04-01",
    "issued_at": "2014-04-01T14:41:00.000Z",
    "issued_at_date": "2014-04-01",
    "state_updated_at": "2014-04-01T14:41:00.000Z",
    "image": {
      "id": "7e231eb6-1712-4521-bd3f-ebb8f883f651",
      "url": "/system/test/images/7e231eb6-1712-4521-bd3f-ebb8f883f651/fake-352x352.png"
    },
    "image_url": "https://cdn.example.com/path/to/image.png",
    "alignments": [
      {
        "name": "Alignment 2",
        "description": "Self-enabling cohesive task-force"
      }
    ],
    "evidence": [
      {
        "id": "de76194f-bc4f-4008-ae5c-302c8e1c38d1",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-earner-specific-evidence"
      }
    ],
    "badge_url": "https://localhost/badges/29fc1cd1-8265-4c32-aeef-cebc6d3458c4"
  },
  "metadata": {
  }
}

Reject a badge

Request

PUT `/oauth/v1/users/self/badges/<badge_id>/reject`

Response

200 OK

{
  "data": {
    "user": {
      "id": "18e2e35e-29a6-4f8e-beca-d17d0f8f975c",
      "email": "18e2e35e-29a6-4f8e-beca-d17d0f8f975c@example.com",
      "first_name": "Alfred",
      "last_name": "Skiles",
      "current_position_name": "*****",
      "current_organization_name": "*****",
      "confirmed": true,
      "photo": null,
      "photo_url": null,
      "url": "https://localhost/user/alfred-skiles"
    },
    "issuer": {
      "type": "Organization",
      "id": "ba0b4596-4ad0-4eef-98e6-0d2efea56fdc",
      "name": "Organization 4",
      "url": "https://api.youracclaim.com/v1/organizations/ba0b4596-4ad0-4eef-98e6-0d2efea56fdc",
      "vanity_url": "https://localhost/org/organization-4",
      "verified": true
    },
    "badge_template": {
      "id": "f1511e6d-7659-4745-9708-4cd66d090674",
      "description": "Dynamically deliver go forward e-tailers",
      "global_activity_url": "https://www.example.com/foo",
      "name": "Badge Template 3",
      "state": "active",
      "public": true,
      "badges_count": 0,
      "show_badge_lmi": false,
      "show_lmi_jobs": false,
      "show_skill_tag_links": true,
      "vanity_slug": "badge-template-3",
      "criteria_url_name": null,
      "criteria_url": null,
      "certification": true,
      "state_updated_at": null,
      "created_at": "2014-04-01T14:41:00.000Z",
      "updated_at": "2014-04-01T14:41:00.000Z",
      "template_type": "skill",
      "show_template_settings": false,
      "get_issue_count": 0,
      "image": {
        "id": "e9ac4351-1aa4-4e25-b4bf-4eaddeaf5ffb",
        "url": "/system/test/images/e9ac4351-1aa4-4e25-b4bf-4eaddeaf5ffb/fake-352x352.png"
      },
      "image_url": "https://cdn.example.com/path/to/image.png",
      "url": "https://localhost/org/organization-4/badge/badge-template-3",
      "owner": {
        "type": "Organization",
        "id": "ba0b4596-4ad0-4eef-98e6-0d2efea56fdc",
        "name": "Organization 4",
        "url": "https://api.youracclaim.com/v1/organizations/ba0b4596-4ad0-4eef-98e6-0d2efea56fdc",
        "vanity_url": "https://localhost/org/organization-4",
        "vanity_slug": "organization-4",
        "verified": true
      },
      "alignments": [
        {
          "id": "69845b99-b208-4af9-9262-0604d8fc49cf",
          "name": "Alignment 3",
          "url": "http://www.example.com/alignment",
          "description": "Self-enabling cohesive task-force"
        }
      ],
      "recommendations": [
        {
          "id": "233372b5-23d5-4f21-9d65-6dfc0784b8fe",
          "title": "Go to this URL immediately!",
          "type": "url",
          "activity_url": "http://www.example.com/recommendation"
        }
      ],
      "required_badge_templates": [

      ],
      "badge_template_activities": [
        {
          "id": "5d995f92-4b75-4b71-b8b3-75d907f58f1a",
          "title": "Kickboxing Activity",
          "activity_type": "Schedule / Registration",
          "activity_url": "http://www.example.com/awesomepage",
          "required_badge_template_id": null
        }
      ],
      "skills": [
        "Skill 3"
      ]
    },
    "id": "6863a669-4df7-43cb-8f9b-1cd88295e80a",
    "issued_to": "Alfred Skiles",
    "issued_to_first_name": "Alfred",
    "issued_to_last_name": "Skiles",
    "issuer_earner_id": null,
    "locale": "en",
    "public": true,
    "recipient_email": "user3@example.com",
    "replacement_badge_id": null,
    "revocation_reason": null,
    "state": "rejected",
    "suppress_badge_notification_email": false,
    "created_at": "2014-04-01T14:41:00.000Z",
    "expires_at": "2016-04-01T14:41:00.000Z",
    "expires_at_date": "2016-04-01",
    "issued_at": "2014-04-01T14:41:00.000Z",
    "issued_at_date": "2014-04-01",
    "state_updated_at": "2014-04-01T14:41:00.000Z",
    "image": {
      "id": "e9ac4351-1aa4-4e25-b4bf-4eaddeaf5ffb",
      "url": "/system/test/images/e9ac4351-1aa4-4e25-b4bf-4eaddeaf5ffb/fake-352x352.png"
    },
    "image_url": "https://cdn.example.com/path/to/image.png",
    "alignments": [
      {
        "name": "Alignment 3",
        "description": "Self-enabling cohesive task-force"
      }
    ],
    "evidence": [
      {
        "id": "76c88351-6d53-4760-aaca-5af177eeeaa9",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-earner-specific-evidence"
      },
      {
        "id": "b8a83796-2ccc-4d5e-988a-ff383a840019",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-more-earner-specific-evidence"
      }
    ]
  },
  "metadata": {
  }
}

Update one of the user's public badges

Request

PUT `/oauth/v1/users/self/badges/<badge_id>`

Request Body

{
  "public": false
}

Response

200 OK

{
  "data": {
    "user": {
      "id": "b08b0beb-ca96-4c35-b24b-53e890f28ca1",
      "email": "b08b0beb-ca96-4c35-b24b-53e890f28ca1@example.com",
      "first_name": "Alfred",
      "last_name": "Skiles",
      "current_position_name": "*****",
      "current_organization_name": "*****",
      "confirmed": true,
      "photo": null,
      "photo_url": null,
      "url": "https://localhost/user/alfred-skiles"
    },
    "issuer": {
      "type": "Organization",
      "id": "4bb5a096-c751-42fe-bcba-51be667d5620",
      "name": "Organization 6",
      "url": "https://api.youracclaim.com/v1/organizations/4bb5a096-c751-42fe-bcba-51be667d5620",
      "vanity_url": "https://localhost/org/organization-6",
      "verified": true
    },
    "badge_template": {
      "id": "eeaee18f-3340-477e-9121-2931cb112a38",
      "description": "Dynamically deliver go forward e-tailers",
      "global_activity_url": "https://www.example.com/foo",
      "name": "Badge Template 4",
      "state": "active",
      "public": true,
      "badges_count": 0,
      "show_badge_lmi": false,
      "show_lmi_jobs": false,
      "show_skill_tag_links": true,
      "vanity_slug": "badge-template-4",
      "criteria_url_name": null,
      "criteria_url": null,
      "certification": true,
      "state_updated_at": null,
      "created_at": "2014-04-01T14:41:00.000Z",
      "updated_at": "2014-04-01T14:41:00.000Z",
      "template_type": "skill",
      "show_template_settings": false,
      "get_issue_count": 0,
      "image": {
        "id": "62639042-245b-48c4-b3f9-50e02400c9bb",
        "url": "/system/test/images/62639042-245b-48c4-b3f9-50e02400c9bb/fake-352x352.png"
      },
      "image_url": "https://cdn.example.com/path/to/image.png",
      "url": "https://localhost/org/organization-6/badge/badge-template-4",
      "owner": {
        "type": "Organization",
        "id": "4bb5a096-c751-42fe-bcba-51be667d5620",
        "name": "Organization 6",
        "url": "https://api.youracclaim.com/v1/organizations/4bb5a096-c751-42fe-bcba-51be667d5620",
        "vanity_url": "https://localhost/org/organization-6",
        "vanity_slug": "organization-6",
        "verified": true
      },
      "alignments": [
        {
          "id": "736c82b2-1615-4076-b568-d44e8c4efeb5",
          "name": "Alignment 4",
          "url": "http://www.example.com/alignment",
          "description": "Self-enabling cohesive task-force"
        }
      ],
      "recommendations": [
        {
          "id": "6269c345-a6aa-4d70-b177-aca6b34f5cbc",
          "title": "Go to this URL immediately!",
          "type": "url",
          "activity_url": "http://www.example.com/recommendation"
        }
      ],
      "required_badge_templates": [

      ],
      "badge_template_activities": [
        {
          "id": "9627069d-3530-4130-940f-a8d71b9eba10",
          "title": "Kickboxing Activity",
          "activity_type": "Schedule / Registration",
          "activity_url": "http://www.example.com/awesomepage",
          "required_badge_template_id": null
        }
      ],
      "skills": [
        "Skill 4"
      ]
    },
    "id": "857df9db-9b00-4c68-8530-328430aabdf2",
    "issued_to": "Alfred Skiles",
    "issued_to_first_name": "Alfred",
    "issued_to_last_name": "Skiles",
    "issuer_earner_id": null,
    "locale": "en",
    "public": false,
    "recipient_email": "user4@example.com",
    "replacement_badge_id": null,
    "revocation_reason": null,
    "state": "accepted",
    "suppress_badge_notification_email": false,
    "created_at": "2014-04-01T14:41:00.000Z",
    "expires_at": "2016-04-01T14:41:00.000Z",
    "expires_at_date": "2016-04-01",
    "issued_at": "2014-04-01T14:41:00.000Z",
    "issued_at_date": "2014-04-01",
    "state_updated_at": "2017-02-08T22:00:02.742Z",
    "image": {
      "id": "62639042-245b-48c4-b3f9-50e02400c9bb",
      "url": "/system/test/images/62639042-245b-48c4-b3f9-50e02400c9bb/fake-352x352.png"
    },
    "image_url": "https://cdn.example.com/path/to/image.png",
    "alignments": [
      {
        "name": "Alignment 4",
        "description": "Self-enabling cohesive task-force"
      }
    ],
    "evidence": [
      {
        "id": "42527be1-a324-44f9-9ef1-77d19f63d8fd",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-earner-specific-evidence"
      },
      {
        "id": "5026d0bd-139a-41e4-986b-86c569939735",
        "type": "UrlEvidence",
        "name": "Acclaim",
        "description": "Description in URL evidence is optional",
        "value": "http://www.example.com/path-to-more-earner-specific-evidence"
      }
    ]
  },
  "metadata": {
  }
}

List the organizations that the user autoaccepts badges from

Request

GET `/oauth/v1/users/self/autoaccepts`

Response

200 OK

{
  "data": [
    {
      "id": "8ea34eff-7b30-46ae-8065-19cfe2abb4d4",
      "name": "Organization 1251",
      "website_url": "http://www.example.com/",
      "webhook_url": "https://example.com/webhook.asp",
      "contact_email": "hello1252@example.com",
      "technical_contact_email": "person1249@example.com",
      "zip_or_postal_code": "55437",
      "organization_type": "Dynamic Markets Engineering",
      "bio": "Function-based eco-centric standardization gurus",
      "twitter_url": "https://twitter.com/example",
      "vanity_slug": "organization-1251",
      "facebook_url": "https://www.facebook.com/example",
      "linked_in_url": "https://www.linkedin.com/example",
      "linkedin_a2p_url": "https://www.linkedin.com/profile/add?_ed=foo",
      "city": "Bloomington",
      "address": "1313 Mockingbird Lane",
      "location": "1313 Mockingbird Lane Bloomington Minnesota 55437 United States",
      "country": "United States",
      "state_or_province": "Minnesota",
      "created_at": "2014-04-01T14:41:00.000Z",
      "updated_at": "2014-04-01T14:41:00.000Z",
      "vanity_url": "https://www.youracclaim.com/org/organization-1251",
      "verified_at": "2014-09-12T15:32:28.636Z",
      "verified": true,
      "photo": {
        "id": "7c5e4b37-12ea-425c-b376-d26ef6676b25",
        "url": "https://cdn.example.com/path/to/image.png"
      },
      "photo_url": "https://cdn.example.com/path/to/image.png"
    }
  ],
  "metadata": {
  }
}

Delete an Autoaccept record for the user

Request

DELETE `/oauth/v1/users/self/autoaccepts/<organization_id>`

Response

204 No Content