There are two different ways to authenticate when performing API requests:Documentation Index
Fetch the complete documentation index at: https://developers.phrase.com/llms.txt
Use this file to discover all available pages before exploring further.
- Phrase Platform API tokens
- E-Mail and password
- Oauth Access Token
Phrase Platform API tokens
Preferred method – use this for a single, consistent way to access all Phrase Platform APIs.
E-Mail and password
To get started easily, you can use HTTP Basic authentication with your email and password:OAuth via Access Tokens
You can create and manage access tokens in your profile settings in Translation Center or via the Authorizations API. Simply pass the access token as the username of your request:Authorization header field:
Send via parameter
As JSONP (and other) requests cannot send HTTP Basic Auth credentials, a special query parameteraccess_token can be used:
Two-Factor-Authentication
Users with Two-Factor-Authentication enabled have to send a valid token along their request with certain authentication methods (such as Basic authentication). The necessity of a Two-Factor-Authentication token is indicated by theX-PhraseApp-OTP: required; :MFA-type header in the response. The :MFA-type field indicates the source of the token, e.g. app (refers to your Authenticator application):