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.
openapi: 3.2.0
info:
contact: {}
description: 'API request bodies and responses are usually JSON-encoded, except for binary data and some of the OAuth2 endpoints. Note that the `Content-Type` header must be set to `application/json` for this, as the request may otherwise fail with error 400.
When clients have a valid access token, e.g. obtained through the `POST /api/v1/session` or `POST /api/v1/oauth/token` endpoint, they can use a standard Bearer Authorization header to authenticate their requests. Submitting the access token with a custom `X-Auth-Token` header is supported as well.'
title: PhotoPrism Assets API
version: v1
servers:
- url: https://demo.photoprism.app
security:
- BearerAuth: []
tags:
- name: Assets
paths:
/api/v1/svg/{icon}:
get:
operationId: GetSvg
parameters:
- description: SVG icon name
in: path
name: icon
required: true
schema:
type: string
enum:
- user
- face
- camera
- photo
- raw
- file
- video
- label
- portrait
- folder
- album
- broken
- uncached
responses:
'200':
description: SVG icon
content:
image/svg+xml:
schema:
type: string
'404':
description: Icon not found
content:
image/svg+xml:
schema:
$ref: '#/components/schemas/gin.H'
summary: returns SVG placeholder symbols for UI fallbacks
tags:
- Assets
components:
schemas:
gin.H:
additionalProperties: {}
type: object
securitySchemes:
BearerAuth:
in: header
name: Authorization
type: apiKey
externalDocs:
description: Learn more ›
url: https://docs.photoprism.app/developer-guide/api/