The YesGraph Developer Hub

Welcome to the YesGraph developer hub. You'll find comprehensive guides and documentation to help you start working with YesGraph as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

/invite-accepted

Should be called when invitee accepts an invite.

accepted_at

optional

date

The date and time the invitation got accepted. It defaults to the current time if not provided. This is an ISO 8601 date string or a Unix timestamp (integer). See the Dates section for details.

email

required (unless phone is present)

string

The email address that the invite was sent to. Use this key if the invite was sent via an email.

phone

required (unless email is present)

string or int

The phone number that the invite was sent to. Use this key if the invite was sent via an SMS.

new_user_id

optional

string or int

The new user ID that was the result of accepting the invite, if available.
Note: if you pass in a numeric invitee ID, it will be converted to a string internally.

# Use YesGraph's Python SDK 
# https://github.com/yesgraph/python-yesgraph
from yesgraph import YesGraphAPI
api = YesGraphAPI("YOUR_SECRET_KEY")
api.post_invite_accepted(email="john.smith@gmail.com")
###

{"message": "Invite accepted added."}
curl -X POST \
    -H 'Authorization: Bearer YOUR_SECRET_KEY' \
    -H 'Content-Type: application/json' \
    -d '{"email": "john.smith@gmail.com"}' \
    https://api.yesgraph.com/v0/invite-accepted
###

{"message": "Invite accepted added."}

/invite-accepted