Verificando autenticación…

Skip to main content

Create Custom Header For Endpoint /api/v1/pubsub

Common Problems or Queries

  • How to configure custom headers for the /api/v1/pubsub endpoint?
  • I need to add specific headers for PubSub integration.
  • What headers are required for the endpoint to function correctly?

Solution

To configure custom headers in the /api/v1/pubsub endpoint:

  1. Common required headers:

    Content-Type: application/json
    Authorization: Bearer <token>
    X-Request-ID: <unique-request-id>
  2. PubSub-specific headers:

    X-Pubsub-Topic: <topic-name>
    X-Pubsub-Subscription: <subscription-name>
    X-Message-Type: <message-type>
  3. Application configuration:

    • Configure headers in the HTTP client
    • Validate that the endpoint is configured to receive these headers
    • Ensure authentication is correct
  4. Security considerations:

    • Use valid and updated tokens
    • Do not expose sensitive information in headers
    • Implement header validation on the server
  5. Endpoint documentation:

    • Document all required headers
    • Specify the expected format for each header
    • Include usage examples

Responsible team: Consult with the corresponding development team for project-specific configurations.