Discussions

Ask a Question
Back to All

Screenpop API error

I am making the following request to a sandbox account:

POST <https://dialpadbeta.com/api/v2/users/id/screenpop?id=631#############>
Authorization: Bearer acp#########

{"screen_pop_uri":"<https://www.google.com/search?q=test"}>

(The ### in the URL are all numbers)

The response I get is:

{  
    "error": {  
        "code": 400,  
        "errors": [  
            {  
                "domain": "global",  
                "message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (<type 'int'>, <type 'long'>) for field id, found id (type <class 'str'>))",  
                "reason": "badRequest"  
            }  
        ],  
        "message": "Error parsing ProtoRPC request (Unable to parse request content: Expected type (\<type 'int'>, \<type 'long'>) for field id, found id (type \<class 'str'>))"  
    }  
}

I'm not understanding what I'm missing about making this request. The error seems to indicate the id parameter is non-numeric, but it definitely is. What am I missing?