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. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Aleph Alpha Permissions API
version: 4.7.0
description: Access and interact with Aleph Alpha models and functionality over HTTP endpoints.
contact:
email: support@aleph-alpha.com
servers:
- url: '{host}/v1'
variables:
host:
default: https://api.pharia.example.com
tags:
- name: Permissions
paths:
/check_privileges:
post:
operationId: postCheckPrivileges
summary: Check user privileges
description: 'Post an array of permissions as an authenticated users.
We return the subset of the posted permissions that have been granted to the user.'
tags:
- Permissions
security:
- token: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Permissions'
components:
schemas:
Permissions:
title: List of permissions
type: array
items:
type: object
properties:
permission:
type: string
securitySchemes:
token:
type: http
scheme: bearer
description: Can be generated in your [Aleph Alpha profile](https://app.aleph-alpha.com/profile)
x-provenance:
method: harvested
publisher: Aleph Alpha
source: https://docs.aleph-alpha.com/COMMON/_attachments/openapi/pharia-inference/v4.7.0.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)