Skip to main content

Endpoint

DELETE /v1/vault/credentials/:id

Authentication

Requires a developer API key in the Authorization header.

Request Headers

HeaderValue
AuthorizationBearer <api_key>

Path Parameters

ParameterTypeDescription
idstringThe vault credential ID to delete (e.g. vc_01HXYZ...)

Example Request

curl -X DELETE https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/vault/credentials/vc_01HXYZ... \
  -H "Authorization: Bearer gx_..."

Response — 204 No Content

No response body is returned on success.

Error Responses

StatusCodeDescription
401UNAUTHORIZEDInvalid or missing API key
404NOT_FOUNDCredential not found or does not belong to developer

SDK Examples

import Grantex from '@grantex/sdk';

const grantex = new Grantex({ apiKey: 'gx_...' });

await grantex.vault.delete('vc_01HXYZ...');