Document Directory

Account API

Query account information

POST/v1/me

Query current user account details.

Complete address
https://otranslator.com/api/v1/me
Authentication
API Key needs to be passed in the Authorization request header
Content-Type
application/json
Invalid format
{ "error": "Invalid API key." }

Precautions

This API uses the API Key in the Authorization request header to identify the current account.

Example

curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'

Response

ParametersTypeDefaultDescriptionExample
balanceInteger-

Remaining credits

-

Common Errors

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.

Glossary API
Delete glossary