---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/51104#article
headline: "51104: Twilsock: Token doesn't contain service instance"
url: https://www.twilio.com/docs/api/errors/51104
inLanguage: en
dateModified: 2026-06-09T11:00:42.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 51104: Twilsock: Token doesn't contain service instance

Log Level: ERROR

## Description

Twilsock could not authenticate the access token because the token does not include the required service instance information. This usually means the token was generated with missing or incorrect grant data for the Twilio SDK product you are trying to use.

### Possible causes

* Your application generated an access token without the product-specific grant required by the client SDK.
* The grant in the token is missing the service instance identifier expected by Twilsock.
* Your application is using a token created for a different Twilio SDK product or environment.
* The token payload was modified or encoded incorrectly before it was sent to the client.

### Possible solutions

* Generate a new access token on your server and include the correct grant for the SDK product you are using.
* Verify that the token includes the required service instance information for your Chat, Conversations, Sync, or Notify client configuration.
* Make sure the client is using a token issued for the same Twilio Account and service configuration as your application.
* Validate the token structure during development before returning it to the client.
* If you recently changed your token generation logic, compare the current token payload with a previously working token to confirm the required grant fields are present.

#### Additional resources

* [Access Tokens](/docs/iam/access-tokens)
* [Identity and Access Management](/docs/iam)
* [Conversations overview](/docs/conversations)
