⌘
K
GrokAI
About
Ask Grok
Demo
Swagger-UI
GrokAI API
Authentication
User
Quota
Collections
Documents
Conversations
Messages
Docs powered by
Archbee
GrokAI API
User
Get user profile
GET
Try it
Get a user profile by ID
Authentication
X-API-Key
apiKey
Path Parameters
id
string
*
Responses
200
UserProfile
id
string
displayName
string
photoUrl
string
default
Default error response
ErrorResponse
code
integer
*
message
string
*
status
string
*
data
object
Curl
JS
Ruby
Python
1
curl
--location
--globoff
'https://api.askgrok.ai/user/{id}'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
curl --location --globoff 'https://api.askgrok.ai/user/{id}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
Responses
200
default
1
{
2
"id"
:
"user-1234"
,
3
"displayName"
:
"Grok User"
,
4
"photoUrl"
:
"https://api.dicebear.com/6.x/adventurer/svg"
5
}
{ "id": "user-1234", "displayName": "Grok User", "photoUrl": "https://api.dicebear.com/6.x/adventurer/svg" }
PREVIOUS
Update user
NEXT
Get user quota
Docs powered by
Archbee
Docs powered by
Archbee