UnoRouter Redemption API

The Redemption API from UnoRouter, for redemption.

GitHub OpenAPI

Operations 8

GET /api/redemption/ Get All Redemptions #
POST /api/redemption/ Add Redemption #
PUT /api/redemption/ Update Redemption #
POST /api/redemption/batch Delete Redemption Batch #
DELETE /api/redemption/invalid Delete Invalid Redemption #
GET /api/redemption/search Search Redemptions #
DELETE /api/redemption/{id} Delete Redemption #
GET /api/redemption/{id} Get Redemption #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-redemption-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unorouter-com-redemption-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Redemption API
  version: 0.0.1
tags:
- name: Redemption
paths:
  /api/redemption/:
    get:
      operationId: getAllRedemptions
      parameters:
      - description: Page number (1-based)
        in: query
        name: p
        schema:
          type: integer
      - description: Items per page
        in: query
        name: page_size
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Redemption'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Redemption'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get All Redemptions
      tags:
      - Redemption
    post:
      operationId: addRedemption
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Redemption'
        description: Request body for model.Redemption
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-string'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-string'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Add Redemption
      tags:
      - Redemption
    put:
      operationId: updateRedemption
      parameters:
      - description: Only update status
        in: query
        name: status_only
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Redemption'
        description: Request body for model.Redemption
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_model.Redemption'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_model.Redemption'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Update Redemption
      tags:
      - Redemption
  /api/redemption/batch:
    post:
      operationId: deleteRedemptionBatch
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/ApiResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Delete Redemption Batch
      tags:
      - Redemption
  /api/redemption/invalid:
    delete:
      operationId: deleteInvalidRedemption
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_int64'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_int64'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Delete Invalid Redemption
      tags:
      - Redemption
  /api/redemption/search:
    get:
      operationId: searchRedemptions
      parameters:
      - description: Page number (1-based)
        in: query
        name: p
        schema:
          type: integer
      - description: Items per page
        in: query
        name: page_size
        schema:
          type: integer
      - description: Search keyword
        in: query
        name: keyword
        schema:
          type: string
      - description: Redemption status filter
        in: query
        name: status
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Redemption'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.PageData-model.Redemption'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Search Redemptions
      tags:
      - Redemption
  /api/redemption/{id}:
    delete:
      operationId: deleteRedemption
      parameters:
      - description: Redemption ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Delete Redemption
      tags:
      - Redemption
    get:
      operationId: getRedemption
      parameters:
      - description: Redemption ID
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_model.Redemption'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_model.Redemption'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get Redemption
      tags:
      - Redemption
components:
  schemas:
    Redemption:
      properties:
        count:
          type: integer
        created_time:
          format: int64
          type: integer
        expired_time:
          format: int64
          type: integer
        id:
          type: integer
        key:
          type: string
        name:
          type: string
        quota:
          type: integer
        redeemed_time:
          format: int64
          type: integer
        status:
          type: integer
        used_user_id:
          type: integer
        user_id:
          type: integer
      required:
      - DeletedAt
      - count
      - created_time
      - expired_time
      - id
      - key
      - name
      - quota
      - redeemed_time
      - status
      - used_user_id
      - user_id
      type: object
    Response_model.Redemption:
      description: Response_model.Redemption schema
      properties:
        data:
          $ref: '#/components/schemas/Redemption'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    ApiResponse:
      properties:
        data: {}
        message:
          type: string
        object:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    Response_Array-string:
      description: Response_Array-string schema
      properties:
        data:
          items:
            type: string
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    Response_int64:
      description: Response_int64 schema
      properties:
        data:
          format: int64
          type: integer
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    MessageResponse:
      properties:
        message:
          type: string
        success:
          type: boolean
      required:
      - message
      - success
      type: object
    Response_dto.PageData-model.Redemption:
      description: Response_dto.PageData-model.Redemption schema
      properties:
        data:
          properties:
            items:
              items:
                $ref: '#/components/schemas/Redemption'
              type:
              - array
              - 'null'
            page:
              type: integer
            page_size:
              type: integer
            total:
              type: integer
          required:
          - items
          - page
          - page_size
          - total
          type: object
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey