Hi there,
I’ve created a deployment of an agentic framework on langsmith (which runs all fine in studio). I now have my API URL to send api requests to in an external chat application.
Alongside, I need a langchain api key.
Workspace in which I deployed → settings → API key
personal: lsv2_pt_2…e763
OR
service key: lsv2_sk_2…c924
However None of these API keys actually work for my external application:
curl -s -X GET -H "x-api-key: lsv2_sk_***924" https://na*****us.langgraph.app/health -w "\nStatus:%{http_code}\n" -o /dev/stdout
and I get “Status:404” errors.
All LLM models keep insisting I create a new langchain api key
“”"
That response comes from the LangGraph gateway when the token is a valid LangSmith key but not authorised for the Threads APIs. Key types, verified against the gateway’s rules:
Prefix | Purpose | Works for /threads/* |
---|---|---|
lsv2_pt_* | Personal tracing key | 404 Not Found |
lsv2_sk_* | Service/tracing key | 404 Not Found |
sk-* | Single-tenant deployment key | ![]() |
dep-srv-* | Multi-tenant deployment key | ![]() |
The service key (lsv2_sk_*) can read the OpenAPI spec but is blocked from state-persisting endpoints such as Threads / Runs / Store.
“”"
I could not resolve this!
Any insights are very welcome!
Cheers,
Jasper