Skip to content
gist.link ↗

createCredential

Mutation Agent Workforce API — POST https://agentworkforce.api.gist.link/graphql

Store a third-party credential (secret sealed at rest, never returned).

agentworkforce:mutation:createCredential

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

type Mutation {
createCredential(input: CreateCredentialInput!): Credential!
}
Argument Type Required Description
input CreateCredentialInput! Yes —

Credential! — see the Agent Workforce types reference.

Terminal window
curl https://agentworkforce.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation CreateCredential($input: CreateCredentialInput!) { createCredential(input: $input) { uuid name type } }",
"variables": {
"input": {
"name": "Example",
"type": "example",
"secret": {
"token": "example",
"header": "example",
"value": "example"
}
}
}
}
JSON