Get Subject
Parameters
subjectID string
Returns
Get Subject
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := lark.NewClient(
option.WithAPIKey("My API Key"),
)
subjectResource, err := client.Subjects.Get(context.TODO(), "subject_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", subjectResource.ID)
}
{
"id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"created_at": "2025-11-01T00:00:00Z",
"email": "john.doe@example.com",
"external_id": "user_1234567890",
"metadata": {},
"name": "John Doe"
}Returns Examples
{
"id": "subj_VyX6Q96h5avMho8O7QWlKeXE",
"created_at": "2025-11-01T00:00:00Z",
"email": "john.doe@example.com",
"external_id": "user_1234567890",
"metadata": {},
"name": "John Doe"
}