Phraseanet has a public API, allowing developers to embed documents (videos, photos, etc. ...) and features from Phraseanet into a third-party application.
Here are the steps to follow:
Important
Since Phraseanet 4.2, the Developer area is only available to users
holding the API access right (and to administrators). Without it,
the Developer tab is hidden and the /developers/... pages return an
HTTP 403 error. The right is granted by a user manager in Admin, API
tab of the user form (see API access).
Existing tokens and applications keep working without this right; only creating and managing applications is restricted.
Click on the login in the Phraseanet top menu.
In Phraseanet my account
Click on developer developer tab.
Click on Create a new application
Once the application is registered it appears in a dashboard
The dashboard lists all the applications created by the authenticated user
In the dashboard application developers click on the name of an application. The settings page of the application is displayed.
This page shows
Warning
Avoid this type of authentication, it is recommended to use it when the owner of the resource has a high degree of trust with the client, such as the operating system or device which is highly privileged with Phraseanet.
Note
The developer token can be used during application development or to query the API by the intermediary of an automated process that does not require authentication..
An API request runs with the rights of the user authenticated by the token: the API applies the same per-base and per-collection rights as the Phraseanet interfaces (view, add, edit, status change, delete...). An unauthorized action returns an HTTP 403 error.
For example, since Phraseanet 4.2, the story edition routes addrecords, delrecords and setcover require the edit right on the story collection, and access to each added record.
See also
Phraseanet relies on the oAuth2.0 authentication protocol . To better understand the process of creation and authentication of third-party applications with the Phraseanet API, we invite developers to read the protocol RFC Oauth2.