Title: API response
Last modified: March 29, 2025

---

# API response

 *  Resolved [benfrankie](https://wordpress.org/support/users/benfrankie/)
 * (@benfrankie)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/api-response/)
 * Hi team,
 * I’m using the Pretty Links `/create-pretty-link` API and it returns a response
   like:
 * { “success”: true, “pretty_link”: 23 }
 * > Can you confirm:
   >  1. What does the `pretty_link` field represent — is it a post ID or the actual
   >     shortened URL?
   >  2. Is there a way to retrieve the final Pretty Link URL (e.g., `https://mydomain.
   >     com/slug`) in the API response?
   >  3. Could the API ever return `"success": true` even if the slug already exists
   >     or fails silently?
   > Thanks so much in advance!

Viewing 1 replies (of 1 total)

 *  Plugin Support [nevenag](https://wordpress.org/support/users/nevenag/)
 * (@nevenag)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/api-response/#post-18391569)
 * Hi [@benfrankie](https://wordpress.org/support/users/benfrankie/),
 * It sounds like you’re using a custom code snippet for this, but if not, I suggest
   reaching out through our website for further help.

Viewing 1 replies (of 1 total)

The topic ‘API response’ is closed to new replies.

 * ![](https://ps.w.org/pretty-link/assets/icon-256x256.png?rev=2503434)
 * [PrettyLinks - Affiliate Links, Link Branding, Link Tracking, Marketing and Stripe Payments Plugin](https://wordpress.org/plugins/pretty-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pretty-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pretty-link/)
 * [Active Topics](https://wordpress.org/support/plugin/pretty-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pretty-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pretty-link/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nevenag](https://wordpress.org/support/users/nevenag/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/api-response/#post-18391569)
 * Status: resolved