List all projects
Changed onRetrieves a list of projects available to the user, authorized with a token. This endpoint supports cursor pagination for better performance with large datasets. When using cursor pagination, the response will include a <code>nextCursor</code> value in the response headers when more data is available. Continue making requests with the <code>nextCursor</code> value until no <code>nextCursor</code> is returned, indicating all data has been retrieved. Note that cursor pagination returns projects in creation order rather than by name: oldest first by default, or newest first with <code>sort=-created_at</code>.
Requires <code>read_projects</code> OAuth access scope.
Request
- Base URLhttps://api.lokalise.com/api2
- URLhttps://api.lokalise.com/api2/projects
- AuthAPI key in header X-Api-Token
Query parameters
Limit results to team ID.
One or more project names to filter by (comma separated).
Whether to include project statistics. Possible values are <code>1</code> and <code>0</code>.
Whether to include project settings. Possible values are <code>1</code> and <code>0</code>.
Type of pagination. Possible values are <code>offset</code> and <code>cursor</code>. The default value is <code>offset</code>. Cursor pagination is performance-optimized and does not count total records or calculate remaining pages. When using cursor pagination, continue making requests until no <code>nextCursor</code> is returned in the response headers.
Number of items to include (max 5000).
Return results starting from this page.
Return results starting from this cursor. When using cursor pagination, this parameter should contain the <code>nextCursor</code> value from the previous response. Continue pagination until no <code>nextCursor</code> is returned in the response headers.
Sort of cursor pagination: <code>created_at</code> lists projects oldest first (default), <code>-created_at</code> newest first. Later pages inherit the direction from the cursor, so it only needs to be sent with the first request; a different value is rejected. Validated but has no effect with offset pagination.
Response
OK
Changes
- info
added the new optional
queryrequest parametercursor - info
added the new optional
queryrequest parameterpagination - info
added the new optional
queryrequest parametersort - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info