Ticket create API is not working.

37 views
Skip to first unread message

Maninder Sharma

unread,
Apr 18, 2022, 5:37:19 AM4/18/22
to Assembla API Development
Hi,

We have implemented ticket create API  from our front and it was working fine in past.
But now its not working and giving us error.

The curl code in PHP that we have implemented is as below.

 $resPonseTicket     = $curl->curlPostOperation_2('https://api.assembla.com/v1/spaces/' . SpaceID . '/tickets.json', '' .
                                    json_encode($postData) . '', array(
                                        'X-Api-Key: '.APIkey.'',
                                        'X-Api-Secret: '.APIKeySecret.'',
                                        'Content-type: application/json'
                                    )
                            );

And we are getting below response from API.
HTTP/1.1 403 Forbidden
Date: Mon, 18 Apr 2022 08:07:03 GMT
Content-Type: application/json
Content-Length: 0
Connection: keep-alive
X-Request-Id: 3971e039-18cd-4650-bb68-29f33b8abe99
X-Frame-Options: SAMEORIGIN
Cache-Control: no-cache
Referrer-Policy: strict-origin-when-cross-origin
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Runtime: 0.051740
X-Content-Type-Options: nosniff
Status: 403 Forbidden
CF-Cache-Status: DYNAMIC
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 6fdbe7982e2a58ba-IAD

Please check and suggest .

Thanks and Regards
Maninder  Sharma

Nicolas Peric

unread,
Apr 19, 2022, 9:12:15 AM4/19/22
to Assembla API Development
Hi Maninder,

The error you're receiving is a 403 Forbidden,  the first thing I'll look is that ApiKey and ApiKeySecret are still valid. Try to generate a new pair and use those instead to see if the error persists.

Regards,

Nico
Reply all
Reply to author
Forward
0 new messages