The Trailblazer Community in Slack is now in Open Beta—join and connect in real time. [Join us in Slack]
Specifies the session ID or OAuth access token for authentication of all subsequent calls. Get the value from an OAuth 2.0 flow through an external client app or connected app. A session ID from the legacy login() call also works, but login() is being retired.
SOAP API login() is being retired. Integrations that get a session ID from login() must migrate to OAuth 2.0 through an external client app. See Platform SOAP API login() Retirement & new Security Requirements in Salesforce Help.
Warning
In version 12.0 and later, include the API namespace in the SOAP message associated with this header. The namespace is defined in the enterprise or partner WSDL.
If the external client app or connected app requires DPoP, the access token in SessionHeader is DPoP-bound. Pass the token as is, without a DPoP prefix, and include a DpopProofHeader in the same request.
Note
All calls, including utility calls.
Type: string
Description: Session ID or OAuth access token for authentication of subsequent calls.
See the examples provided for login().