POST
/
v1
/
{project_id}
/
invited_by
Submit referral
curl --request POST \
  --url https://api.dashgram.io/v1/{project_id}/invited_by \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": 123,
  "invited_by": 123,
  "source": "<string>"
}'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
integer
required

Numeric project identifier

Body

application/json
user_id
integer
required

The ID of the referred user

invited_by
integer
required

The ID of the user who invited them

source
string | null

Optional source of the referral

Response

200 - application/json

Successfully recorded referral

status
string

Status of the referral processing