👨‍💻API Usage

Authentication and Relocation Tokens

After logging in, Over VPS authentication uses Access Tokens. The Access Token does not expire by itself, but you can regenerate it to invalidate the previous token.

The Access Token is required to generate a Relocation Token (reloc-token). The Relocation Token lasts for one hour and can be used to perform relocations and use other apis.

Access Tokens

  • Purpose: Authenticate API requests to the Over VPS endpoints.

  • Token lifecycle: Non-expiring in theory, but you should rotate (regenerate) tokens to revoke old ones and reduce risk.

  • Regeneration: In your account settings, you can generate a new Access Token. Regenerating a token invalidates the previous one. After regenerating, use the new token for subsequent API calls.

Relocation Tokens (reloc-token)

  • Purpose: Used to execute relocation operations on VPS instances.

  • Lifetime: 1 hour from generation.

  • Usage: Generate a reloc-token using a valid Access Token, then use the reloc-token to perform relocations within its lifetime.

Generating a reloc-token

  • Endpoint: POST https://vps.ovr.ai/api/vps/generate-reloc-token

  • Required header:

    • Access-Token: YOUR_ACCESS_TOKEN

  • Example command (use your actual Access Token; do not share real tokens publicly):

Regenerating a reloc-token with an Existing reloc-token

It is possible to generate a new reloc-token using an existing, unexpired reloc-token. The new reloc-token will extend your ability to perform relocations for the next hour.

  • Endpoint: POST https://vps.ovr.ai/api/vps/generate-reloc-token

  • Required header:

    • Reloc-Token: YOUR_EXISTING_RELOC_TOKEN

  • Response: A new reloc-token (and its expiry time). Use the new token for subsequent relocations.

Get a model (mapping) for the VPS

  • Purpose: retrieve the list of available mapping models for a given geographic area. The returned models can later be loaded and used for VPS relocation operations.

  • Endpoint: GET https://vps.ovr.ai/api/vps/get-models

  • Query parameters:

    • latitude (float, required): latitude of the area of interest.

    • longitude (float, required): longitude of the area of interest.

  • Headers:

    • Access-Token: YOUR_ACCESS_TOKEN

Example request:

Load a model (mapping) for the VPS

  • This step loads a model (mapping) that can be used by the VPS. The calls are authenticated with your reloc-token.

  • Use the modelName (UUID) of the model you want to load, and specify the operation type (run or check).

  • When you load or check, you will receive JSON responses indicating success and the model status.

Load the model (run)

  • Purpose: load or initialize the model on the VPS so it can be used.

  • Endpoint: POST https://inference.ovr.ai/load-model

  • Headers:

    • Authorization: YOUR_RELOC_TOKEN

Check if the model is loaded

  • Purpose: verify whether the requested model is loaded and ready.

  • Endpoint: POST https://inference.ovr.ai/load-model

  • Headers:

    • Authorization: YOUR_RELOC_TOKEN

Relocate (execute relocation) using a loaded model

  • This step performs an actual relocation (realignment) of a VPS using the loaded model. The API call is authenticated with your tokens, and you provide the model to relocate and the image to align.

  • The response indicates whether the relocation happened and provides quality metrics and the resulting transformation.

API call

  • Endpoint: POST https://inference.ovr.ai/reloc

  • Headers:

    • Authorization: YOUR_RELOC_TOKEN

API Response

Last updated