curl --request GET \
--url https://auth.cognite.com/api/v1/principals/me{
"id": "5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT",
"type": "SERVICE_ACCOUNT",
"name": "My service account",
"createdBy": {
"orgId": "my-org",
"userId": "-user-string-id-aBc123"
},
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"pictureUrl": "<string>",
"externalId": "my.known.id",
"description": "This is a service account used by data pipeline A-xxx"
}Retrieves the information of the principal issuing the request.
This endpoint is useful for clients to verify their own identity. All authenticated principals can call this endpoint.
curl --request GET \
--url https://auth.cognite.com/api/v1/principals/me{
"id": "5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT",
"type": "SERVICE_ACCOUNT",
"name": "My service account",
"createdBy": {
"orgId": "my-org",
"userId": "-user-string-id-aBc123"
},
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"pictureUrl": "<string>",
"externalId": "my.known.id",
"description": "This is a service account used by data pipeline A-xxx"
}The principal that issued the request.
A principal
Unique identifier of a principal
"5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT"
Principal type
SERVICE_ACCOUNT "SERVICE_ACCOUNT"
Human-readable name of the principal
1 - 50"My service account"
The principal that created the entity.
Show child attributes
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
URL to a picture of the principal
The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
Longer description of a service account
500"This is a service account used by data pipeline A-xxx"
Was this page helpful?