Skip to main content
POST
/
profiles
Create Profile
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
username
string
required
Example:

"john_doe"

referral
string
required
Example:

"REF12345"

Response

Profile created successfully

message
string
Example:

"Profile created successfully"

profile
object
I