cURL
curl --request POST \ --url https://sdk-api.playcamp.io/v1/server/sponsors \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "creatorKey": "<string>", "campaignId": "<string>", "isTest": false } '
{ "data": { "userId": "<string>", "campaignId": "<string>", "creatorKey": "<string>", "isActive": true, "sponsoredAt": "2023-11-07T05:31:56Z" } }
User sponsors a creator. Works in upsert mode.
How it works:
Payments made after sponsoring will be attributed to that creator.
Server API Key (format: {keyId}:{secret})
User ID
5-character creator key
Campaign ID (auto-assigned to active campaign if not specified)
Test mode (does not create actual data)
Success
Show child attributes