GET
/
accounts
/
{account_id}
/
spaces
cURL
curl "https://api.phrase.com/v2/accounts/:account_id/spaces" \
  -u USERNAME_OR_ACCESS_TOKEN
[
  {
    "id": "2e7574e8f2372906a03110c2a7cfe671",
    "name": "My first space",
    "created_at": "2020-02-25T12:17:25Z",
    "updated_at": "2020-03-13T14:46:57Z",
    "projects_count": 2,
    "projects": [
      {
        "id": "abcd1234cdef1234abcd1234cdef1234",
        "name": "My Android Project",
        "main_format": "xml",
        "project_image_url": "http://assets.example.com/project.png",
        "account": "account",
        "created_at": "2015-01-28T09:52:53Z",
        "updated_at": "2015-01-28T09:52:53Z"
      },
      {
        "id": "abcd11231fadef1234adacd1234cdef1234",
        "name": "My IOS Project",
        "main_format": "yml",
        "project_image_url": "http://assets.example.com/project2.png",
        "account": "account",
        "created_at": "2015-01-28T09:52:53Z",
        "updated_at": "2015-01-28T09:52:53Z"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Enter your token in the format token TOKEN

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Path Parameters

account_id
string
required

Account ID

Query Parameters

page
integer

Page number

per_page
integer

Limit on the number of objects to be returned, between 1 and 100. 25 by default

Response

200
application/json

OK

The response is of type space · object[].