Administration
Many of the kinds of administrative tasks you perform using the Uniform dashboard or the CLI can also be done programmatically using the Uniform APIs.
Projects
This section provides examples of how to use the Uniform API to interact with Uniform projects.
Get project details
This example demonstrates how to retrieve details for a Uniform project.
- Axios
- cURL
const axios = require("axios");
axios.get('https://uniform.app/api/v1/project', {
params: {
projectId: "[!!! UNIFORM PROJECT ID !!!]",
},
headers: {
accept: "application/json",
"x-api-key": "[!!! UNIFORM API KEY !!!]",
}
}).then(response => {
const project = response.data;
// Do something with the project.
});
curl -X 'GET' \
'https://uniform.app/api/v1/project?projectId=[!!! UNIFORM PROJECT ID !!!]' \
-H 'accept: application/json' \
-H 'x-api-key: [!!! UNIFORM API KEY !!!]'