Create your first user

Ask the Community

Start configuring your Cord project


The sample token you used before was for an automatically created test user. In this step you will learn how to create real users for your project.

Create a user #

First, create a user with an id (cordymccordface in the example) and set the user's name and email.

bash:
cord user create cordymccordface --name 'Cordy McCordface' --email 'your@email.here'
REST:
PUT https://api.cord.com/v1/users/cordymccordface

See https://docs.cord.com/rest-apis/users#Create-or-update-a-user for full usage
cord user create cordymccordface --name 'Cordy McCordface' --email 'your@email.here'
Copy

Create a group #

A core concept in Cord is a "group". A group is just a list of users. Groups are used to control which users see which threads -- every thread belongs to a group, and only the members of that group can see the thread. You can read more here. Let's create a group for our new user Cordy.

bash:
cord group create my-first-group --name 'my first cord group'
REST:
PUT https://api.cord.com/v1/groups/my-first-group

See https://docs.cord.com/rest-apis/groups#Create-or-update-a-group for full usage
cord group create my-first-group --name 'my first cord group'
Copy

Add your user to the group #

To add Cordy to the group you just created, run this command:

bash:
cord group add-member my-first-group --user cordymccordface
REST:
PUT https://api.cord.com/groups/my-first-group/members

See https://docs.cord.com/rest-apis/groups#Update-group-members for full usage
cord group add-member my-first-group --user cordymccordface
Copy

Next Step: Authenticate your user #

In the next step, you'll set up a backend to complete your Cord integration →



Not finding the answer you need? Ask our Developer Community

Ask Cordy