Authorizations
Response
200 - application/vnd.api+json
Success
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.UserProfile.Get(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "user_BgrNj7anj4IxA7KExoK7SzYAEmE",
"type": "users",
"attributes": {
"first_name": "Ernest",
"last_name": "Moen",
"email": "[email protected]",
"created_at": "2025-06-26T00:00:00+00:00",
"updated_at": "2025-03-03T00:00:00+00:00",
"role": {
"id": "role_kpoKZwloZ9HN140lwRW3sVg20V9",
"name": "owner",
"created_at": "2025-06-18T00:00:00.000Z",
"updated_at": "2026-05-24T00:00:00.000Z"
}
}
},
"meta": {}
}Retrieve the current user profile
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.UserProfile.Get(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "user_BgrNj7anj4IxA7KExoK7SzYAEmE",
"type": "users",
"attributes": {
"first_name": "Ernest",
"last_name": "Moen",
"email": "[email protected]",
"created_at": "2025-06-26T00:00:00+00:00",
"updated_at": "2025-03-03T00:00:00+00:00",
"role": {
"id": "role_kpoKZwloZ9HN140lwRW3sVg20V9",
"name": "owner",
"created_at": "2025-06-18T00:00:00.000Z",
"updated_at": "2026-05-24T00:00:00.000Z"
}
}
},
"meta": {}
}Success
Show child attributes
Was this page helpful?