Invalid_token for 'Send Money' api with API key auth

i’m getting this error { errors: [ { id: 'invalid_token', message: 'The access token is invalid' } ] } each time i’m trying to send request to POST with as auth method API KEY

sample code that i’m using

const timestamp = Math.floor( / 1000);
    const data = {
        "type": "send",
        "to": '',
        "amount": "1",
        "currency": "USDT",
        "description": "For being awesome!"
    const req  = {
        method: 'POST',
        path: '/v2/accounts/ACCOUNT_ID/transactions',
        body: JSON.stringify(data)
var message = timestamp + 'POST' + req.path + JSON.stringify(data);
    const signature = crypto.createHmac('sha256', process.env.COINBASE_API_SECRET).update(message).digest('hex');

    const headers = {
        'CB-ACCESS-KEY': process.env.COINBASE_API_KEY,
        'CB-ACCESS-SIGN': signature,
        'CB-ACCESS-TIMESTAMP': timestamp,
        'CB-VERSION': '2023-05-22'

Hey @Denver02, Sincere apologies for delayed response.

The error id invalid_token refers to Invalid Oauth token. Can you please confirm if you are using Oauth2 Authorization or API key Authentication? Also, to know more on how to use Transactions endpoint, you may please refer here Transactions | Coinbase Cloud