According to the API docs, “check if member” should return a JSON response of { is_member: <boolean> }. When I make this call with a user who is present in the channel, I am receiving { is_member: true, "state"=>"joined" } as expected. However, if I provide a user who is not present, I get a 400 error with the message "User" not found instead of the expected 2xx with { is_member: false }.
Here’s the URL I’m hitting (with sensitive keys redacted):
Hello @kshipley its been already a year since you posted the question sorry that we missed it. As now, I tested same scenario and it works fine at the moment. Please let us know if you have any other questiosn!
And here is the return value that I am getting with an HTTP status code of 400:
{"message":"\"User\" not found.","code":400201,"error":true}
When you say that it is working fine, does that mean that you are getting a 200 with { is_member: false } in the response body? Or is 400 the expected response status, in which case maybe the docs just need a bit of clarification?