---
updatedAt: 2026-05-27T00:39:46.000Z
agentTools:
  projectIndex: https://docs.trybadge.com/llms.txt
---

# Upload Apple Certificate

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Badge API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.trybadge.com/v0"
    }
  ],
  "security": [
    {
      "WorkspaceAuth": []
    }
  ],
  "tags": [
    {
      "name": "Workspace"
    }
  ],
  "paths": {
    "/workspace/appleCertificates": {
      "post": {
        "operationId": "appleCertificateUpload",
        "tags": [
          "Workspace"
        ],
        "summary": "Upload Apple Certificate",
        "requestBody": {
          "required": true,
          "content": {
            "application/pkix-cert": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "application/x-x509-ca-cert": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "description": "The Apple certificate file (.cer) obtained from your Apple Developer account."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "passTypeIdentifier"
                  ],
                  "properties": {
                    "passTypeIdentifier": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400ErrorMessage"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "responses": {
      "400ErrorMessage": {
        "description": "Invalid input was received.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```