Skip to content

Project

Retrieves information about a specific project.

This endpoint is useful for obtaining details about a particular project, such as its name, supported languages, and defined content models.

Endpoint

shell
curl https://api.contentisland.net/api/1.0/project --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response

The response is a JSON object containing project information. The object has the following structure:

interface Project {
id: string;
name: string;
languages: string[];
contentTypes: { id: string; name: string }[];
}
  • id: The project ID.
  • name: The name of the project.
  • languages: A list of supported languages for the project.
  • contentTypes: A list of defined models in the project. Each model has an id and a name.

Example:

{
"id": "1",
"name": "My project",
"languages": ["es", "en"],
"contentTypes": [
{
"id": "100",
"name": "post"
}
]
}

Status Codes

CodeDescription
200The request was successfully processed and the project information was returned.
401Unauthorized. The access token is invalid or has expired.
500Internal server error. An error occurred while processing the request.