# Recognize With Recognition Program — Awardco

> Submit recognition in Awardco, with a recognition program. See the documentation.

- Key: `awardco-recognize-with-recognition-program`
- Type: Action (Write)
- Version: 0.0.2
- App: Awardco (`awardco`) — https://pipedream.com/apps/awardco.md
- This page (HTML): https://pipedream.com/apps/awardco/actions/recognize-with-recognition-program
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/awardco/actions/recognize-with-recognition-program/recognize-with-recognition-program.mjs

## Description

Submit recognition in Awardco, with a recognition program. [See the documentation](https://api.awardco.com/api#tag/recognition/POST/recognize).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `recipients` | `string[]` | Yes | Employee IDs, emails, or usernames of people to recognize (at least one) |
| `note` | `string` | Yes | Short note describing why the user(s) are being recognized |
| `tagNames` | `string[]` | Yes | Optional tags to attach to the recognition |
| `giver` | `string` | No | Who is giving the recognition; leave empty to use the company recognition bot |
| `amount` | `integer` | No | Cash value of the recognition in the company base currency (0 if none) |
| `isPublic` | `boolean` | No | Whether the recognition appears as public in the feed |
| `recognitionProgramId` | `integer` | No | ID of the recognition program |
| `recognitionProgramName` | `string` | No | Name of the recognition program |
| `budgetName` | `string` | Yes | Required when amount is greater than 0 and the program uses allowable access budgets; may be ignored for central or recipient-based budgets |
| `title` | `string` | No | Optional headline (max 50 characters; only when the program has the title question enabled) |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "awardco",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "awardco-recognize-with-recognition-program",
  arguments: {
    recipients: ["Recipients"],
    note: "Note",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "awardco-recognize-with-recognition-program",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    awardco: { authProvisionId: "apn_xxxxxxx" },
    recipients: ["Recipients"],
    note: "Note",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "awardco-recognize-with-recognition-program",
    "configured_props": {
      "awardco": { "authProvisionId": "apn_xxxxxxx" },
      "recipients": ["Recipients"],
      "note": "Note"
    }
  }'
```

---

- App: https://pipedream.com/apps/awardco.md · All apps: https://pipedream.com/apps
