# SSO to SP via API

**URL:** <https://devforum.okta.com/t/sso-to-sp-via-api/397>\
**Category:** API\
**Created:** [August 30, 2017, 7:36pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397 "2017-08-30T19:36:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://devforum.okta.com/u/Chris)\
**Post date:** [August 30, 2017, 7:36pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397/1 "2017-08-30T19:36:10Z")

</div>

I am trying to figure out how to initiate a SSO request from my Okta application to my SP via a RESTful API call. The end goal is to be able to see the response from the SP.

The flow I am imagining is as follows:

RESTful call → Okta Application → SP

Is this possible?

---

<div class="post-metadata">

**Author:** ![James-Distology](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@James-Distology](https://devforum.okta.com/u/James-Distology)\
**Post date:** [September 4, 2017, 8:20pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397/2 "2017-09-04T20:20:41Z")

</div>

Hi Chris,

Please can you explain a little more what you mean by your Okta Application?

James

---

<div class="post-metadata">

**Author:** ![Chris](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@Chris](https://devforum.okta.com/u/Chris)\
**Post date:** [September 5, 2017, 12:25pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397/3 "2017-09-05T12:25:29Z")

</div>

Hey James,

The Okta application I am referencing is the same one that I use to perform SSO to my service provider. There is extensive documentation on how to make API calls to access features on your Okta applications such as adding users or groups, but I have not seen any documentation on how to do what I am asking in my initial question.

---

<div class="post-metadata">

**Author:** ![jay.venkatraj](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/jay.venkatraj/32/115_2.png) [@jay.venkatraj](https://devforum.okta.com/u/jay.venkatraj)\
**Post date:** [September 5, 2017, 3:39pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397/4 "2017-09-05T15:39:25Z")

</div>

Chris,

You can use the Apps API to get the list of applications assigned for a user:

[https://developer.okta.com/docs/api/resources/apps.html](https://developer.okta.com/docs/api/resources/apps.html)

If it is a SAML enabled application, you could get the link from the href section and use that to SSO into your SP. It will however redirect authentication to your okta org.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 7:21pm UTC](https://devforum.okta.com/t/sso-to-sp-via-api/397/5 "2024-01-12T19:21:34Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
