Warning: Deprecated

This endpoint has been deprecated in favor of the /invites-accepted (plural) endpoint. All new integrations should use that endpoint instead.

YesGraph’s Invite API endpoints can help us tune the contact rankings for your app. We can find people and relationships that are similar to past successful invites.

This endpoint should be called when someone accepts an invitation.

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.
accepted_at optional date The date and time the invitation was accepted. If not provided, this field defaults to the current time. The format should be an ISO 8601 date string or a Unix timestamp (integer). See the Dates section for details.
new_user_id optional date The new user ID that was the result of accepting the invite, if available.
# Use YesGraph's Python SDK 
# https://github.com/yesgraph/python-yesgraph
from yesgraph import YesGraphAPI
api = YesGraphAPI("YOUR_SECRET_KEY")

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

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