User Badge Issuance

Request Details

Item Value
Description

Requests the issuance of a badge to a member.

Due to frequency capping, the member may not be awarded the badge.

Method POST
Endpoint https://[environment]api[client_id].crowdtwist.com/v2.1/users/[user_id]/badges? api_key=[api_key]&id_type=[id_type]
Content Type application/json

Request Query Parameters

Field Name Sample Value Required Format Description
api_key QWERTYP Yes String

Client-configured API key.

user_id user@crowdtwist.com Yes String ID of the user.
id_type Email No String

Type of ID being sent:

  • email

  • facebook_user_id

  • twitter_user_id

  • id (CrowdTwist ID) – default ID if id_type is not specified

  • third_party_id

  • username

  • mobile_phone_number

Sample Request Body

{ "badge_id": 12345, "date_earned": "2022-04-08T17:43:04.000Z", "custom_data": { "customer_variable": "customer data" } }