cURL
curl --request POST \ --url https://api.example.com/api/v2/service-accounts/{id}/credentials \ --header 'Content-Type: application/json' \ --data ' { "expirationDate": "2023-11-07T05:31:56Z", "scopes": [ "<string>" ] } '
{ "data": { "clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "clientSecret": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "clientSecretPrefix": "<string>", "status": "Active", "expirationDate": "2023-11-07T05:31:56Z", "lastUsedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "scopes": [ "<string>" ] }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Documentation IndexFetch the complete documentation index at: https://docs.contraforce.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.contraforce.com/llms.txt
Use this file to discover all available pages before exploring further.
Request to create an additional credential for an existing service account.
The API scopes to grant to this credential.
Created
Standard v2 API response envelope for single-item responses.
Returned only when a credential is created. Contains the plaintext client secret which is shown once.
Show child attributes