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

# Reward a social post

> Reward a user for their social post.



## OpenAPI

````yaml /api-reference/openapi.documented.json post /api/loyalty/posts/{id}/reward
openapi: 3.0.2
info:
  title: Snag Solutions - API Docs
  description: >-
    Documentation for Loyalty & Socials APIs. Some endpoints require an API key
    to authenticate. To obtain a key, reach out to the Snag Solutions team at
    support@snagsolutions.io.
  version: '0.1'
servers:
  - url: https://admin.snagsolutions.io/
    description: Production
security: []
paths:
  /api/loyalty/posts/{id}/reward:
    post:
      tags:
        - Social Posts
      summary: Reward a social post
      description: Reward a user for their social post.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                loyaltyCurrencyId:
                  type: string
                  format: uuid
                  title: Loyalty Currency ID
                  description: UUID of the loyalty currency to reward with
                  example: 123e4567-e89b-12d3-a456-426614174000
                amount:
                  type: number
                  minimum: 1
                  maximum: 1000000
                  title: Amount
                  description: Amount to reward
                  example: 100
              required:
                - loyaltyCurrencyId
                - amount
              title: Reward Post Request
              description: Request body for rewarding a social post
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  transaction:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      amount:
                        type: number
                      loyaltyCurrencyId:
                        type: string
                        format: uuid
                    required:
                      - id
                      - amount
                      - loyaltyCurrencyId
                required:
                  - success
                  - transaction
                title: Reward Post Response
                description: Response containing the reward transaction details
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Forbidden, Could not validate api key
                required:
                  - message
                title: Forbidden Response
                description: Schema for forbidden response
                example: Forbidden, Could not validate api key
        '500':
          description: '500'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    title: Success
                    description: Indicates operation success
                    example: false
                  message:
                    type: string
                    title: Message
                    description: Error message
                    example: Internal server error
                  debugInfo:
                    type: string
                    title: Debug Info
                    description: Optional debug information
                    example: Stack trace or additional error details
                required:
                  - success
                  - message
                title: Internal Server Error Response
                description: Schema for internal server error response

````