Invite an existing user (from another site) to a site

Created by Daniil Stasiuk, Modified on Wed, 13 Jul, 2022 at 12:16 PM by Qiang Zheng

The endpoints below are linked with Accept environment.


If the email is linked with a KS user already, and you can invite the user to your current site.


First call the https://clp-accept-user.my-clay.com/swagger/index.html#/Users/get_v1_1_users_search


Fill in 

1. user email or tag number for search_for

2. Current site uid for for_site_id


The response should similar as:


{
    "id": "xxxxxxxx-361f-41d8-bc25-bcdb72ef758d",
    "first_name": "XXX",
    "last_name": "XX",
    "image_url": null,
    "is_managed": false,
    "has_identity": true,
    "is_linked": false
}


    "is_linked": false indicates the user is not part of the site at this moment.


The get the user id from the response, then call this endpoint: https://clp-accept-user.my-clay.com/swagger/index.html#/SiteUsers/post_v1_1_sites__site_id__users_existing


With the user id got from the previous call.


And when you are finished with the actions, use https://clp-accept-user.my-clay.com/swagger/index.html#/SiteUsers/get_v1_1_sites__site_id__users to review the user you have just inivited.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article