Share Page API
Asked by abhipanchal:

Hello,

There is any api to share content page?


Answers:
author: Shannon S
body: Hello [@abhipanchal](/t5/user/viewprofilepage/user-id/3101363),

Confluence Cloud does have a REST-API which you can use to retrieve content.

Have a look below:

* [Confluence Cloud API CONTENT GET](https://developer.atlassian.com/cloud/confluence/rest/#api-api-content-get)

You'll need to generate an API token to authenticate in Cloud, so have a read through [our API Tokens documentation](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) for more on that.

If you have any trouble at all, I recommend making use of our [Atlassian Developer](https://developer.atlassian.com/resources) resources, which includes a separate [Developer Community](https://community.developer.atlassian.com/) where you can reach out for help.

Take care, and have a pleasant weekend.

Shannon

comments: author: abhipanchal
body: Hello [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Thank you for your reply, yes i checked that REST Api document, but i just want to confirm we can share content to other user using email?


author: Shannon S
body: Hi [@abhipanchal](/t5/user/viewprofilepage/user-id/3101363),

In order to share content from Confluence, either the page has to be public or the person you're sharing with is a licensed Confluence user. Using API, you'd need to perform the GET call using a licensed Confluence user's token, using the process I shared above.

There is also an add-on I know of that would allow you to share Confluence content by email to an unlicensed user, but it's for Server only:

* [Mail Page add-on available on Atlassian Marketplace](https://marketplace.atlassian.com/apps/1214285/mail-page?hosting=server&tab=overview)

I hope that helps, but let me know if you have any concerns.

Shannon


author: abhipanchal
body: Hello [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Thank you, i have converted to Standard account, but i can share content with users which is added in my space, there is any option to give permission to users which is not added in my space?

Sharing with email address is not possible?


author: Shannon S
body: Hi [@abhipanchal](/t5/user/viewprofilepage/user-id/3101363),

Good morning. Hope you are doing well!   

You can only give permission to users who are licensed to use Confluence. If an email address does not have an account on your Confluence site, then you won't be able to share a page with them.

I hope that's clear, but let me know if you have any questions about that.

Shannon


author: abhipanchal
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Thank You, that's clear.

I want to share my page with the users, who are not in my confluence site as a user.

So, first i need to invite them and then i can share page with them.

So we have any api for invite users in our confluence site?


author: Shannon S
body: Hi [@abhipanchal](/t5/user/viewprofilepage/user-id/3101363),

So sorry for the delay. I was looking for some confirmation on this.

There's not currently a way within Confluence REST-API to invite users, but you can use the Jira REST-API as a workaround.

Have a look below for more details:

* [CONFCLOUD-66317](https://jira.atlassian.com/browse/CONFCLOUD-66317) *Missing Group Rest API methods in Confluence*

Adding a user using the Jira REST-API will create your user with the default permission scheme, much like inviting a user within the UI:

* [Jira Cloud REST-API \> Create User](https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-user-post)

However, if Confluence access isn't a default for new users, you'll need to manage the groups, also via Jira:

* [Jira Cloud REST-API \> Add user to group](https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-group-user-post)

I hope that helps, but let me know if you have any trouble!

Shannon


Tags: confluence-cloud