Accounts

GET /v2/accounts

List all accounts the current user has access to.

This endpoint is paginated.

Example Request

curl "https://api.phraseapp.com/api/v2/accounts" \
  -u USERNAME_OR_ACCESS_TOKEN
phraseapp accounts list

Response

Status: 200
[ { "id": "abcd1234", "name": "Company Account", "company": "My Awesome Company", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" }, { "id": "abcd1234", "name": "Company Account", "company": "My Awesome Company", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" } ]

GET /v2/accounts/:id

Get details on a single account.

Example Request

curl "https://api.phraseapp.com/api/v2/accounts/:id" \
  -u USERNAME_OR_ACCESS_TOKEN
phraseapp account show <id>

Response

Status: 200
{ "id": "abcd1234", "name": "Company Account", "company": "My Awesome Company", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" }