Vagrant Providers API

Endpoints for managing providers within a box version, including creating providers and uploading box files.

Operations 10

POST /box/{username}/{name}/version/{version}/providers Create a provider #
GET /box/{username}/{name}/version/{version}/provider/{provider} Read a provider #
PUT /box/{username}/{name}/version/{version}/provider/{provider} Update a provider #
DELETE /box/{username}/{name}/version/{version}/provider/{provider} Delete a provider #
GET /box/{username}/{name}/version/{version}/provider/{provider}/upload Get upload URL #
GET /box/{username}/{name}/version/{version}/provider/{provider}/upload/direct Get direct upload URL #
GET /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/providers List providers #
POST /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/providers Create a provider #
GET /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/provider/{provider} Read a provider #
DELETE /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/provider/{provider} Delete a provider #

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/vagrant-providers-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

vagrant-providers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Vagrant Providers API
  contact:
    name: HashiCorp Support
    url: https://support.hashicorp.com
  termsOfService: https://www.hashicorp.com/terms-of-service
  version: '1.0'
  description: 'Operations tagged Providers across 2 of this provider''s published API definitions: vagrant-cloud-api-openapi.yml, vagrant-hcp-vagrant-box-registry-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.vagrantup.com/api/v2
  description: Vagrant Cloud Production Server
- url: https://api.cloud.hashicorp.com
  description: HCP Production Server
security:
- bearerAuth: []
tags:
- name: Providers
  description: Endpoints for managing providers within a box version, including creating providers and uploading box files.
paths:
  /box/{username}/{name}/version/{version}/providers:
    post:
      operationId: createProvider
      summary: Create a provider
      description: Creates a new provider for a specific version of a Vagrant box. A provider represents a specific virtualization platform (such as virtualbox, vmware_desktop, or docker) for which a box file is available.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProviderRequest'
      responses:
        '200':
          description: Provider created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Provider'
        '401':
          description: Authentication required
        '404':
          description: Version not found
        '422':
          description: Validation error
    servers:
    - url: https://app.vagrantup.com/api/v2
      description: Vagrant Cloud Production Server
  /box/{username}/{name}/version/{version}/provider/{provider}:
    get:
      operationId: readProvider
      summary: Read a provider
      description: Retrieves detailed information about a specific provider within a version of a Vagrant box.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      - $ref: '#/components/parameters/providerName'
      responses:
        '200':
          description: Provider details returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Provider'
        '404':
          description: Provider not found
    put:
      operationId: updateProvider
      summary: Update a provider
      description: Updates the metadata of an existing provider, such as its URL or checksum information.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      - $ref: '#/components/parameters/providerName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProviderRequest'
      responses:
        '200':
          description: Provider updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Provider'
        '401':
          description: Authentication required
        '404':
          description: Provider not found
    delete:
      operationId: deleteProvider
      summary: Delete a provider
      description: Permanently deletes a provider from a version. This action cannot be undone.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      - $ref: '#/components/parameters/providerName'
      responses:
        '200':
          description: Provider deleted successfully
        '401':
          description: Authentication required
        '404':
          description: Provider not found
    servers:
    - url: https://app.vagrantup.com/api/v2
      description: Vagrant Cloud Production Server
  /box/{username}/{name}/version/{version}/provider/{provider}/upload:
    get:
      operationId: getUploadUrl
      summary: Get upload URL
      description: Returns a pre-signed upload URL for uploading a box file to the specified provider. The client should use the returned URL to upload the box file via an HTTP PUT request.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      - $ref: '#/components/parameters/providerName'
      responses:
        '200':
          description: Upload URL returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadPath'
        '401':
          description: Authentication required
        '404':
          description: Provider not found
    servers:
    - url: https://app.vagrantup.com/api/v2
      description: Vagrant Cloud Production Server
  /box/{username}/{name}/version/{version}/provider/{provider}/upload/direct:
    get:
      operationId: getDirectUploadUrl
      summary: Get direct upload URL
      description: Returns a pre-signed URL for directly uploading a box file to cloud storage, bypassing the Vagrant Cloud server. This is recommended for large box files to improve upload performance.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/username'
      - $ref: '#/components/parameters/boxName'
      - $ref: '#/components/parameters/versionNumber'
      - $ref: '#/components/parameters/providerName'
      responses:
        '200':
          description: Direct upload URL returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectUploadPath'
        '401':
          description: Authentication required
        '404':
          description: Provider not found
    servers:
    - url: https://app.vagrantup.com/api/v2
      description: Vagrant Cloud Production Server
  /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/providers:
    get:
      operationId: listProviders
      summary: List providers
      description: Lists all providers for a specific version of a box within a registry.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/registryName'
      - $ref: '#/components/parameters/boxName_2'
      - $ref: '#/components/parameters/versionName'
      responses:
        '200':
          description: List of providers returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListProvidersResponse'
        '404':
          description: Version not found
    post:
      operationId: createProvider
      summary: Create a provider
      description: Creates a new provider for a specific version of a box. A provider represents a virtualization platform build of the box.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/registryName'
      - $ref: '#/components/parameters/boxName_2'
      - $ref: '#/components/parameters/versionName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProviderRequest_2'
      responses:
        '200':
          description: Provider created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderResponse'
        '401':
          description: Authentication required
        '404':
          description: Version not found
        '409':
          description: Provider already exists for this version
    servers:
    - url: https://api.cloud.hashicorp.com
      description: HCP Production Server
  /vagrant/2023-01-01/registry/{registry}/box/{box}/version/{version}/provider/{provider}:
    get:
      operationId: readProvider
      summary: Read a provider
      description: Retrieves detailed information about a specific provider within a version of a box.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/registryName'
      - $ref: '#/components/parameters/boxName_2'
      - $ref: '#/components/parameters/versionName'
      - $ref: '#/components/parameters/providerName_2'
      responses:
        '200':
          description: Provider details returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderResponse'
        '404':
          description: Provider not found
    delete:
      operationId: deleteProvider
      summary: Delete a provider
      description: Permanently deletes a provider from a version. This action cannot be undone.
      tags:
      - Providers
      parameters:
      - $ref: '#/components/parameters/registryName'
      - $ref: '#/components/parameters/boxName_2'
      - $ref: '#/components/parameters/versionName'
      - $ref: '#/components/parameters/providerName_2'
      responses:
        '200':
          description: Provider deleted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
        '401':
          description: Authentication required
        '404':
          description: Provider not found
    servers:
    - url: https://api.cloud.hashicorp.com
      description: HCP Production Server
