List experiences you can invoke
client.Experiences.List(ctx) (*ExperienceListResponse, error)
GET/v3/experiences
The experiences enabled for your account, with the actions you may invoke on each and the fields each action accepts. This is the authoritative list — an action missing here cannot be sent.
List experiences you can invoke
package main
import (
"context"
"fmt"
"github.com/linq-team/linq-go"
"github.com/linq-team/linq-go/option"
)
func main() {
client := linqgo.NewClient(
option.WithAPIKey("My API Key"),
)
experiences, err := client.Experiences.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", experiences.Experiences)
}
{
"experiences": [
{
"actions": [
{
"fields": {
"foo": {
"max": 0,
"required": true,
"type": "string"
}
},
"name": "attach_card",
"summary": "Ask the customer to add a card to their wallet."
}
],
"display_name": "Agentcard",
"experience": "agentcard"
}
]
}{
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/error/codes/3xxx/3006/"
},
"success": false
}Returns Examples
{
"experiences": [
{
"actions": [
{
"fields": {
"foo": {
"max": 0,
"required": true,
"type": "string"
}
},
"name": "attach_card",
"summary": "Ask the customer to add a card to their wallet."
}
],
"display_name": "Agentcard",
"experience": "agentcard"
}
]
}{
"error": {
"status": 401,
"code": 2004,
"message": "Unauthorized - missing or invalid authentication token",
"doc_url": "https://docs.linqapp.com/error/codes/2xxx/2004/"
},
"success": false
}{
"error": {
"status": 500,
"code": 3006,
"message": "Internal server error",
"doc_url": "https://docs.linqapp.com/error/codes/3xxx/3006/"
},
"success": false
}