Spin API Authentication: Bearer Keys & Rotation

Cloudpano
August 25, 2026
5 min read
Share this post

Authenticating With the Spin API: Bearer Keys, Key Rotation, and Revoking Access

The Problem Authentication Is Quietly Solving

Every dealership looking to streamline vehicle photography faces a similar challenge. Traditional turntable systems can require significant equipment, dedicated space, and a carefully managed capture workflow.

An API-driven alternative simplifies that process by allowing dealership staff to record a vehicle walk-around and submit the footage for processing into a 360° spin.

CloudPano 360 Spin API authentication showing a securely stored API key used to authenticate vehicle spin requests

But for that workflow to operate reliably at scale, your systems need a secure way to communicate with the API without requiring someone to manually authenticate every request.

That’s where API authentication comes in.

This guide covers 360 Spin API authentication for the CloudPano Spin API, including Bearer keys, secure key storage, key rotation, revoking access, and using multiple keys to separate environments or integrations.

For the complete technical reference, see the Spin API developer documentation.

How the Spin API Authenticates Requests

The Spin API uses Bearer-token authentication.

Each request to the API includes an API key that identifies and authenticates the account making the request.

This keeps the authentication model relatively straightforward. There’s no separate OAuth flow or user login required for each request. Instead, an API key is generated for your account and securely stored by the application or service that needs to communicate with the Spin API.

Keys are created through the CloudPano dashboard, and an account can currently maintain up to 10 active keys at once.

That ability to maintain multiple keys becomes especially useful when separating production, staging, internal tools, or partner integrations.

Your API Key Is Shown Only Once

One of the most important things to understand when creating a key is that the raw key value is displayed only when it is initially generated.

CloudPano stores a hash of the key rather than keeping the raw value available for later retrieval.

That means you should copy the key immediately and store it somewhere secure.

If the original value is lost, you should create a replacement rather than expecting to reveal the existing key again.

A secrets manager or encrypted environment-variable system is a much better location for an API key than a document, message, ticket, or source-code repository.

Keep Authentication on the Server Side

Your Spin API key should be treated as a server-to-server credential.

It should not be embedded in browser code, publicly accessible scripts, or mobile applications where someone could inspect the application and retrieve it.

If a user initiates a vehicle-spin workflow from a browser or mobile application, the safer architecture is:

User application → Your backend → Spin API

Your backend securely stores the API credential and communicates with CloudPano on behalf of the user.

This keeps the API key away from the public-facing portion of your application.

What a Successful Authentication Looks Like

When a valid key is used to submit a vehicle walk-around successfully, the Spin API can accept the request and create a processing job.

The vehicle spin then progresses through its processing lifecycle:

Queued → Processing → Ready

A job may also reach a failed state if processing cannot be completed.

Because vehicle-spin generation happens asynchronously, your integration monitors the processing job until it reaches a finished state.

For more information about handling this workflow, see polling the 360 Spin API.

Where Authentication Can Break

Authentication problems can sometimes look like general API failures, which is why it helps to understand the most common causes.

Missing, Invalid, or Revoked Credentials

If an API key is missing, incorrectly entered, truncated, or no longer active, authentication will fail.

When troubleshooting an integration, check that the application is using the expected credential and that the key hasn't been replaced or revoked.

This is particularly important after rotating credentials because an older application instance or background service may still be using the previous key.

Make Sure You're Using the Correct Account

API credentials are associated with accounts.

That means the credential used to access a vehicle spin needs to belong to the appropriate account context.

This becomes especially important when teams maintain multiple environments, partner integrations, or separate accounts.

Keeping clear records of which credentials belong to which system can prevent confusing access problems later.

API Key Security Checklist

A few simple practices can significantly reduce the risk of exposing credentials:

  • Keep API keys out of browser and mobile client code.
  • Store keys in a dedicated secrets manager or encrypted environment-variable system.
  • Copy newly generated keys immediately because the raw value may not be available again.
  • Never place production credentials in source-control repositories, shared documents, support tickets, or chat messages.
  • Periodically review active keys and remove credentials that are no longer associated with a live integration.
  • Use separate keys where doing so makes access easier to manage.

These practices become increasingly important as an integration expands across multiple services or dealership locations.

Rotating API Keys Without Downtime

API keys shouldn't necessarily remain unchanged forever.

If a credential may have been exposed, an employee or contractor who had access leaves, or your organization's security policies require periodic rotation, you may need to replace an existing key.

The safest approach is to avoid disabling the current credential before its replacement has been tested.

CloudPano Spin API key rotation process showing create, deploy, confirm, and revoke steps to avoid downtime

A practical rotation process looks like this:

  1. Create a new key. Generate the replacement through the CloudPano dashboard and immediately store it securely.
  2. Deploy the new key. Update the application or service that communicates with the Spin API.
  3. Confirm the new key works. Verify that requests are successfully authenticating with the replacement credential.
  4. Revoke the old key. Once you've confirmed that the new credential is being used successfully everywhere it needs to be, remove access for the previous key.

This order helps avoid creating a window where your application has no working credential.

When Should You Rotate a Key?

Your organization's security policies should determine how frequently credentials are rotated.

More importantly, replace a key whenever you believe it may have been exposed.

Examples could include accidentally sharing a credential in a support conversation, exposing it in a repository, or discovering that someone who no longer requires access still has the credential.

The goal isn't simply to rotate credentials frequently. It's to make sure you can replace a credential safely and quickly whenever necessary.

Using Multiple Keys on Purpose

The ability to maintain multiple active keys isn't only useful for rotation.

