List the project's spaces, its branches: each one its own line of edits with its own canvas, the list the editor switches between.
/docs/api/spaces.txtPOST https://api.pixydesignapp.com/spaces
List the project's spaces, its branches: each one its own line of edits with its own canvas, the list the editor switches between. Oldest first. A project with anything on it has at least one.
Header: X-Pixy-Key carrying the agent key (px_sk_…).
Body: none.
Response:
| field | type | description |
|---|---|---|
spaces |
array | The project's spaces, oldest first. |
Each entry:
| field | type | description |
|---|---|---|
id |
string | The space's id, what pull takes as space. |
name |
string | What the list shows. |
from |
string | The space it was wrapped up from, or null. |
author |
string | Who made it: a user's id, or an agent key's. |
board |
object | Its canvas: pages, the pages open on it, each with its url, position and screen size. |
created_at |
string | When it was made. |
updated_at |
string | When its board or name last changed. |
Nothing here says which space you are on, because a key stands on none. A bare pull ships the one space there is, or asks you to name one when there are several.
Errors: invalid_key.
Example:
curl -X POST https://api.pixydesignapp.com/spaces \
-H 'X-Pixy-Key: px_sk_yourkey'