Skip to main content
GET
/
user_data
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.List(ctx, nil, latitudeshgosdk.Pointer("decoded_content"))
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}
{
  "data": [
    {
      "id": "ud_l0MoLqJGD57pY",
      "type": "user_data",
      "attributes": {
        "description": "Two butter croissants of your choice (plain, almond or cheese). With a side of herb butter or house-made hazelnut spread.",
        "content": "R3Jhbm55IFNtaXRoIGFwcGxlcyBtaXhlZCB3aXRoIGJyb3duIHN1Z2FyIGFuZCBidXR0ZXIgZmlsbGluZywgaW4gYSBmbGFreSBhbGwtYnV0dGVyIGNydXN0LCB3aXRoIGljZSBjcmVhbS4=",
        "created_at": "2025-07-16T18:37:12+00:00",
        "updated_at": "2025-07-16T18:37:12+00:00",
        "decoded_content": "Granny Smith apples mixed with brown sugar and butter filling, in a flaky all-butter crust, with ice cream."
      }
    }
  ],
  "meta": {}
}

Authorizations

Authorization
string
header
required

Query Parameters

filter[project]
string

Project ID or slug

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[]