cURL
curl --request POST \ --url https://api.offlineprotocol.com/api/v1/profiles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "username": "john_doe", "referral": "REF12345" } '
{ "message": "Profile created successfully", "profile": { "username": "<string>", "about": "<string>", "socials": { "x": "<string>", "telegram": "<string>", "website": "<string>", "discord": "<string>" }, "location": { "latitude": 123, "longitude": 123 }, "hidden": false } }
Creates a new user profile with a username and optional referral code.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"john_doe"
"REF12345"
Profile created successfully
"Profile created successfully"
Show child attributes