> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get piece details

> Inspect piece actions, triggers, and configuration schemas.

Retrieves complete definition schemas for a single workflow integration piece by its name. Use this endpoint to inspect required property types, default values, and options before creating or updating steps.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `pieceName` | `string` | **Yes** | Identifier of the piece (e.g. `slack`, `discord`, `ai`, `google-sheets`, `x`). |

### cURL Example

```bash theme={null}
curl "https://posttu.com/api/v1/workflow/pieces/slack" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response Example

```json theme={null}
{
  "data": {
    "name": "slack",
    "displayName": "Slack",
    "description": "Channel-based messaging platform",
    "logoUrl": "/icons/slack.svg",
    "categories": ["Communication"],
    "auth": {
      "type": "nango",
      "integrationId": "slack"
    },
    "isScrape": false,
    "actions": [
      {
        "name": "slack_send_message",
        "displayName": "Send Channel Message",
        "description": "Send a message to a Slack channel",
        "category": ["Communication"],
        "props": {
          "channel": {
            "type": "SHORT_TEXT",
            "displayName": "Channel",
            "required": true
          },
          "text": {
            "type": "LONG_TEXT",
            "displayName": "Message Text",
            "required": true
          }
        },
        "requireAuth": true
      }
    ],
    "triggers": [
      {
        "name": "slack_new_message",
        "displayName": "New Message in Channel",
        "description": "Triggers when a new message is posted",
        "type": "WEBHOOK",
        "category": ["Communication"],
        "props": {
          "channel": {
            "type": "SHORT_TEXT",
            "displayName": "Channel",
            "required": true
          }
        }
      }
    ]
  },
  "success": true
}
```


## OpenAPI

````yaml openapi.json GET /api/v1/workflow/pieces/{pieceName}
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/workflow/pieces/{pieceName}:
    get:
      tags:
        - Workflow
      summary: Get single workflow piece details
      description: >-
        Retrieve complete action, trigger, and property schemas for a single
        piece.
      parameters:
        - schema:
            type: string
            description: Piece name
            example: slack
          required: true
          description: Piece name
          name: pieceName
          in: path
      responses:
        '200':
          description: Piece details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PieceDetailsResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '404':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PieceDetailsResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Piece'
        success:
          type: boolean
          default: true
      required:
        - data
    Piece:
      type: object
      properties:
        name:
          type: string
          description: Piece name
          example: slack
        displayName:
          type: string
          description: Display name
          example: Slack
        description:
          type: string
          description: Piece description
          example: Slack integration for messaging
        logoUrl:
          type:
            - string
            - 'null'
          description: Piece logo URL
        version:
          type: string
          description: Piece version
          example: 1.0.0
        category:
          type: string
          description: Piece category
          example: automation
        actions:
          type: array
          items:
            $ref: '#/components/schemas/PieceAction'
          description: Available actions
        triggers:
          type: array
          items:
            $ref: '#/components/schemas/PieceTrigger'
          description: Available triggers
      required:
        - name
        - displayName
        - description
        - version
        - category
    PieceAction:
      type: object
      properties:
        name:
          type: string
          description: Action name
          example: sendMessage
        displayName:
          type: string
          description: Display name
          example: Send Message
        description:
          type: string
          description: Action description
          example: Send a message to a channel
        props:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PieceProperty'
          description: Action properties
      required:
        - name
        - displayName
        - description
        - props
    PieceTrigger:
      type: object
      properties:
        name:
          type: string
          description: Trigger name
          example: webhook
        displayName:
          type: string
          description: Display name
          example: Webhook
        description:
          type: string
          description: Trigger description
          example: Trigger on incoming webhook
        props:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PieceProperty'
          description: Trigger properties
      required:
        - name
        - displayName
        - description
    PieceProperty:
      type: object
      properties:
        name:
          type: string
          description: Property name
          example: channel
        displayName:
          type: string
          description: Display name
          example: Channel
        type:
          type: string
          description: Property type
          example: string
        required:
          type: boolean
          description: Is property required
          example: true
        description:
          type: string
          description: Property description
        options:
          type: array
          items:
            type: object
            additionalProperties: {}
          description: Available options (if dropdown)
        default:
          description: Default value
      required:
        - name
        - displayName
        - type
        - required
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.