I created a nonce and passed it in the header, which gives the same error.
Get Endpoint – /wp-json/contact-form-7/v1/contact-forms/21798 ->not working
{
"code": "wpcf7_forbidden",
"message": "You are not allowed to access the requested contact form.",
"data": {
"status": 403
}
}
Note- Submit form API is working fine and give 200 response
Post Endpoint – /wp-json/contact-form-7/v1/contact-forms/21798/feedback