https://appwrite.io/v1/avatars/flags/{code}You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.
Country Code. ISO Alpha-2 country code format.
Image width. Pass an integer between 0 to 2000. Defaults to 100.
Image height. Pass an integer between 0 to 2000. Defaults to 100.
Image quality. Pass an integer between 0 to 100. Defaults to 100.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request GET \
--url 'https://appwrite.io/v1/avatars/flags/{code}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}https://appwrite.io/v1/avatars/flags/{code}You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings.
Country Code. ISO Alpha-2 country code format.
Image width. Pass an integer between 0 to 2000. Defaults to 100.
Image height. Pass an integer between 0 to 2000. Defaults to 100.
Image quality. Pass an integer between 0 to 100. Defaults to 100.
{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
}
}curl --request GET \
--url 'https://appwrite.io/v1/avatars/flags/{code}' \
--header 'accept: application/json' \
--header 'content-type: application/json'{
"success": true,
"data": {
"id": "abc123",
"created_at": "2025-01-01T00:00:00Z"
}
}