See the DMP Tool API documentation on this California Digital Libraries / UC3 GitHub repo for how to obtain the client_id
and client_secret
.
curl -v https://dmptool.orgoauth/token -X POST -H "Accept: application/json" -d "grant_type=client_credentials&client_id=[CLIENT ID]&client_secret=[CLIENT SECRET]"
...{"access_token":"_abcdefg-1234567_","token_type":"Bearer","expires_in":7200,"scope":"public read_dmps","created_at":1714684830}
curl -v https://dmptool.org/api/v2/plans -H "Accept: application/json" -H "Authorization: Bearer _abcdefg-1234567_"
curl -v https://dmptool.org/api/v2/plans/[DMP_ID] -H "Accept: application/json" -H "Authorization: Bearer _abcdefg-1234567_"
curl -v https://dmptool.org/api/v2/templates -H "Accept: application/json" -H "Authorization: Bearer _abcdefg-1234567_"