Cap Collectif Developers - GraphQL API

Thank you for your interest in our public API !

This is an early release… We will progressively enhance the documentation (including more examples !) and complete what can be retrieved via the public API, throughout the following weeks. Thank you in advance for your patience and do not hesitate to return regularly to this documentation to see its evolution.

Please notice, you do not need an API key to read public data.

The technical team of Cap Collectif.


A consultation



contributors (UserConnection!)

A list of contributor associated with the consultation.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first `n` elements from the list.

last Int

Returns the last `n` elements from the list.

id (ID!)

The ID of an object

title (String!)

The title of the consultation.

userHasVote (Boolean!)

Whether the user has vote for a contribution in the related step of this consultation.

Argument Type Description
login String!

The user's login (for example, an email).

votesCount (Int)

The number of votes in the related step of this consultation.

Deprecation notice

Field `votesCount` will be removed. Use `votes.totalCount` instead. In preparation for an upcoming change to the way we expose counters, this field will only be available inside a connection. Removal on 2019-09-01 UTC.