api_users_retrieve
GET
/api/users/{username}/
const url = 'https://example.com/api/users/example/';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/users/example/ \ --header 'Authorization: <Authorization>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”username
required
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
string
Responses
Section titled “Responses”Media typeapplication/json
object
Example generated
{ "username": "example", "email": "hello@example.com", "name": "example"}