Rest api with node

i want to use this rest api :
in what do i need to replace the header section ?

fetch('https://your-domain.atlassian.net/rest/api/3/project/search', {
  method: 'GET',
  headers: {
    'Authorization': `Basic ${Buffer.from(
      'email@example.com:<api_token>'
    ).toString('base64')}`,
    'Accept': 'application/json'
  }
})

Hi @idanfarbman,

If you are asking about the Authorization part of the header, using basic authentication would require you to use a user email and API token pair i.e. replace “email@example.com” with a user’s email with the necessary permissions mentioned in the REST API’s docs, and replace “api_token” with a generated API token for the user.

For more information, kindly check out this Basic auth for REST APIs documentation.

Hope this helps.
Ian