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

# configurePushCredential



## OpenAPI

````yaml /openapi.json put /api/v1/push/credentials
openapi: 3.1.0
info:
  title: Galinum API
  version: '2026-08-22'
  description: >-
    Galinum's HTTP API. SDK endpoints power the browser SDK. Management
    endpoints use a project secret. The scoped hosted-agent credential writes
    only through lease-fenced evaluation and GitHub source endpoints.
    Managed-only operations return 501 on the self-host server.
servers:
  - url: https://galinum.com
    description: Production
security:
  - publishableKey: []
paths:
  /api/v1/push/credentials:
    put:
      tags:
        - Push
      summary: configurePushCredential
      operationId: configurePushCredential
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushCredentialInput'
        description: 'Maximum encoded body size: 65536 bytes.'
      responses:
        '200':
          description: Successful operation. Acceptance is distinct from device receipt.
          content:
            application/json:
              schema:
                type: object
                properties:
                  credential:
                    $ref: '#/components/schemas/PushCredentialView'
                required:
                  - credential
                additionalProperties: false
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '404':
          description: Not found
        '409':
          description: Conflict
        '413':
          description: Body too large
        '429':
          description: Rate limit
        '503':
          description: Configuration or capacity unavailable
      security:
        - secretKey: []
components:
  schemas:
    PushCredentialInput:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 256
        platform:
          type: string
          enum:
            - ios
            - android
        environment:
          type: string
          enum:
            - development
            - production
        expectedRevision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        credential:
          $ref: '#/components/schemas/PushCredential'
      required:
        - appId
        - platform
        - environment
        - expectedRevision
        - credential
      additionalProperties: false
    PushCredentialView:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 128
        appId:
          type: string
          minLength: 1
          maxLength: 256
        platform:
          type: string
          enum:
            - ios
            - android
        environment:
          type: string
          enum:
            - development
            - production
        revision:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        validation:
          type: string
          enum:
            - local_valid
      required:
        - id
        - appId
        - platform
        - environment
        - revision
        - validation
      additionalProperties: false
    PushCredential:
      oneOf:
        - type: object
          properties:
            provider:
              type: string
              enum:
                - apns
            teamId:
              type: string
              minLength: 1
              maxLength: 10
              pattern: ^[A-Z0-9]{10}$
            keyId:
              type: string
              minLength: 1
              maxLength: 10
              pattern: ^[A-Z0-9]{10}$
            topic:
              type: string
              minLength: 1
              maxLength: 256
            privateKey:
              type: string
              minLength: 1
              maxLength: 16384
          required:
            - provider
            - teamId
            - keyId
            - topic
            - privateKey
          additionalProperties: false
        - type: object
          properties:
            provider:
              type: string
              enum:
                - fcm
            projectId:
              type: string
              minLength: 1
              maxLength: 63
            clientEmail:
              type: string
              minLength: 1
              maxLength: 256
            privateKey:
              type: string
              minLength: 1
              maxLength: 16384
          required:
            - provider
            - projectId
            - clientEmail
            - privateKey
          additionalProperties: false
  securitySchemes:
    publishableKey:
      type: http
      scheme: bearer
      description: >-
        Your project's publishable key (`pk_pub_…`). Safe to expose in the
        browser — it identifies the project and is rate-limited, not secret.
    secretKey:
      type: http
      scheme: bearer
      description: >-
        Your project's secret key (`pk_…`, without the `pub` segment).
        Server-side only — never ship it to a browser. Get it from Settings →
        Projects in the dashboard.

````

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