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

# Authenticate portable workload redeem

> Requires an ES256 X-Factorize-Attachment-Proof bound to the exact request. See docs/portable-workloads.md.

Accepts a scoped bearer token or interactive owner session.



## OpenAPI

````yaml /openapi.yaml post /api/v1/workloads/redeem
openapi: 3.1.0
info:
  title: Factorize API
  version: 1.0.0
  description: >-
    Versioned Factorize REST API. See the hosted docs for examples and OAuth
    discovery.
  x-dashboard-auth: >-
    Access-token and authorized-client management require an interactive owner
    session; all other operations accept a suitably scoped bearer token or owner
    session.
servers:
  - url: https://app.factorize.sh
security:
  - bearerAuth: []
paths:
  /api/v1/workloads/redeem:
    post:
      tags:
        - workloads
      summary: Authenticate portable workload redeem
      description: >-
        Requires an ES256 X-Factorize-Attachment-Proof bound to the exact
        request. See docs/portable-workloads.md.


        Accepts a scoped bearer token or interactive owner session.
      operationId: post_api_v1_workloads_redeem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                secret:
                  type: string
                  pattern: ^[A-Za-z0-9_-]{43}$
                key:
                  type: object
                  properties:
                    kty:
                      type: string
                      const: EC
                    crv:
                      type: string
                      const: P-256
                    x:
                      type: string
                      pattern: ^[A-Za-z0-9_-]{43}$
                    'y':
                      type: string
                      pattern: ^[A-Za-z0-9_-]{43}$
                  required:
                    - kty
                    - crv
                    - x
                    - 'y'
                  additionalProperties: false
              required:
                - secret
                - key
              additionalProperties: false
      responses:
        '200':
          description: Authenticate portable workload redeem
          content:
            application/json:
              schema:
                type: object
                properties:
                  active:
                    type: boolean
                required:
                  - active
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - attachmentProof: []
components:
  responses:
    Error400:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: Invalid or revoked credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: Missing scope or required owner session
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error409:
      description: Operation conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error415:
      description: Unsupported media type; use application/json
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error500:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth2
    attachmentProof:
      type: apiKey
      in: header
      name: X-Factorize-Attachment-Proof

````

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