Get the avatar image of a user
Get the avatar image of a user
Path Parameters
id string required
The ID of the user to retrieve the avatar for
size string required
Possible values: [small
, large
]
The size of the avatar to retrieve
Query Parameters
token string required
The JWT token to retrieve the avatar for
Responses
- 200
- 400
- 401
- 404
- 500
The avatar of the user
image/png
Schema
Schema
string
Invalid request body
application/json
Schema
Example (from schema)
Schema
errors object[]
{
"errors": [
{
"code": "ERROR_CODE",
"message": "An error occurred while calling the endpoint",
"detail": "View more info at developers.rinkel.com"
}
]
}
Unauthorized
The user was not found
Internal Server Error
GET /users/:id/avatar/:size
Request
Request
curl / cURL
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'
nodejs / axios
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'
php / axios
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'
python / requests
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'
ruby / cURL
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'
java / unirest
curl -L -X GET 'https://api.rinkel.com/v1/users/:id/avatar/:size' \
-H 'Accept: image/png'