General Input
Integration

geni integration operation

Get one operation's full docs, request shape, params, response, examples, env var names.

geni integration operation <opId> [flags]
geni integration operation <service> <opId> [flags]

Prints the full reference docs for one operation: HTTP method + path, params, scopes required, request/response shapes, code examples, and the bash env var names the credential will set. This is the single most important command for an agent constructing a curl or a script, read this first, then write the call.

Synopsis

geni integration operation 4c21e1ee-4d54-4413-a4f2-80a80dff4c99
geni integration operation slack 4c21e1ee-4d54-4413-a4f2-80a80dff4c99
geni integration operation slack 4c21e1ee… --format markdown      # ready for an LLM context
geni integration operation slack 4c21e1ee… --json                  # machine-readable
Arg / FlagNotes
<service>Optional; the service the op belongs to. Lets you pass a friendlier id format if <opId> isn't a UUID.
<opId>Operation id from geni integration operations.
--format <fmt>text (default), markdown, json.

Output (default, text)

slack · Send a Message
POST https://slack.com/api/chat.postMessage

Sends a message to a channel, DM, or group conversation as the authenticated user.

Required scopes: chat:write
Auth: Authorization: Bearer <accessToken>

Params:
  channel       string  required   Channel ID or name (#general, C0123, …)
  text          string  required   Message text (mrkdwn for formatting)
  thread_ts     string  optional   Reply in thread
  ...

Response:
  { ok: boolean, ts: string, channel: string, message: { ... } }

Bash env vars: $SLACK_ACCESS_TOKEN_<id>, $SLACK_BOT_TOKEN

Example:
  curl -s -X POST https://slack.com/api/chat.postMessage \
    -H "Authorization: Bearer $SLACK_ACCESS_TOKEN_<id>" \
    -H "Content-Type: application/json" \
    -d '{"channel": "#engineering", "text": "Hello"}'

Output (--format markdown)

A formatted markdown block ready to paste into an LLM context window or an agent's prompt. Same content, with proper headings, code fences, and tables.

Exit codes

CodeMeaning
0Returned
4Operation id not found
78Runner session missing or expired
125Network or server error

On this page