Skip to content
gist.link ↗

saveAgentConfig

Mutation Phone API — POST https://phone.api.gist.link/graphql

The saveAgentConfig mutation on the Phone API.

phone:mutation:saveAgentConfig

The calling IAM key must hold this permission (or a wildcard that covers it: phone:mutation:* or phone:*) and the access token must have been minted with audience=phone. See Permissions.

type Mutation {
saveAgentConfig(input: SaveAgentConfigInput!): AgentConfig!
}
Argument Type Required Description
input SaveAgentConfigInput! Yes —

AgentConfig! — see the Phone types reference.

Terminal window
curl https://phone.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation SaveAgentConfig($input: SaveAgentConfigInput!) { saveAgentConfig(input: $input) { uuid name persona faqs messageFields createdAt updatedAt } }",
"variables": {
"input": {
"name": "Example",
"persona": "example"
}
}
}
JSON