It can also help you create clearer boundaries between different parts of your infrastructure.

Separate Development and Production

Using different credentials for staging and production helps keep the two environments separate.

If a development credential needs to be replaced or revoked, you can do so without unnecessarily affecting production.

Separate Integrations

If multiple services communicate with the Spin API, giving them separate credentials can make access easier to manage.

For example, an internal inventory system and a partner integration don't necessarily need to share the same credential.

If one integration is retired or compromised, its credential can be revoked without replacing the credentials used by every other service.

The Spin API currently allows up to 10 active keys per account, providing room to separate credentials where appropriate.

Don't Forget About Old Keys

Multiple-key support is useful, but it also creates the possibility of accumulating credentials that nobody remembers.

A key created for an old integration, former contractor, testing environment, or temporary project shouldn't remain active indefinitely simply because nobody removed it.

Periodically review your active credentials and ask:

What uses this key? Who owns the integration? Is it still needed?

If you can't associate a credential with a legitimate active system, investigate it and revoke it when appropriate.

Keeping the list clean makes future troubleshooting and credential rotation much easier.

Bringing It All Together

Spin API authentication is intentionally straightforward:

Create a key → store it securely → use it from your backend → monitor its use → rotate or revoke it when necessary.

Most of the security work isn't about making authentication complicated. It's about managing the credential properly throughout its lifecycle.

Keep keys away from client-side applications and source repositories. Use separate credentials where they provide useful isolation. Make sure newly generated keys are stored immediately, and replace credentials carefully so you don't interrupt a working integration.

If you're building your first complete vehicle-spin workflow, see creating a car 360 spin with one API call for the broader upload-to-spin process.

Read the Documentation and Start Building

The Spin API documentation contains the current authentication requirements, request parameters, processing statuses, and other implementation details.

Once your key is securely stored and your backend can authenticate successfully, you can move on to the rest of the workflow: submitting vehicle footage, monitoring processing, and connecting the finished 360° spin to your inventory.

🚀 Your All‑In‑One Virtual Experience Stack
🎬
PhotoAIVideo
Turn photos into scroll‑stopping AI videos.
Get Started →
🏡
Pictastic
Instantly stage listings with AI.
Try Staging →
🌀
CloudPano
Create stunning 360° tours in minutes.
Launch Tour →
💰
VirtualTourProfit
Build a profitable virtual tour business.
Learn More →
🤝
CloudPano Reseller
Resell AI visual software without building it.
Become a Reseller →
🚗
Auto CloudPano
Sell more vehicles with 360° experiences.
Explore Auto →
🏗️
AI Floor Plan Builder
Generate detailed floor plans with AI.
Build Now →
📐
3D Measure
Capture accurate floor plans & 3D measurements.
Measure Now →
🧠
AI Training Data
Custom AI training data services.
Learn More →
Share this post
Cloudpano

Choose The Right 360° Camera

Insta360 ONE RS 1-Inch 360 Edition

  • Compact, ready to go anywhere

  • Interchangeable lens that’s upgradeable

  • Dual 1-inch sensors for improved clarity and low light performance

  • Dynamic range and 6K 360° capture

  • 360° photo resolution at 21MP

Learn More

Insta360 X4

  • 8K 360° video recording for ultra-detailed visuals.

  • 4K single-lens mode for traditional wide-angle shots.

  • Invisible selfie stick effect for drone-like perspectives.

  • 2.5-inch touchscreen with Gorilla Glass protection.

  • Waterproof up to 33ft for underwater shooting.

Learn More

Ricoh Theta Z1

  • 360° photo resolution in 23MP

  • Slim design at 24 mm thick

  • Built-in image stabilization for smooth video capture.

  • Internal 19GB storage for photo and video storage.

  • Wireless connectivity for remote control and sharing.

Learn More

Ricoh Theta X

  • 60MP 360° still images for high-resolution photography.

  • 5.7K 360° video recording at 30fps.

  • 2.25-inch touchscreen for intuitive control.

  • USB Type-C port for fast charging and data transfer.

  • MicroSD card slot for expandable storage.

Learn More
Property Marketing
Allows potential buyers to explore properties in detail from anywhere, enhancing the real estate marketing process.
Automotive Spins
Create an interactive virtual showroom and engage affluent digital buyers with live 360º video calls, all through the CloudPano mobile app for a complete automotive sales solution.
Interactive Floor Plans
Create 2D and 3D floor plans with measurements in 4 minutes or less, all from your phone. Download the Floor Plan Scanner app and get your first scan free.

360 Virtual Tours With CloudPano.com. Get Started Today.

Try it free. No credit card required. Instant set-up.

Try it free
Latest posts

See our other posts

Interviews, tips, guides, industry best practices, and news.

Spin API Video Upload Guide: Formats & 500MB Limit

A definitive guide to preparing and uploading walk-around video to the CloudPano Spin API — accepted formats, the 500MB ceiling, correct capture technique, and the difference between a 400 error and a failed spin.
Read post

Spin API Authentication: Bearer Keys & Rotation

Everything a developer needs to authenticate correctly against the CloudPano Spin API: the Bearer header format, why a raw key can't be retrieved twice, a safe key-rotation runbook, and how to use multiple keys across environments.
Read post

Automated Vehicle Photos: Building a Faster DMS Workflow

Learn how automated vehicle photo processing can connect with dealership DMS and inventory platforms to speed up merchandising, reduce manual image handling, improve photo consistency, and help listings go live faster across dealer websites and automotive marketplaces.
Read post