Profiles
Profiles related to Social
These are authenticated endpoints. You can visit authentication to register an account.
These endpoints allow you to manage profiles. They are the users of the social network and are the owners of posts.
These endpoints support pagination and sorting. Read more about these features here.
The Profile model
| Prop | Type | Default |
|---|---|---|
name | string | - |
email | string | - |
bio | string | - |
banner | object | - |
avatar | object | - |
_count | object | - |
Query parameters
Not all of the properties of a post are returned by default. You can use the following optional query parameters to include additional properties in the response.
| Prop | Type | Default |
|---|---|---|
_following | boolean | false |
_followers | boolean | false |
_posts | boolean | false |
All profiles
Retrieve all profiles.
Single profile
Retrieve a single profile by its id.
All posts by profile
Retrieve all posts made by profile.
The response is the same as the posts endpoint, and accepts the same optional query parameters and flags.
Update profile
Update or set bio, banner and avatar properties.
You may provide any combination of the properties, but at least one must be provided.
Please note that the avatar.url and banner.url properties must be fully formed URLs that links to live and publicly accessible images. The API will check the provided URLs and if they cannot be accessed publicly you will receive a 400 Bad Request error response.
Follow & Unfollow profile
Follow or unfollow another profile by its name.
The request body should be empty.
Search profiles
Search for profiles by their name or bio properties.