Skip to Content
Users

Get details of the current user

GET
/users/me

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
id*integer

The unique ID of the given user

name*string

User's full name

email*string

The e-mail that will uniquely identify the user on the system and become its login credential

url_slug?string

The URL Slug of the user

language*|

The language used to show text given to user

Value in"en""pt"
active*boolean

Tells if the user is active or not

social_accounts*array<|null>
created_at*string

The date and time when the record was created

updated_at*string

The date and time when the record was last updated

Example Request
curl -X GET 'https://api.devopness.com/users/me' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response200
{  "id": 45678,  "name": "Some One",  "email": "someone@example.com",  "url_slug": "someone",  "language": "en",  "active": true,  "social_accounts": [    {      "id": 85324,      "user_id": 6589,      "provider": "github",      "provider_human_readable": "GitHub",      "provider_user_nickname": "Joe Smith",      "is_vcs": true,      "token_expires_at": "2020-09-25T15:50:48.000000Z",      "created_at": "2019-09-25T15:50:48.000000Z",      "updated_at": "2019-09-25T13:52:04.000000Z"    }  ],  "created_at": "2019-09-25T13:22:37.000000Z",  "updated_at": "2019-09-25T13:22:37.000000Z"}