User API
Create a User
POST
https://www.cotter.app/api/v0/user/create
Create a User during registration
Headers
Name | Type | Description |
---|---|---|
API_KEY_ID | string | Your |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
identifier | string | An identifier for the user, like email, phone number, or username |
Example Curl Request:
Get User
GET
https://www.cotter.app/api/v0/user?identifier=<identifier>
Get a User
object using your user's identifier.
Query Parameters
Name | Type | Description |
---|---|---|
identifier | string | The identifier for the user, like the email, phone, or username that was used to create the user. |
Headers
Name | Type | Description |
---|---|---|
API_KEY_ID | string | Your |
Get All Users
GET
https://www.cotter.app/api/v0/user/list?page=0
Get a list of Users
that is registered under your API Key. This endpoint is paginated, each page returns 50 records, ordered by created_at
descendant (newest user shows up first)
Query Parameters
Name | Type | Description |
---|---|---|
page | number | The page number that you want to access. Page numbers start from 0. Each page retrieves 50 records, ordered by |
Headers
Name | Type | Description |
---|---|---|
API_SECRET_KEY | string | Your |
API_KEY_ID | string | Your |
Last updated