List the organization's integration keys
const url = 'https://example.com/v1/integrations';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/integrations \ --header 'X-API-Key: <X-API-Key>'The organization’s Hugging Face tokens, newest first: provider, name, the last four characters and whether it is the default. Never the key itself.
Needs integrations:write (a * key does not have it) and Admin on the
organization.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
The organization’s integration keys, newest first.
object
One integration key, without its value.
object
The integration key’s ID
The service the key is for
The key’s name
The key’s last four characters; null for a key shorter than 12
The Hugging Face token new runs use
The person who added it
When it was added
When it expires
Example
{ "integrations": [ { "provider": "huggingface" } ]}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Missing integrations:write or Admin
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Not found or access denied
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}