Fastly TLS Private Keys API

Operations for managing private keys used to sign TLS certificates.

Operations 4

GET /tls/private_keys List TLS private keys #
POST /tls/private_keys Create a TLS private key #
GET /tls/private_keys/{tls_private_key_id} Get a TLS private key #
DELETE /tls/private_keys/{tls_private_key_id} Delete a TLS private key #

Documentation

📖
Documentation
https://www.fastly.com/documentation/reference/api/services/
📖
Documentation
https://www.fastly.com/documentation/reference/api/purging/
📖
Documentation
https://www.fastly.com/documentation/reference/api/logging/
📖
Documentation
https://www.fastly.com/documentation/reference/api/metrics-stats/
📖
Documentation
https://www.fastly.com/documentation/reference/api/tls/
📖
Documentation
https://www.fastly.com/documentation/reference/api/vcl-services/
📖
Documentation
https://www.fastly.com/documentation/reference/api/account/
📖
Documentation
https://www.fastly.com/documentation/reference/api/auth-tokens/
📖
Documentation
https://www.fastly.com/documentation/reference/api/acls/
📖
Documentation
https://www.fastly.com/documentation/reference/api/dictionaries/
📖
Documentation
https://www.fastly.com/documentation/guides/compute/
📖
Documentation
https://www.fastly.com/documentation/reference/api/ngwaf/
📖
Documentation
https://www.fastly.com/documentation/reference/api/domain-management/
📖
Documentation
https://www.fastly.com/documentation/reference/api/products/
📖
Documentation
https://www.fastly.com/documentation/reference/api/observability/
📖
Documentation
https://www.fastly.com/documentation/reference/api/api-security/
📖
Documentation
https://www.fastly.com/documentation/reference/api/ddos-protection/
📖
Documentation
https://www.fastly.com/documentation/reference/api/client-side-protection/
📖
Documentation
https://www.fastly.com/documentation/reference/api/publishing/
📖
Documentation
https://www.fastly.com/documentation/reference/api/load-balancing/
📖
Documentation
https://www.fastly.com/documentation/reference/api/utils/
📖
Documentation
https://www.fastly.com/products/ai
📖
Documentation
https://www.fastly.com/products/object-storage

Specifications

Other Resources

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/fastly-tls-private-keys-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

fastly-tls-private-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fastly TLS TLS Private Keys API
  description: The Fastly TLS API enables developers to manage TLS certificates, private keys, and domain configurations for securing traffic delivered through Fastly's edge network. It supports both platform TLS (managed certificates) and custom TLS configurations where customers bring their own certificates. The API allows uploading certificates, managing bulk certificate operations, configuring TLS activations, and managing mutual TLS authentication for origin connections.
  version: '1.0'
  contact:
    name: Fastly Support
    url: https://support.fastly.com
  termsOfService: https://www.fastly.com/terms
servers:
- url: https://api.fastly.com
  description: Fastly API Production Server
security:
- apiKeyAuth: []
tags:
- name: TLS Private Keys
  description: Operations for managing private keys used to sign TLS certificates.
paths:
  /tls/private_keys:
    get:
      operationId: listTlsPrivateKeys
      summary: List TLS private keys
      description: Retrieves a list of all TLS private keys associated with the account.
      tags:
      - TLS Private Keys
      parameters:
      - name: page[number]
        in: query
        description: The page number to retrieve.
        schema:
          type: integer
      - name: page[size]
        in: query
        description: The number of items per page.
        schema:
          type: integer
      - name: filter[in_use]
        in: query
        description: Filter to show only keys currently in use.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the list of TLS private keys.
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TlsPrivateKey'
        '401':
          description: Unauthorized. The API token is missing or invalid.
    post:
      operationId: createTlsPrivateKey
      summary: Create a TLS private key
      description: Uploads a new TLS private key. A key can be used to sign multiple certificates.
      tags:
      - TLS Private Keys
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                      - tls_private_key
                    attributes:
                      type: object
                      properties:
                        key:
                          type: string
                          description: The PEM-encoded private key.
                        name:
                          type: string
                          description: A customizable name for the private key.
      responses:
        '201':
          description: Successfully created the TLS private key.
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TlsPrivateKey'
        '400':
          description: Bad request. Missing or invalid key data.
        '401':
          description: Unauthorized. The API token is missing or invalid.
  /tls/private_keys/{tls_private_key_id}:
    get:
      operationId: getTlsPrivateKey
      summary: Get a TLS private key
      description: Retrieves the details of a specific TLS private key.
      tags:
      - TLS Private Keys
      parameters:
      - name: tls_private_key_id
        in: path
        required: true
        description: The alphanumeric string identifying the TLS private key.
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved the TLS private key.
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TlsPrivateKey'
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: TLS private key not found.
    delete:
      operationId: deleteTlsPrivateKey
      summary: Delete a TLS private key
      description: Deletes a TLS private key. The key must not be associated with any active certificates.
      tags:
      - TLS Private Keys
      parameters:
      - name: tls_private_key_id
        in: path
        required: true
        description: The alphanumeric string identifying the TLS private key.
        schema:
          type: string
      responses:
        '204':
          description: Successfully deleted the TLS private key.
        '401':
          description: Unauthorized. The API token is missing or invalid.
        '404':
          description: TLS private key not found.
components:
  schemas:
    TlsPrivateKey:
      type: object
      description: A private key used to sign one or more TLS certificates.
      properties:
        id:
          type: string
          description: The alphanumeric string identifying the TLS private key.
        type:
          type: string
          description: The resource type.
          enum:
          - tls_private_key
        attributes:
          type: object
          properties:
            name:
              type: string
              description: A customizable name for the private key.
            key_length:
              type: integer
              description: The key length in bits.
            key_type:
              type: string
              description: The type of the key.
              enum:
              - RSA
              - ECDSA
            public_key_sha1:
              type: string
              description: The SHA-1 hash of the public key.
            created_at:
              type: string
              format: date-time
              description: The date and time the key was created.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Fastly-Key
      description: API token used to authenticate requests to the Fastly API.
externalDocs:
  description: Fastly TLS API Documentation
  url: https://www.fastly.com/documentation/reference/api/tls/