Skip to main content
GET
/
user_data
/
{user_data_id}
Go (SDK)
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.UserData.Retrieve(ctx, "ud_1Qkm7dXzD8nZV", latitudeshgosdk.Pointer("decoded_content"))
    if err != nil {
        log.Fatal(err)
    }
    if res.UserData != nil {
        // handle response
    }
}
{
  "data": {
    "id": "ud_1Qkm7dXzD8nZV",
    "type": "user_data",
    "attributes": {
      "description": "Breaded fried chicken with waffles, and a side of maple syrup.",
      "content": "QnJlYWRlZCBmcmllZCBjaGlja2VuIHdpdGggd2FmZmxlcywgYW5kIGEgc2lkZSBvZiBtYXBsZSBzeXJ1cC4=",
      "created_at": "2025-07-16T18:37:12+00:00",
      "updated_at": "2025-07-16T18:37:12+00:00",
      "decoded_content": "Breaded fried chicken with waffles, and a side of maple syrup."
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

user_data_id
string
required

Query Parameters

extra_fields[user_data]
string
default:decoded_content

The decoded_content is provided as an extra attribute that shows content in decoded form.

Response

200 - application/vnd.api+json

Success

data
object
meta
object