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

# Accept a package request

> Accepts the brand's package request as-is and books the requested dates. An empty body is valid. Naturally idempotent.



## OpenAPI

````yaml /openapi/creator.yaml post /requests/{requestId}/accept
openapi: 3.1.0
info:
  title: Passionfroot Creator API
  version: 1.0.0-alpha
  description: >
    Access a creator's own partners, collaborations, placements, catalog,
    proposals, and conversations.

    The API is in alpha. Every operation is restricted to the creator account
    that owns the API key.
servers:
  - url: https://workspace.passionfroot.me/api/creators/v1
security:
  - bearerAuth: []
tags:
  - name: Placements
  - name: Partners
  - name: Collaborations
  - name: Conversations
  - name: Catalog
  - name: Requests
  - name: Proposals
paths:
  /requests/{requestId}/accept:
    post:
      tags:
        - Requests
      summary: Accept a package request
      description: >-
        Accepts the brand's package request as-is and books the requested dates.
        An empty body is valid. Naturally idempotent.
      operationId: acceptCreatorRequest
      parameters:
        - $ref: '#/components/parameters/RequestId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptRequestInput'
            example:
              autoInvoice: true
              daysUntilInvoiceDue: 30
              requestAssets: true
      responses:
        '200':
          $ref: '#/components/responses/RequestState'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    RequestId:
      name: requestId
      in: path
      required: true
      schema:
        type: string
  schemas:
    AcceptRequestInput:
      type: object
      additionalProperties: false
      properties:
        autoInvoice:
          type: boolean
        daysUntilInvoiceDue:
          type: integer
          minimum: 1
          maximum: 365
          description: Required when `autoInvoice` is true.
        requestAssets:
          type: boolean
          default: false
        forfeitPendingProposal:
          type: boolean
          default: false
          description: >-
            Must be true to accept the original request while the creator's own
            proposal is pending.
    RequestState:
      type: object
      required:
        - requestId
        - collaborationId
        - status
      properties:
        requestId:
          type: string
        collaborationId:
          type: string
        status:
          type: string
          enum:
            - accepted
            - rejected
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
  responses:
    RequestState:
      description: The request's current state.
      content:
        application/json:
          schema:
            type: object
            required:
              - data
            properties:
              data:
                $ref: '#/components/schemas/RequestState'
          example:
            data:
              requestId: req_abc
              collaborationId: collab_abc
              status: accepted
    BadRequest:
      description: Invalid parameters or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, expired, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The key lacks access or the required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not owned by this creator.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: >-
        The operation conflicts with current state or an identical write is in
        progress.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    TooManyRequests:
      description: Rate limit exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Too many requests, please try again later.
    ServiceUnavailable:
      description: >-
        Temporary key-verification or write-lock infrastructure failure. Retry
        after the indicated delay.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Passionfroot API key
      description: Create an API key from Settings → API in an approved Creator workspace.

````