POST /versions

List the project's variants, the parallel lines of edits the version selector switches between. Main comes first.

/docs/api/versions.txt

POST https://api.pixydesignapp.com/versions

List the project's variants, the parallel lines of edits the version selector switches between. Main comes first, and its id is the project id. Then the ones that were made, oldest first.

Header: X-Pixy-Key carrying the agent key (px_sk_…).

Body: none.

Response:

field type description
versions array Main, then the made ones by age.

Each entry:

field type description
id string The variant's id. Main's is the project id, the one /me answers with.
name string What the selector shows.
from string The variant a clone was made from, or null.
kind string version.
created_at string On the made ones only.

Nothing here says which variant you are on, because a key stands on none. A bare pull ships Main, and any other variant reaches an agent through a task.

Errors: invalid_key.

Example:

curl -X POST https://api.pixydesignapp.com/versions \
  -H 'X-Pixy-Key: px_sk_yourkey'