components:
  schemas:
    Provider:
      type: object
      description: A provider represents a specific virtualization platform for which a box file is available within a version.
      properties:
        name:
          type: string
          description: The name of the provider such as virtualbox or vmware_desktop.
        hosted:
          type: boolean
          description: Whether the box file is hosted on Vagrant Cloud.
        hosted_token:
          type: string
          description: The token used for hosted box file downloads.
        original_url:
          type: string
          format: uri
          description: The original URL of the box file if externally hosted.
        download_url:
          type: string
          format: uri
          description: The URL to download the box file.
        created_at:
          type: string
          format: date-time
          description: The timestamp when the provider was created.
        updated_at:
          type: string
          format: date-time
          description: The timestamp when the provider was last updated.
        checksum_type:
          type: string
          description: The type of checksum used for the box file.
          enum:
          - md5
          - sha1
          - sha256
          - sha384
          - sha512
        checksum:
          type: string
          description: The checksum value for the box file.
        architecture:
          type: string
          description: The CPU architecture the box supports such as amd64 or arm64.
        default_architecture:
          type: boolean
          description: Whether this is the default architecture for the provider.
    UpdateProviderRequest:
      type: object
      description: Request body for updating an existing provider.
      properties:
        provider:
          type: object
          properties:
            name:
              type: string
              description: The updated name of the provider.
            url:
              type: string
              format: uri
              description: The updated URL of an externally hosted box file.
            checksum_type:
              type: string
              description: The updated checksum type.
            checksum:
              type: string
              description: The updated checksum value.
            architecture:
              type: string
              description: The updated CPU architecture.
    CreateProviderRequest:
      type: object
      description: Request body for creating a new provider for a version.
      required:
      - provider
      properties:
        provider:
          type: object
          required:
          - name
          properties:
            name:
              type: string
              description: The name of the provider such as virtualbox or vmware_desktop.
            url:
              type: string
              format: uri
              description: The URL of an externally hosted box file. If omitted, the box file must be uploaded to Vagrant Cloud.
            checksum_type:
              type: string
              description: The type of checksum for the box file.
              enum:
              - md5
              - sha1
              - sha256
              - sha384
              - sha512
            checksum:
              type: string
              description: The checksum value for the box file.
            architecture:
              type: string
              description: The CPU architecture the box supports.
            default_architecture:
              type: boolean
              description: Whether this is the default architecture for the provider.
    UploadPath:
      type: object
      description: Contains the upload URL for uploading a box file to Vagrant Cloud.
      properties:
        upload_path:
          type: string
          format: uri
          description: The pre-signed URL to upload the box file via HTTP PUT.
        token:
          type: string
          description: The upload token for this upload session.
    DirectUploadPath:
      type: object
      description: Contains the direct upload URL for uploading a box file directly to cloud storage.
      properties:
        upload_path:
          type: string
          format: uri
          description: The pre-signed URL to upload the box file directly to cloud storage via HTTP PUT.
        callback:
          type: string
          format: uri
          description: The callback URL to notify Vagrant Cloud after the upload completes.
        token:
          type: string
          description: The upload token for this upload session.
    Provider_2:
      type: object
      description: A provider describes a specific virtualization platform build of a box version, with its list of architectures and box data.
      properties:
        name:
          type: string
          description: The name of the provider such as virtualbox or vmware_desktop.
        url:
          type: string
          format: uri
          description: The URL of the externally hosted box file.
        checksum:
          type: string
          description: The checksum value for the box file.
        checksum_type:
          type: string
          description: The type of checksum used.
          enum:
          - MD5
          - SHA1
          - SHA256
          - SHA384
          - SHA512
        architecture:
          type: string
          description: The CPU architecture the box supports such as amd64 or arm64.
        created_at:
          type: string
          format: date-time
          description: The timestamp when the provider was created.
        updated_at:
          type: string
          format: date-time
          description: The timestamp when the provider was last updated.
    OperationResponse:
      type: object
      description: Response containing an operation object for asynchronous actions.
      properties:
        operation:
          $ref: '#/components/schemas/Operation'
    ListProvidersResponse:
      type: object
      description: Response containing a list of providers.
      properties:
        providers:
          type: array
          description: List of providers for the version.
          items:
            $ref: '#/components/schemas/Provider_2'
    CreateProviderRequest_2:
      type: object
      description: Request body for creating a new provider for a version.
      required:
      - name
      properties:
        name:
          type: string
          description: The name of the provider such as virtualbox or vmware_desktop.
        url:
          type: string
          format: uri
          description: The URL of an externally hosted box file.
        checksum:
          type: string
          description: The checksum value for the box file.
        checksum_type:
          type: string
          description: The type of checksum.
          enum:
          - MD5
          - SHA1
          - SHA256
          - SHA384
          - SHA512
        architecture:
          type: string
          description: The CPU architecture such as amd64 or arm64.
    Operation:
      type: object
      description: An operation returned by asynchronous API calls. The operation ID is unique within the region the operation is running in.
      properties:
        id:
          type: string
          description: The unique identifier of the operation within the region.
        state:
          type: string
          description: The current state of the operation.
          enum:
          - PENDING
          - RUNNING
          - DONE
        error:
          type: object
          description: Error details if the operation failed.
          properties:
            code:
              type: integer
              description: The error code.
            message:
              type: string
              description: The error message.
    ProviderResponse:
      type: object
      description: Response containing a provider object.
      properties:
        provider:
          $ref: '#/components/schemas/Provider_2'
  parameters:
    username:
      name: username
      in: path
      required: true
      description: The username or organization name that owns the box.
      schema:
        type: string
    versionNumber:
      name: version
      in: path
      required: true
      description: The version number of the box following semantic versioning.
      schema:
        type: string
    boxName:
      name: name
      in: path
      required: true
      description: The name of the Vagrant box.
      schema:
        type: string
    providerName:
      name: provider
      in: path
      required: true
      description: The name of the provider such as virtualbox, vmware_desktop, or docker.
      schema:
        type: string
    boxName_2:
      name: box
      in: path
      required: true
      description: The name segment of the box which is unique within the registry.
      schema:
        type: string
    registryName:
      name: registry
      in: path
      required: true
      description: The globally unique name of the Vagrant box registry such as hashicorp in hashicorp/vagrant.
      schema:
        type: string
    providerName_2:
      name: provider
      in: path
      required: true
      description: The name of the provider such as virtualbox or vmware_desktop.
      schema:
        type: string
    versionName:
      name: version
      in: path
      required: true
      description: The version string which must be unique within the box.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Vagrant Cloud API token passed as a Bearer token in the Authorization header.
x-refined-from:
- vagrant-cloud-api-openapi.yml
- vagrant-hcp-vagrant-box-registry-openapi.yml