# iris AI Messenger - Purchase Credit Pack

> iris AI Messenger - Purchase Credit Pack is a paid API for AI agents from api.iris-ai.dev, paid per call via x402, $2.25/call, status unknown (last checked 2026-09-13).

Purchases a credit pack for an iris AI outreach campaign, adding credits to the account balance for running multi-channel messaging campaigns.

## Facts

- Endpoint: POST https://api.iris-ai.dev/agent/credits
- Price: $2.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/iris-ai-messenger-purchase-credit-pack-0fbea546
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PsNzYb_4BLZ8jEXPefPdz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability iris-ai-messenger-purchase-credit-pack-0fbea546 -d '<json body>'
```

Example prompt: I want to set up an iris outreach campaign called 'Morning Bloom Launch' with the goal of promoting my coffee shop — can you purchase a credit pack for it using https://morningbloom.com as the product URL and 'Morning Bloom Coffee' as the product name?

## When to prefer this

Use this endpoint when an AI agent needs to fund or top up an iris AI messenger campaign before running multi-channel outreach across email, Instagram, or Twitter. This is the billing/credits step, not the message-sending step — choose this before launching or when the campaign balance is depleted.

## Known failure modes

- Insufficient USDC balance — payment of $2.25 cannot be processed
- Missing required fields: 'name' or 'objective_type' not provided
- Invalid product_url format — must be a valid URI
- Campaign name conflict or duplicate submission
- Payment authorization failure via x402 protocol

## How this service works

iris is the ai messenger. run outreach campaigns across email, Instagram, and Twitter. discover leads, personalize messages, and manage conversations.

## Output

Returns a JSON object containing the purchased pack ID (e.g. 'pack_5'), the price paid in USD (e.g. '$12.00'), the number of credits added, and the new total credit balance on the account.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "pack": {
       "type": "string"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "pack_id": {
       "type": "string"
      },
      "price_usd": {
       "type": "string"
      },
      "new_balance": {
       "type": "integer"
      },
      "credits_added": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pack_id": "pack_5",
  "price_usd": "12.00",
  "new_balance": 5,
  "credits_added": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/iris-ai-messenger-purchase-credit-pack-0fbea546/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.iris-ai.dev](https://www.zero.xyz/host/api.iris-ai.dev/llms.txt)
