Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: KeySavvy Partner Documents API
version: 1.0.0
description: API for KeySavvy Partner integration
contact:
name: KeySavvy API Support Team
email: api-support@keysavvy.com
servers:
- url: https://api.keysavvy.com/v1
description: KeySavvy Production API
- url: https://api.keysavvy.dev/v1
description: KeySavvy Non-Production API
security:
- apiKey: []
tags:
- name: Documents
paths:
/user/{userReferenceId}/document:
post:
tags:
- Documents
summary: Upload user document
description: Uploads a document associated with the provided user reference ID, such as a dealer license. The maximum file size for a single document is 20 MB.
operationId: uploadUserDocument
parameters:
- name: userReferenceId
in: path
description: Reference ID of the user this document belongs to.
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/UserDocumentCreateRequestBody'
responses:
'201':
$ref: '#/components/responses/CreatedResponse'
'400':
$ref: '#/components/responses/ErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ErrorResponse'
'413':
$ref: '#/components/responses/ErrorResponse'
/vehicle/{vehicleReferenceId}/document:
post:
tags:
- Documents
summary: Upload vehicle document
description: Uploads a document associated with the provided vehicle reference ID, such as a title image, registration photo, etc. The maximum file size for a single document is 20 MB.
operationId: uploadVehicleDocument
parameters:
- name: vehicleReferenceId
in: path
description: Reference ID of the vehicle this document belongs to.
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/VehicleDocumentCreateRequestBody'
responses:
'200':
$ref: '#/components/responses/CreatedResponse'
'400':
$ref: '#/components/responses/ErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ErrorResponse'
'413':
$ref: '#/components/responses/ErrorResponse'
/deal/{dealReferenceId}/vehicle/document:
post:
tags:
- Documents
summary: Upload vehicle document for deal
description: Uploads a document to the vehicle associated with the provided deal, such as a title image, registration photo, etc. The maximum file size for a single document is 20 MB.
operationId: uploadDealVehicleDocument
parameters:
- name: dealReferenceId
in: path
description: Reference ID of a deal associated with the vehicle this document belongs to.
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/VehicleDocumentCreateRequestBody'
responses:
'200':
$ref: '#/components/responses/CreatedResponse'
'400':
$ref: '#/components/responses/ErrorResponse'
'401':
$ref: '#/components/responses/UnauthorizedResponse'
'404':
$ref: '#/components/responses/ErrorResponse'
'413':
$ref: '#/components/responses/ErrorResponse'
components:
schemas:
ErrorResponseBody:
type: object
properties:
error:
type: string
message:
type: string
VehicleDocumentCreateRequestBody:
type: object
required:
- documentType
- file
properties:
documentType:
type: string
description: The type of document being uploaded.
enum:
- title
- title-back
- registration
- registration-back
- vin-plate
- odometer-photo
- dealer-license
- vehicle-inspection-report
file:
type: string
format: binary
description: The document file being uploaded. This file must be an image (image/* or application/pdf mime-type).
UserDocumentCreateRequestBody:
type: object
required:
- documentType
- file
properties:
documentType:
type: string
description: The type of document being uploaded.
enum:
- dealer-license
file:
type: string
format: binary
description: The document file being uploaded. This file must be an image (image/* or application/pdf mime-type).
CreatedResponseBody:
type: object
properties:
message:
type: string
responses:
ErrorResponse:
description: The request failed. `error` and `message` describe why.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseBody'
CreatedResponse:
description: Resource created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CreatedResponseBody'
UnauthorizedResponse:
description: Authentication failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseBody'
securitySchemes:
apiKey:
type: apiKey
in: header
name: keysavvy-api